diff --git a/releases/next/docs/using-navigators.html b/releases/next/docs/using-navigators.html index 8fc0618d943..e2318709e1f 100644 --- a/releases/next/docs/using-navigators.html +++ b/releases/next/docs/using-navigators.html @@ -56,8 +56,8 @@ class SimpleNavigationApp extends ={route.title} - // Function to call when a new scene should be displayed - onForward={ () => { + // Function to call when a new scene should be displayed + onForward={() => { const nextIndex = route.index + 1; navigator.push({ title: 'Scene ' + nextIndex, @@ -85,10 +85,12 @@ export default class MyScene extends render() { return ( <View> - <Text>Current Scene: { this.props.title }</Text> + <Text>Current Scene: {this.props.title}</Text> + <TouchableHighlight onPress={this.props.onForward}> <Text>Tap me to load the next scene</Text> </TouchableHighlight> + <TouchableHighlight onPress={this.props.onBack}> <Text>Tap me to go back</Text> </TouchableHighlight>