ignite-jhipster
Version:
A React Native boilerplate for JHipster apps.
23 lines (19 loc) • 553 B
JavaScript
import React from 'react'
import PropTypes from 'prop-types'
import { Text, TouchableOpacity } from 'react-native'
import styles from './drawer-button.styles'
class DrawerButton extends React.Component {
static propTypes = {
text: PropTypes.string,
onPress: PropTypes.func,
testID: PropTypes.string
}
render () {
return (
<TouchableOpacity testID={this.props.testID} onPress={this.props.onPress}>
<Text style={styles.text}>{this.props.text}</Text>
</TouchableOpacity>
)
}
}
export default DrawerButton