Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
khj3132 opened this issue Mar 20, 2023 · 2 comments

Comments

@khj3132
Copy link

khj3132 commented Mar 20, 2023

Which platform(s) does your issue occur on?

  • iOS only
  • 16.2
  • both

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

  • CLI: (run react-native --version to fetch it) 6.3.1(0.67.5 in package.json)
  • Plugin(s): react-native-inappbrowser-reborn - 3.6.3,

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
Copy link

same on me :(

@khj3132
Copy link
Author

khj3132 commented Sep 18, 2023

@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. react-native-modal/react-native-modal#735

@khj3132 khj3132 closed this as completed Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants