Created
September 26, 2017 12:21
-
-
Save chuyihuang/87d9c83621ae7df920a103db1c2f18e1 to your computer and use it in GitHub Desktop.
week_7_demo_2
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
import React, {Component} from 'react'; | |
import { | |
View, | |
Text, | |
Button, | |
} from 'react-native'; | |
import {Actions} from 'react-native-router-flux'; | |
export default class Home extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
} | |
} | |
render() { | |
return ( | |
<View style={{marginTop: 60}}> | |
<View style={{marginTop: 100, alignItems: 'center', justifyContent: 'center'}}> | |
<Text>Home</Text> | |
<Button color="blue" title="到子頁" onPress={() => Actions.home1()} /> | |
</View> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment