react-native-dropdown-picker
react-native-dropdown-picker copied to clipboard
Typescript Issue: RenderListItemPropsInterface<T>.onPress
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<T> and not T only
from:
onPress: (value: T) => void
to:
onPress: (value: ItemType<T>) => void