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