I am a beginner to react-native and am trying to achieve redirecting, and routing to another page after authenticating the login ..etc
which one should I choose react-native-router-flux or react-router-native or react-navigation or how can achieve my things are routing , redirecting etc..
React Router Native is published to npm. You can install it with either npm or yarn . Once you've initialized a new React Native project, you can copy/paste any of the examples into your index.
react-native-router-flux is a different API over react-navigation . It helps users to define all the routes in one central place and navigate and communicate between different screens in an easy way. But it also means that react-native-router-flux inherits all limitations and changes from updated versions.
Integration with existing apps In such a case, any navigator based on JS works well compared to existing native solutions. This gives React Navigation the edge over RNN, especially if you are looking to power a few modules of your existing app with React Native, just like Facebook and many other brownfield apps do.
It really comes down to what your preference is.
1) react-native-router-flux is just the wrapper around react-navigation but is a lot easier to work with but it does not have a very good documentation and some times you will have to look into react-navigation documentation for how certain things work.
2) wix/react-native-navigation is native side solution for navigation a bit difficult to work with but transitions are very smooth and it helps with app's performance since it offloads work from javascript thread.
link: https://github.com/wix/react-native-navigation
3) If you are new react-native i would suggest you go with react-navigation it's the most popular as of now and can cover all your needs.
Go with react-navigation. It's simple. [ i have tried wix's react-native-navigation the problem with rnn is it's setup is hectic ]
For more comparison visit link below.
https://medium.com/@ian.mundy/choosing-a-routing-library-for-react-native-604f97e58729
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With