Last active
October 30, 2017 22:18
-
-
Save biyootiful/ece520cb2c3880f1dd9b3ff75aa60854 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StartPage extends Component { | |
render() { | |
return ( | |
<TouchableHighlight onPress={() => this.props.handlePage("main")}> | |
<Text style={styles.text}>Go to the MainPage</Text> | |
</TouchableHighlight> | |
); | |
} | |
} | |
class MainPage extends Component { | |
render() { | |
return ( | |
<TouchableHighlight onPress={() => this.props.handlePage("start")}> | |
<Text style={styles.text}>Go to the StartPage</Text> | |
</TouchableHighlight> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment