import invoker,{PLATFORM_TYPE_ENUM}from"./invoker";invoker.registerAPI("enablePullToRefresh",{mobile:function(e,l){var n=l.resolve,o=l.reject,r=l.context,i=l.containerType,f=l.platformType;if(i){f===PLATFORM_TYPE_ENUM.ANDROID?r&&r((function(){n()}),(function(){o()}),"ui.pullToRefresh","enable",{}):f===PLATFORM_TYPE_ENUM.IOS&&r.callHandler("ui.pullToRefresh.enable",Object.assign({},{}),(function(){n()}))}else r&&r.call("pullRefresh",{pullRefresh:!0},(function(){n()}))}}),enablePullToRefresh.version={android:"1.3.0",ios:"1.3.0"};export default function enablePullToRefresh(){return invoker.invoke("enablePullToRefresh",{_apiName:"enablePullToRefresh"})}