"use strict";exports.__esModule=!0,exports.default=enablePullToRefresh;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 n={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=l?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function enablePullToRefresh(){return _invoker.default.invoke("enablePullToRefresh",{_apiName:"enablePullToRefresh"})}_invoker.default.registerAPI("enablePullToRefresh",{mobile:function(e,r){var t=r.resolve,n=r.reject,l=r.context,o=r.containerType,u=r.platformType;if(o){u===_invoker.PLATFORM_TYPE_ENUM.ANDROID?l&&l((function(){t()}),(function(){n()}),"ui.pullToRefresh","enable",{}):u===_invoker.PLATFORM_TYPE_ENUM.IOS&&l.callHandler("ui.pullToRefresh.enable",Object.assign({},{}),(function(){t()}))}else l&&l.call("pullRefresh",{pullRefresh:!0},(function(){t()}))}}),enablePullToRefresh.version={android:"1.3.0",ios:"1.3.0"},module.exports=exports.default,module.exports.default=exports.default;