You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem
Trying to use dataSet to pass in custom data props. ie. dataSet={{ test: '123' }}. Doing so returns an error Property 'dataSet' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<TouchableOpacity> & Readonly<TouchableOpacityProps> & Readonly<...>'.
The problem
Trying to use
dataSet
to pass in custom data props. ie.dataSet={{ test: '123' }}
. Doing so returns an errorProperty 'dataSet' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<TouchableOpacity> & Readonly<TouchableOpacityProps> & Readonly<...>'.
How to reproduce
Simplified test case: https://codesandbox.io/s/dataset-type-error-f5yzef?file=/src/App.tsx
Steps to reproduce:
dataSet
to areact-native
component. ie. TouchableOpacity, View, etc.Expected behavior
No type error. According to release changes this is how we should be passing in custom
data-
props.Environment (include versions). Did this work in previous versions?
The text was updated successfully, but these errors were encountered: