Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataSet is giving a type error #2322

Closed
jnrepo opened this issue Jun 29, 2022 · 1 comment
Closed

dataSet is giving a type error #2322

jnrepo opened this issue Jun 29, 2022 · 1 comment

Comments

@jnrepo
Copy link

jnrepo commented Jun 29, 2022

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<...>'.

How to reproduce
Simplified test case: https://codesandbox.io/s/dataset-type-error-f5yzef?file=/src/App.tsx

Steps to reproduce:

  1. Add dataSet to a react-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?

  • React Native for Web (version): 0.17.5
  • React (version): 17.0.2
  • Browser: Chrome
  • Did this work in previous versions? not sure
@necolas
Copy link
Owner

necolas commented Jun 29, 2022

I don't maintain the TypeScript types for this library.

#832

@necolas necolas closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants