"use strict";exports.__esModule=!0,exports.default=disablePullToRefresh;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var l={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(l,o,n):l[o]=e[o]}return l.default=e,t&&t.set(e,l),l}function disablePullToRefresh(){return _invoker.default.invoke("disablePullToRefresh",{_apiName:"disablePullToRefresh"})}_invoker.default.registerAPI("disablePullToRefresh",{mobile:function(e,r){var t=r.resolve,l=r.reject,i=r.context,o=r.containerType,n=r.platformType;if(o){n===_invoker.PLATFORM_TYPE_ENUM.ANDROID?i&&i((function(){t()}),(function(){l()}),"ui.pullToRefresh","disable",{}):n===_invoker.PLATFORM_TYPE_ENUM.IOS&&i.callHandler("ui.pullToRefresh.disable",Object.assign({},{}),(function(e){t(e)}))}else i&&i.call("pullRefresh",{pullRefresh:!1},(function(){t()}))}}),disablePullToRefresh.version={android:"1.3.0",ios:"1.3.0"},module.exports=exports.default,module.exports.default=exports.default;