(props)
| 9 | import styles from './styles'; |
| 10 | |
| 11 | export default function NavbarButton(props) { |
| 12 | const { |
| 13 | style, |
| 14 | tintColor, |
| 15 | title, |
| 16 | handler, |
| 17 | disabled, |
| 18 | accessible, |
| 19 | accessibilityLabel |
| 20 | } = props; |
| 21 | |
| 22 | return ( |
| 23 | <TouchableOpacity |
| 24 | style={styles.navBarButton} |
| 25 | onPress={handler} |
| 26 | disabled={disabled} |
| 27 | accessible={accessible} |
| 28 | accessibilityLabel={accessibilityLabel} |
| 29 | > |
| 30 | <View style={style}> |
| 31 | <Text style={[styles.navBarButtonText, { color: tintColor }]}>{title}</Text> |
| 32 | </View> |
| 33 | </TouchableOpacity> |
| 34 | ); |
| 35 | } |
| 36 | |
| 37 | NavbarButton.propTypes = { |
| 38 | style: PropTypes.oneOfType([ |
nothing calls this directly
no outgoing calls
no test coverage detected