O'Reilly logo

React and React Native by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Navigators, scenes, routes, and stacks

The core mechanism you'll use to control navigation in your React Native app is the Navigator component. It's used to control route stacks and scenes. I'll quickly define these concepts here, and then we'll dive into some code.

  • Navigator: The overarching component that's used to control how users navigate through your application
  • Scene: A simple React component that represents what the user is currently looking at. Instead of pressing a link on a page that takes them to another page, the Navigator takes them to another scene
  • Route: A JavaScript object containing information about a scene. The Navigator figures out how to render a scene based on information provided by a route
  • Stack: A stack of routes held by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required