mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
[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 <robbiemccorkell@gmail.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
var React = require('react-native');
|
var React = require('react-native');
|
||||||
var ViewExample = require('./ViewExample');
|
var ViewExample = require('./ViewExample');
|
||||||
|
var createExamplePage = require('./createExamplePage');
|
||||||
var {
|
var {
|
||||||
PixelRatio,
|
PixelRatio,
|
||||||
ScrollView,
|
ScrollView,
|
||||||
@@ -77,7 +78,7 @@ var NavigatorIOSExample = React.createClass({
|
|||||||
{this._renderRow('Push View Example', () => {
|
{this._renderRow('Push View Example', () => {
|
||||||
this.props.navigator.push({
|
this.props.navigator.push({
|
||||||
title: 'Very Long Custom View Example Title',
|
title: 'Very Long Custom View Example Title',
|
||||||
component: ViewExample,
|
component: createExamplePage(null, ViewExample),
|
||||||
});
|
});
|
||||||
})}
|
})}
|
||||||
{this._renderRow('Custom Right Button', () => {
|
{this._renderRow('Custom Right Button', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user