Skip to content

Instantly share code, notes, and snippets.

@biyootiful
Created October 30, 2017 22:38
Show Gist options
  • Save biyootiful/3c17a07da939a0f601568ad5252ac572 to your computer and use it in GitHub Desktop.
Save biyootiful/3c17a07da939a0f601568ad5252ac572 to your computer and use it in GitHub Desktop.
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