hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
992 stars 296 forks source link

Typescript Issue: RenderListItemPropsInterface<T>.onPress #559

Open Nestor231 opened 2 years ago

Nestor231 commented 2 years ago

In the typescript: onPress accepts a an argument of type T.

When i tried to pass the value (not the item), selection does not work on my renderList item.

i think the parameterType should be ItemType and not T only

from: onPress: (value: T) => void

to: onPress: (value: ItemType<T>) => void