Skip to content

Commit

Permalink
Merge pull request #7088 from StoDevX/drew/picker-item-style
Browse files Browse the repository at this point in the history
add dynamic color to Picker.Item labels
  • Loading branch information
drewvolz authored Oct 18, 2023
2 parents 23b5104 + 673532d commit c323606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/filter/section-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export function PickerSection<T extends object>({
return (
<Section footer={caption} header={title.toUpperCase()}>
<Picker
itemStyle={styles.pickerItem}
onValueChange={(itemValue, itemIndex) => {
let pickedItem = spec.options[itemIndex]
onChange({...filter, spec: {...spec, selected: pickedItem}})
Expand Down

0 comments on commit c323606

Please sign in to comment.