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

CheckBox component gives typescript error: JSX element class does not support attributes because it does not have a 'props' property #196

Closed
t-ricci-digit opened this issue Apr 28, 2023 · 4 comments

Comments

@t-ricci-digit
Copy link

t-ricci-digit commented Apr 28, 2023

image

Using Typescript 5.0.4, react-native 0.71.2 and react-native-checkbox 0.5.15

@0x1337ak
Copy link

0x1337ak commented May 9, 2023

the same issue, I think it's related to react native 0.71.x You can use the latest Stable version that works which is 0.70.9 until it's fixed

context

checkbox relies on NativeMethodsMixin instead NativeMethods which is got deprecated in the latest version of React Native

@t-ricci-digit
Copy link
Author

the same issue, I think it's related to react native 0.71.x You can use the latest Stable version that works which is 0.70.9 until it's fixed

context

checkbox relies on NativeMethodsMixin instead NativeMethods which is got deprecated in the latest version of React Native

Oh I see thanks. Yeah I didn't specify so before, but I am indeed on RN 0.71.x (more specifically on 0.71.2)

@techgerm
Copy link

Is there a workaround to this so aren't forced to downgrade to React Native <0.71.x?

@techgerm
Copy link

This was actually fixed in 0.5.15: #190 (comment)

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

3 participants