From f652e8eeaa741d14f47c2ef884af0be13cc1dba4 Mon Sep 17 00:00:00 2001 From: Robbie McCorkell Date: Fri, 3 Apr 2015 10:02:49 -0700 Subject: [PATCH] [UIExplorer] Fixed 'Push View Example' in NavigatorIOS example Summary: Fixed NavigatorIOSExample to render ViewExample using `createExamplePage(null, ViewExample)` Closes https://github.com/facebook/react-native/pull/419 Github Author: Robbie McCorkell Test Plan: Imported from GitHub, without a `Test Plan:` line. --- Examples/UIExplorer/NavigatorIOSExample.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Examples/UIExplorer/NavigatorIOSExample.js b/Examples/UIExplorer/NavigatorIOSExample.js index a7acdde24..eee731bd5 100644 --- a/Examples/UIExplorer/NavigatorIOSExample.js +++ b/Examples/UIExplorer/NavigatorIOSExample.js @@ -17,6 +17,7 @@ var React = require('react-native'); var ViewExample = require('./ViewExample'); +var createExamplePage = require('./createExamplePage'); var { PixelRatio, ScrollView, @@ -77,7 +78,7 @@ var NavigatorIOSExample = React.createClass({ {this._renderRow('Push View Example', () => { this.props.navigator.push({ title: 'Very Long Custom View Example Title', - component: ViewExample, + component: createExamplePage(null, ViewExample), }); })} {this._renderRow('Custom Right Button', () => {