This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/components/routes/info.js

49 lines
1 KiB
JavaScript
Raw Normal View History

2016-02-04 20:14:45 +00:00
import React from 'react-native';
import GlobalStyles from '../../settings/styles';
const {
StyleSheet,
Text,
View,
ScrollView,
BackAndroid,
} = React;
const styles = StyleSheet.create({
container: {
flex: 1,
2016-02-06 15:49:57 +00:00
backgroundColor: GlobalStyles.get('CIRCLE_BG'),
2016-02-04 20:14:45 +00:00
},
contentWrapper: {
justifyContent: 'flex-start',
2016-02-21 12:05:14 +00:00
alignItems: 'center',
padding: 10
2016-02-04 20:14:45 +00:00
},
text: {
2016-02-06 15:49:57 +00:00
color: GlobalStyles.get('CIRCLE_TEXT')
2016-02-04 20:14:45 +00:00
}
});
export default class Login extends React.Component {
componentWillUnmount() {
BackAndroid.removeEventListener('hardwareBackPress', this.props.nav.pop);
}
componentWillMount() {
BackAndroid.addEventListener('hardwareBackPress', this.props.nav.pop);
}
render() {
return (
<View style={styles.container}>
<ScrollView keyboardShouldPersistTaps={false} contentContainerStyle={styles.container}>
<View style={styles.contentWrapper}>
2016-02-06 15:49:57 +00:00
<Text style={styles.text}>Content</Text>
2016-02-04 20:14:45 +00:00
</View>
</ScrollView>
</View>
);
}
};