/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component, PropTypes } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TextInput, NavigatorIOS, TouchableHighlight } from 'react-native'; // import MyScene from './MyScene'; class AwesomeProject extends Component { render() { return ( ); } } class MyScene extends Component { constructor(props, context) { super(props, context); this._onForward = this._onForward.bind(this); } _onForward() { this.props.navigator.push({ title: 'Scene ' + nextIndex, }); } render() { return ( Current Scene: { this.props.title } Tap me to load the next scene ) } } MyScene.propTypes = { title: PropTypes.string.isRequired, navigator: PropTypes.object.isRequired, }; MyScene.defaultProps = { title: '11' }; AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);