Skip to content

Instantly share code, notes, and snippets.

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