Skip to content

Commit 965ec1c

Browse files
authored
Picker.Item - expose isItemDisabled (#2070)
1 parent 163e4c5 commit 965ec1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/picker/PickerItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const PickerItem = (props: PickerItemProps) => {
9393
throttleTime={0}
9494
{...accessibilityProps}
9595
>
96-
{customRenderItem ? customRenderItem(value, {...props, isSelected}, itemLabel) : _renderItem()}
96+
{customRenderItem ? customRenderItem(value, {...props, isSelected, isItemDisabled}, itemLabel) : _renderItem()}
9797
</TouchableOpacity>
9898
);
9999
};

src/components/picker/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export interface PickerBaseProps extends Omit<TextFieldProps, 'value' | 'onChang
8282
*/
8383
renderItem?: (
8484
value: PickerValue,
85-
itemProps: PickerItemProps & {isSelected: boolean},
85+
itemProps: PickerItemProps & {isSelected: boolean, isItemDisabled: boolean},
8686
label: string
8787
) => React.ReactElement;
8888
/**

0 commit comments

Comments
 (0)