Created
October 30, 2017 22:38
-
-
Save biyootiful/3c17a07da939a0f601568ad5252ac572 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 ( | |
<FadeIn> | |
<TouchableHighlight onPress={() => this.props.handlePage("main")}> | |
<Text style={styles.text}>Go to the MainPage</Text> | |
</TouchableHighlight> | |
</FadeIn> | |
); | |
} | |
} | |
class MainPage extends Component { | |
render() { | |
return ( | |
<FadeIn> | |
<TouchableHighlight onPress={() => this.props.handlePage("start")}> | |
<Text style={styles.text}>Go to the StartPage</Text> | |
</TouchableHighlight> | |
</FadeIn> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment