Skip to content

Commit 52a1ba8

Browse files
authored
getItemLabel type changed since it's note deprecated (#3137)
1 parent f1ac957 commit 52a1ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/picker/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export interface PickerItemProps extends Pick<TouchableOpacityProps, 'customValu
220220
/**
221221
* Custom function for the item label (e.g (value) => customLabel)
222222
*/
223-
getItemLabel?: PickerProps['getItemLabel'];
223+
getItemLabel?: (value: PickerValue) => string;
224224
/**
225225
* @deprecated Function to return the value out of the item value prop when value is custom shaped.
226226
*/

0 commit comments

Comments
 (0)