diff --git a/src/components/WheelPicker/Item.tsx b/src/components/WheelPicker/Item.tsx index 0b449d05e8..1dc8813b7d 100644 --- a/src/components/WheelPicker/Item.tsx +++ b/src/components/WheelPicker/Item.tsx @@ -53,7 +53,7 @@ const WheelPickerItem = (props: Interna align, disableRTL } = themeProps; - + const selectItem = useCallback(() => onSelect(index), [index]); const itemOffset = index * itemHeight; const _activeColor = useRef(activeColor.toString()); diff --git a/src/components/picker/PickerPresenter.ts b/src/components/picker/PickerPresenter.ts index 482047b3c3..6307c7295b 100644 --- a/src/components/picker/PickerPresenter.ts +++ b/src/components/picker/PickerPresenter.ts @@ -8,7 +8,9 @@ export function extractPickerItems(props: PickerProps) { // @ts-expect-error handle use PickerItemProps once exist value: child?.props.value, // @ts-expect-error handle use PickerItemProps once exist - label: child?.props.label + label: child?.props.label, + // @ts-expect-error handle use PickerItemProps once exist + testID: child?.props.testID })); return items ?? []; }