Files
2016-01-19 19:29:13 -08:00

43 lines
720 B
JavaScript

'use strict';
let React = require('react-native');
let {
StyleSheet,
View,
Text
} = React;
let globals = require('../globals');
class Screen extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.headerText}>{ this.props.title }</Text>
</View>
{ this.props.children }
</View>
);
}
}
let styles = StyleSheet.create({
container: {
flex: 1
},
header: {
backgroundColor: globals.colors.primary,
height: 64
},
headerText: {
color: '#FFF',
fontSize: 17,
fontWeight: 'bold',
marginTop: 32,
alignSelf: 'center',
}
});
module.exports = Screen;