Open zacharyweidenbach opened 3 years ago
Hello mate, if I understand, you want to use popover
when modal option is enabled, right?
Hello mate, if I understand, your want to use
popover
when modal option is enabled, right?
Correct.
Ok, let me check, any pull request is welcome in the meantime! <3
Ok, let me check, any pull request is welcome in the meantime! <3
Hi @jdnichollsc . i trying make inappbrower in ios device use safari like ui this picture from your github repo page but not work .
Can you teach me how can i making the inapp browers same you .My device is Simulator Iphone11
my code is `InAppBrowser.openAuth(
'https://github.com/proyecto26/react-native-inappbrowser',
deepLink,
{
dismissButtonStyle: 'cancel',
preferredBarTintColor: '#453AA4',
preferredControlTintColor: 'white',
readerMode: false,
animated: true,
modalPresentationStyle: 'fullScreen',
modalTransitionStyle: 'coverVertical',
modalEnabled: true,
enableBarCollapsing: false,
showTitle: true,
toolbarColor: '#6200EE',
secondaryToolbarColor: 'black',
navigationBarColor: 'black',
navigationBarDividerColor: 'white',
enableUrlBarHiding: true,
enableDefaultShare: true,
forceCloseOnRedirection: false,
},
).then((response) => {
if (response.type === 'success' && response.url) {
Linking.openURL(response.url);
}
});`
No idea, let me know if you find any Apple documentation about this issue
I hit this error too. I tried to put the InAppBrowser
calls in the try ... catch
to call the normal browser openLink
as a fallback but the app crashed on the InAppBrowser.open
call nevertheless. Because the exception is thrown by the native code.
try {
if (!(await InAppBrowser.isAvailable())) {
throw new Error()
}
await InAppBrowser.open(widgetUrl, BROWSER_CONFIG)
} catch (error) {
await openLink(widgetUrl)
}
Hi, I'm also facing the same issue with iPad Another issue: https://github.com/wix/react-native-navigation/issues/6344 Issue on apple dev: https://developer.apple.com/forums/thread/685031
modalPresentationStyle: isIpad() ? "pageSheet" : "popover"
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
react-native --version
to fetch it)"react-native": "0.63.3"
package.json
file of your project and paste your dependencies and devDependencies here)Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
The crash occurs when attempting to open the inappbrowser in with
modalEnabled: true
on iOS with specifically an iPad. The crash does not occur when using an iphone. Also of note, no error is thrown in the JS Runtime layer, the crash as seen is from the log output in xcode. The crash:Is there any code involved?
By switching
modalEnabled: false
the.open()
method does not cause a crash. Or switchingmodalPresentationStyle: 'popover'
to'automatic'
does not cause a crash.