crazycodeboy / react-native-easy-toast

A react native module to show toast like android, it works on iOS and Android.
http://www.devio.org/
MIT License
1.11k stars 262 forks source link

Toast after closing screen #64

Open mkloar opened 5 years ago

mkloar commented 5 years ago

Hey. Is it possible to show same toast, after navigating to another screen? I have problem that my toast is closed after I navigate to different screen.

sesm commented 5 years ago

Well, you could add the toast component to upper level in you view hierarchy, on the same level as you navigator. Also, there is a library that renders toast on the top level of you application: https://github.com/magicismight/react-native-root-toast , but please note, that there could be issues with it when you are using Wix router, because it uses AppRegistry.setWrapperComponentProvider