O'Reilly logo

React Native By Example by Richard Kho

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

Looking at NavigatorIOS

The NavigatorIOS component is set up at the top level of your React Native app. We'll provide at least one object, identified as routes, in order to identify each view in our app. Additionally, NavigatorIOS looks for a renderScene method, which is responsible for rendering each scene in our app. Here's an example of how you can render a basic scene with NavigatorIOS:

import React, { Component } from 'react'; import {   NavigatorIOS,   Text } from 'react-native'; export default class ExampleNavigation extends Component {   render () {     return (       <NavigatorIOS         initialRoute={{           component: TasksList,           title: 'Tasks'         }}         style={ styles.container }       />  );   } } 

This is just a rudimentary example. All we're doing is initializing ...

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