({ onPress, disabled, children, ...props })
| 24 | }); |
| 25 | |
| 26 | function SelectorButton({ onPress, disabled, children, ...props }) { |
| 27 | const { colors } = useTheme(); |
| 28 | const styles = createStyles(colors); |
| 29 | |
| 30 | return ( |
| 31 | <TouchableOpacity onPress={onPress} disabled={disabled} {...props}> |
| 32 | <View style={styles.container}> |
| 33 | <>{children}</> |
| 34 | <Icon name="caret-down" size={18} style={styles.caretDown} /> |
| 35 | </View> |
| 36 | </TouchableOpacity> |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | SelectorButton.propTypes = { |
| 41 | children: PropTypes.node, |
nothing calls this directly
no test coverage detected