Skip to content

Commit 0d0857f

Browse files
committed
Fix for custom renderListItem not being selectable
Was caused by a wrong interface definition
1 parent 09c6364 commit 0d0857f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ declare module 'react-native-dropdown-picker' {
125125
listItemLabelStyle: StyleProp<TextStyle>;
126126
listParentContainerStyle: StyleProp<ViewStyle>;
127127
listParentLabelStyle: StyleProp<TextStyle>;
128-
onPress: (value: T) => void;
128+
onPress: (item: ItemType<T>, custom?: boolean) => void;
129129
parent: T;
130130
props: ViewProps;
131131
rtl: boolean;

0 commit comments

Comments
 (0)