diff --git a/utils.js b/utils.js index bb55cc5..553adab 100644 --- a/utils.js +++ b/utils.js @@ -102,15 +102,18 @@ async function checkResultAndReturnUrl( export async function openBrowserAsync( url: string, - options?: InAppBrowserOptions = { + options?: InAppBrowserOptions = {} +): Promise { + const defaults = { animated: true, modalEnabled: true, dismissButtonStyle: 'close', readerMode: false, enableBarCollapsing: false, - } -): Promise { + }; + return RNInAppBrowser.open({ + ...defaults, ...options, url, preferredBarTintColor: