proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.29k stars 220 forks source link

The react-native-modal does not work when react-native-inappbrowser is open (iOS only) #408

Closed khj3132 closed 10 months ago

khj3132 commented 1 year ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

The react-native-modal does not work when react-native-inappbrowser is open on iOS env. I set a timer with setTimeout and react-native-modal open when the timer is over. When react-native-inappbrowser is open and the timer is over. Then I close react-native-inappbrowser, the modal is not open. It works fine on Android env. I know that react-native-modal cannot open two at the same time. Is the react-native-inappbrowser treated as modal in ios environment?

nguyenduythuc commented 10 months ago

same on me :(

khj3132 commented 10 months ago

@nguyenduythuc I also asked react-native-modal github about this problem. In conclusion, react-native-inappbrowser is treated as a modal on iOS. So, if you want the modal to appear when react-native-inappbrowser is closed, you need to add a callback. You can check that here. https://github.com/react-native-modal/react-native-modal/issues/735