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

Best practice for adding global components #7

Open
JohnnyHuangTW opened this issue Dec 8, 2022 · 1 comment
Open

Best practice for adding global components #7

JohnnyHuangTW opened this issue Dec 8, 2022 · 1 comment

Comments

@JohnnyHuangTW
Copy link

First of all, awesome library!
I am trying to add a global modal and what I usually do is wrap the root App component and add a custom modal component within.
I am wondering is there a way to do something like it with rnn-screens?

@kanzitelli
Copy link
Owner

Hi @JohnnyHuangTW! Thanks!

You probably were doing this using react-navigation and following React concepts. But with rnn-screens (as it's built on top of React Native Navigation) you will need to register global Overlay (from RNN) and show your modal content in that Overlay.

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