Update mobile login page
This commit is contained in:
44
mobile/src/screens/Home.js
Normal file
44
mobile/src/screens/Home.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import React from 'react';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
|
||||
export class Home extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
|
||||
}
|
||||
|
||||
onNavigatorEvent(event) {
|
||||
switch(event.id) {
|
||||
case 'willAppear':
|
||||
break;
|
||||
case 'didAppear':
|
||||
this.props.navigator.showModal({ screen: 'app.Login' })
|
||||
break;
|
||||
case 'willDisappear':
|
||||
break;
|
||||
case 'didDisappear':
|
||||
break;
|
||||
case 'willCommitPreview':
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>Hello John</Text>
|
||||
<Text>Changes you make will automatically reload.</Text>
|
||||
<Text>Shake your phone to open the developer menu.</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: '#fff',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user