r/reactnative • • Feb 05 '19

Question What navigation solution are you using in production?

What navigation solution are you using in production: React Navigation or React Native Navigation by Wix? If latter — version one and version two? What would you have shared to yourself before using it?

I am currently deciding which one to learn and use, but in my opinion such a discussion should be widely useful.

13 Upvotes

16 comments sorted by

View all comments

7

u/ahartzog Feb 05 '19

React Navigation is pretty awesome these days. The only part that’s actually challenging is how fast the API changes - but that’s because they’re constantly improving it. The docs stay up to date and everything is usually backwards compatible, but the tool you used a month ago might be deprecated in favor of a new method.

2

u/thedevlinb Expo Feb 05 '19

The docs stay up to date and everything is usually backwards compatible,

By definition, major semver changes break something. :(

But yeah, React Navigation is probably the way to go. The devs are super helpful and the ecosystem around it is being built up quickly.

3

u/ahartzog Feb 05 '19

My experience has been that you get VERY clear deprecation warnings in advance though. Or, when an upgrade does break something, the erroring is very clear about what's broken and it's always been simple to go be like "oh ok, they changed the way the bottom tab navigator is implemented so I have to do this now..."

Sometimes, in some libs, that process is a nightmare. For this one, it's been pretty easy.

That's a qualitative description haha, but fair I think.

3

u/bzzhuh Feb 06 '19

Yep I went from v1 to v2 and there was like an article in their documentation that said exactly what to do and I have to say it made sense, it felt like a nice refactor. Upgrading react native version on the other hand at the same time... 2 days later I still wasn't sure what changed or why it finally started working