Skip to content

Commit

Permalink
onPress prop added to SelectItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
tommasini committed Jul 5, 2023
1 parent 151b54e commit f3cbf39
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ const SelectItem: React.FC<SelectItemProps> = ({
isSelected = false,
isDisabled = false,
children,
onPress,
...props
}) => {
const { styles } = useStyles(styleSheet, { style, isDisabled });

return (
<TouchableOpacity style={styles.base} disabled={isDisabled}>
<TouchableOpacity
style={styles.base}
disabled={isDisabled}
onPress={onPress}
>
<ListItem
padding={DEFAULT_SELECTITEM_PADDING}
borderRadius={DEFAULT_SELECTITEM_BORDERRADIUS}
Expand Down

0 comments on commit f3cbf39

Please sign in to comment.