源码如下:
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
ScrollView,
PixelRatio,
NavigatorIOS,
TextInput,
} from 'react-native';
class HelloWorld extends Component {
render() {
return (
<NavigatorIOS style = {styles.flex} initialRoute = {
{
component: NavigatorRouteView,
title: 'Hi',
passProps: {},
}
} />
);
}
}
class NavigatorRouteView