April 2017
Intermediate to advanced
414 pages
8h 14m
English
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 ...
Read now
Unlock full access