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

Support react-native modals #7156

Merged
merged 10 commits into from
Jun 17, 2021
Merged

Support react-native modals #7156

merged 10 commits into from
Jun 17, 2021

Conversation

yogevbd
Copy link
Collaborator

@yogevbd yogevbd commented Jun 17, 2021

Currently, using react-native declarative modals can cause view controllers to be detached from the view hierarchy. For example, when presenting an RNN modal from react-native modal and then dismissing the react-native modal, the RNN modal on top of it remain detached as its holder is dismissed. It can also cause the new RNN modal to be dismissed.

In this PR we implemented RCTModalHostViewManager.presentationBlock and RCTModalHostViewManager.dismissalBlock in order to have the same modals logic we have in RNN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant