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