From 0d0857fa87e4f559e61b7ab2025d6324e158c831 Mon Sep 17 00:00:00 2001 From: Volker Lieber <42102008+VolkerLieber@users.noreply.github.com> Date: Sat, 20 Jan 2024 12:40:49 +0100 Subject: [PATCH] Fix for custom renderListItem not being selectable Was caused by a wrong interface definition --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0e0dd54..d4c6c45 100644 --- a/index.d.ts +++ b/index.d.ts @@ -125,7 +125,7 @@ declare module 'react-native-dropdown-picker' { listItemLabelStyle: StyleProp; listParentContainerStyle: StyleProp; listParentLabelStyle: StyleProp; - onPress: (value: T) => void; + onPress: (item: ItemType, custom?: boolean) => void; parent: T; props: ViewProps; rtl: boolean;