Summary
In this chapter, you learned about navigation in React Native applications. We compared the traditional mechanisms used to navigate web applications with what's used in native mobile apps. The key differentiator in React Native is that there's no URL. Instead, you have to rely on route objects.
Next, you implemented a basic example that rendered different screen content based on the link that was pressed. Links can be tricky because you're not passing a URL that's automatically handled by a web browser. Next, you learned about the navigation bar component that can be passed to the navigator
, to provide consistent navigation between iOS and Android.
Then, you implemented dynamic scenes that passed content through the route
object. Instead of providing an initial route stack, you only provided an initial route that was replaced whenever the user pressed a navigation button. Lastly, you learned a simple technique to implement simple back and forward navigation...