Jan Wilmake's Blog

Chat with This Blog

Upgrading from Wix Navigation v1 to Wix Navigation v2, or React Navigation v3?

In the past year that we've worked on an app at our company we've used Wix React Native Navigation V1 (WN1). It has worked well enough to use it, but over time, we've discovered many quirks and problems. Since v2 improved a lot of things, but not all, we now have a tough choice: should we refactor everything to use Wix RN Navigation v2 (WN2), or should we totally refactor to a different navigation: React Navigation v3 (RN3)?

Problems with WN1:

What does WN2 Solve?

What does RN3 Solve?

All in all, read this https://reactnavigation.org/docs/en/pitch.html for advantages and disadvantages of RN3.

What are the function calls we do now for navigation?

How much work is it to refactor to WN2? As can be seen in the Wix documentation https://wix.github.io/react-native-navigation/#/docs/top-level-api-migration it's not a lot of work to migrate from v1 to v2. This guide https://medium.com/wix-engineering/react-native-navigation-v2-is-here-5b7c87f002a could also be useful.

How much work is it to refactor to RN3?

Refactoring We have to discuss what would be the best roadmap now. If we choose to go to WN2 first, it's probably not a lot of work and we can do it in a single branch. However, if we choose to refactor to RN3, we'd have to do quite some work, so it'd be better to do it in steps so we can merge it in steps to keep the branch changes small and keep the whole codebase working between steps. This will minimize merge conflicts.

2/13/2019
react-nativeprogrammingcoding