mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
32 lines
631 B
JavaScript
32 lines
631 B
JavaScript
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;
|