Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which one to choose react-native-router-flux or react-router-native or react-navigation [closed]

Tags:

react-native

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..

like image 867
Ramusesan Avatar asked Jun 28 '18 05:06

Ramusesan


People also ask

Can I use react router in React Native?

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.

What is React Native router flux?

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.

Which is better react navigation or React Native navigation?

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.


2 Answers

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.

like image 89
ArkaneKhan Avatar answered Jan 04 '23 12:01

ArkaneKhan


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

like image 29
tajammul1996 Avatar answered Jan 04 '23 12:01

tajammul1996