From e5a31c6b579a48131a4f4d6dfa144d59698aae60 Mon Sep 17 00:00:00 2001 From: jamie-phlo Date: Wed, 22 Sep 2021 16:25:01 +0100 Subject: [PATCH] feat: add testID to ItemType and set on item TouchableOpacity --- index.d.ts | 1 + src/components/RenderListItem.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 41582462..baca2802 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,6 +22,7 @@ declare module "react-native-dropdown-picker" { parent?: ValueType; selectable?: boolean; disabled?: boolean; + testID?: string; }; export type ModeType = "DEFAULT" | "SIMPLE" | "BADGE"; diff --git a/src/components/RenderListItem.js b/src/components/RenderListItem.js index 2853a1a4..6ded818b 100644 --- a/src/components/RenderListItem.js +++ b/src/components/RenderListItem.js @@ -149,7 +149,7 @@ function RenderListItem({ }, [onPress, parent, categorySelectable, custom]); return ( - + {IconComponent} {label}