import invoker,{PLATFORM_TYPE_ENUM}from"./invoker";invoker.registerAPI("disableWebviewBounce",{mobile:function(e,i){var n=i.resolve,o=i.reject,c=i.context,a=i.containerType,b=i.platformType;if(a){b===PLATFORM_TYPE_ENUM.ANDROID?c&&c((function(){n()}),(function(){o()}),"ui.webViewBounce","disable",{}):b===PLATFORM_TYPE_ENUM.IOS&&c.callHandler("ui.webViewBounce.disable",Object.assign({},{}),(function(e){n(e)}))}else c&&c.call("bounce",{enable:!1},(function(e){n(e)}))}}),disableWebviewBounce.version={ios:"1.3.0"};export default function disableWebviewBounce(){return invoker.invoke("disableWebviewBounce",{_apiName:"disableWebviewBounce"})}