diff --git a/docs/UsingNavigators.md b/docs/UsingNavigators.md index dd7eef7921b..17dc5e1e855 100644 --- a/docs/UsingNavigators.md +++ b/docs/UsingNavigators.md @@ -78,7 +78,7 @@ render() { { - + return }} /> ); @@ -112,25 +112,27 @@ export default class SimpleNavigationApp extends Component { - { - const nextIndex = route.index + 1; - navigator.push({ - title: 'Scene ' + nextIndex, - index: nextIndex, - }); - }} - - // Function to call to go back to the previous scene - onBack={() => { - if (route.index > 0) { - navigator.pop(); - } - }} - /> + return ( + { + const nextIndex = route.index + 1; + navigator.push({ + title: 'Scene ' + nextIndex, + index: nextIndex, + }); + }} + + // Function to call to go back to the previous scene + onBack={() => { + if (route.index > 0) { + navigator.pop(); + } + }} + /> + ) } /> )