Created
September 26, 2017 12:22
-
-
Save chuyihuang/7a6292c071aa46e4dc4accae3e2f6881 to your computer and use it in GitHub Desktop.
week_7_demo_3
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 Home1 extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
} | |
} | |
render() { | |
return ( | |
<View style={{marginTop: 60}}> | |
<View style={{marginTop: 100, alignItems: 'center', justifyContent: 'center'}}> | |
<Text>Home1</Text> | |
<Button color="green" title="回首頁" onPress={() => Actions.pop()} /> | |
</View> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment