From 45e97b081296aaafe218e0b410b540df72a1a10a Mon Sep 17 00:00:00 2001 From: Patrik Toma Date: Tue, 22 Nov 2016 10:11:58 -0800 Subject: [PATCH] Update UsingNavigators.md Summary: Improve code formatting Closes https://github.com/facebook/react-native/pull/11019 Differential Revision: D4220686 Pulled By: mkonicek fbshipit-source-id: 019c02ee98e632b7f48567a22ca8cabeddadd584 --- docs/UsingNavigators.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/UsingNavigators.md b/docs/UsingNavigators.md index 9d6647ebe..c16ef5d9f 100644 --- a/docs/UsingNavigators.md +++ b/docs/UsingNavigators.md @@ -117,8 +117,8 @@ class SimpleNavigationApp extends Component { { + // Function to call when a new scene should be displayed + onForward={() => { const nextIndex = route.index + 1; navigator.push({ title: 'Scene ' + nextIndex, @@ -152,10 +152,12 @@ export default class MyScene extends Component { render() { return ( - Current Scene: { this.props.title } + Current Scene: {this.props.title} + Tap me to load the next scene + Tap me to go back