KEMBAR78
Navigating Navigation in React Native | PDF
Navigating Navigation
in React Native
This is me on the internet
@spencer_carli

handlebarlabs.com
Which navigator do I
use in React Native?
React Navigation
Navigator
NavigatorIOS
React Native Navigation
Ex-Navigation
NavigationExperimental
React Router Native
React Native Router Flux
Native Navigation
Assumption: App Was
Started with React Native
• Greenfield app

• I’m only talking about what we can do with an app that is
based on React Native, not an existing native app with
React Native added to it

• Existing iOS or Android app will be limited by what’s
available there
JavaScript or Native?
• Navigator

• Navigation Experimental

• Ex-navigation

• React Native Router Flux

• React Navigation
• NavigatorIOS

• NativeNavigation

• React Native Navigation
Why is it like this?!
A brief (personal) history lesson…
At the start: NavigatorIOS
• Birth: React Native was released!

• Pro: Used the “real” iOS native navigator

• Con: iOS only

• Death: React Native added Android support
Navigator
• Birth: React Native release/death of NavigatorIOS

• Pro: Cross platform

• Cons: Somewhat confusing, easy mess up, performance

• Death: Community take over/NavigationExperimental
Ex-navigation
• Birth: Navigation component wasn’t great

• Pros: Cross platform, great defaults, easy to use

• Cons: Limited, potential performance issues

• Death: React Navigation
NavigationExperimental
• Birth: Need for a more configurable navigator

• Pros: Highly configurable

• Cons: CONFUSING, experimental

• Death: React Navigation
The Undisputed
Champion is…
React Navigation
*Justified
The Reality
React Navigation
Navigator
NavigatorIOS
React Native Navigation
Ex-Navigation
NavigationExperimental
React Router Native
React Native Router Flux
Native Navigation
Today’s Primary Contenders
• JavaScript: React Navigation

• Native: React Native Navigation
*Not just because of the naming
Which do I choose?
Environment
Considerations
• Using Expo or Create React Native App

• React Navigation

• “Normal” React Native App

• React Navigation

• React Native Navigation
Features: React Navigation
• Simple installation

• Navigators are components

• Stack navigator, tab navigator, drawer navigator

• Platform components

• Customizable
Features: React Native
Navigation
• Performant

• Uses the “real thing” - not replication

• Simple to use

• Minimal boilerplate once installed
Drawbacks: React
Navigation
• Easier to make a poor performance app

• Can be confusing
Drawbacks: React Native
Navigation
• Complex installation for non-native developers

• Limited state management solutions (Redux only)
Using React
Navigation
Using React Native
Navigation
Thanks!
@spencer_carli

handlebarlabs.com

Navigating Navigation in React Native