initial app router and some views

This commit is contained in:
Peter Cottle 2015-04-28 11:20:20 -07:00
parent 13a4ad0d26
commit e9476696f4
6 changed files with 163 additions and 73 deletions

View file

@ -0,0 +1,32 @@
var React = require('react-native');
var {
PixelRatio,
StyleSheet,
Text,
TouchableHighlight,
View,
} = React;
class NavButton extends React.Component {
render() {
return (
<TouchableHighlight
style={styles.button}
underlayColor="#B5B5B5"
onPress={this.props.onPress}>
<Text style={styles.buttonText}>{this.props.text}</Text>
</TouchableHighlight>
);
}
}
var styles = StyleSheet.create({
button: {
backgroundColor: 'white',
padding: 15,
borderBottomWidth: 1 / PixelRatio.get(),
borderBottomColor: '#CDCDCD',
},
});
module.exports = NavButton;