-
Notifications
You must be signed in to change notification settings - Fork 405
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
can't set root with react native navigation (rn - v 62.2) #130
Comments
@sunnylqm not working, toast still inside sidemenu not on homescreen |
Can post your code? |
|
this is working on login/signup screen, but after login inside home screen. There is sidemenu/drawer component which is already on Top layer of Home screen. Whenever I am calling toast in Home screen and sliding a little drawer, toast is showing inside drawer menu not on home |
Did you see my link above and use RootSiblingParent? |
Yes I have applied that, still toast is showing inside drawer . I wanted it in Home screen not inside drawer screen |
For reproducing -
|
Maybe you need to inject RootSiblingParent into each page component. And maybe build a HOC or base component to reuse the logic. |
Finally I inject |
man that's hardcore for my 100 screens application. |
Hi, the method I just described is effective, but not elegant. After our team evaluated it, we simulated |
just use 'react-native-toast-hybrid' to replace the module |
with react native navigation, android toast is showing inside sidemenu component.
May be default sidemenu is at the top level (as root) so it is showing inside sidemenu from any other component..
Any Help?
The text was updated successfully, but these errors were encountered: