MCPcopy
hub / github.com/Kureev/react-native-navbar / NavbarButton

Function NavbarButton

NavbarButton.js:11–35  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

9import styles from './styles';
10
11export 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
37NavbarButton.propTypes = {
38 style: PropTypes.oneOfType([

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected