From c876d2fd1d8ba58d3606908f2e86ec9ad457d2a1 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Tue, 22 Nov 2016 20:24:55 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/using-navigators.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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>