Skip to content

Instantly share code, notes, and snippets.

@chuyihuang
Created September 26, 2017 12:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuyihuang/7a6292c071aa46e4dc4accae3e2f6881 to your computer and use it in GitHub Desktop.
Save chuyihuang/7a6292c071aa46e4dc4accae3e2f6881 to your computer and use it in GitHub Desktop.
week_7_demo_3
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