Disadvantage of using JS based navigation solution like React Navigation instead of using Native Navigation like Wix's React Native Navigation?
Asked Answered
H

1

16

The only reason I can think of using Native Navigation is when I have more screens & JS based solution like React Navigation will keep all the screens in memory. Now I am not a native developer so the above thing might be vague.

Here answered 2/1, 2018 at 14:52 Comment(1)
I agree with it.Pumice
F
19

I'm one of the contributors of react-native-navigation. This question was a commonly asked, and I have written an answer before (as react-navigation VS react-native-navigation).

React-Navigation is Javascript-based navigation, that means all the navigate happen inside of single Activity (on Android and iOS counterpart).

The good part about Javascript based navigation is they will work on most platforms. But they usually suffer from performance issues due to stacks everything in the same activity.

React-Native-Navigation on another hand is actual native navigation. Every screen has its native container that handles native system. Better optimize better performance at the cost of deep integrate for each platform.

Hope this help.

Follett answered 7/1, 2018 at 6:28 Comment(3)
What about Animations because React Navigation has some janky behaviour & some animations have weird behaviours like github.com/react-navigation/react-navigation/issues/2539Here
I think people at Wix should write article where they compare JS vs Native routers. This way it can be always referred when this topic comes up (which is often)Tangy
@Here The issue you mention will be resolved by adjusting the native code animation (which is not hard). The performance issue of JS-based navigation is a complete different story.Follett

© 2022 - 2024 — McMap. All rights reserved.