react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

Typescript Issue: RenderListItemPropsInterface<T>.onPress

Open Nestor231 opened this issue 3 years ago • 0 comments

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

Nestor231 avatar May 26 '22 04:05 Nestor231