You'll need to import the javascript file in your website before starting from this .
Function to enable or disable Pull To Refresh on the page dynamically. This will work only if "Pull to refresh" is enabled in app settings.
WTN.enablePullToRefresh(true);
//Pass values as true or false
//To enable pass true and to disable pass the value as false. By default Pull to refresh is enabled on all pages.
import { enablePullToRefresh } from "webtonative";
enablePullToRefresh(true);
//Pass values as true or false
//To enable pass true and to disable pass the value as false. By default Pull to refresh is enabled on all pages.