Open Nestor231 opened 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
T
from: onPress: (value: T) => void
onPress: (value: T) => void
to: onPress: (value: ItemType<T>) => void
onPress: (value: ItemType<T>) => void
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
onlyfrom:
onPress: (value: T) => void
to:
onPress: (value: ItemType<T>) => void