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

import CheckBox from '@react-native-community/checkbox'; does not work #215

Open
AnjanaPathirana99 opened this issue Mar 2, 2024 · 3 comments

Comments

@AnjanaPathirana99
Copy link

AnjanaPathirana99 commented Mar 2, 2024

import CheckBox from '@react-native-community/checkbox';

This import statement does not work with Expo environment.

Error received,

"Invariant Violation: requireNativeComponent: "AndroidCheckBox" was not found in the UIManager."

@matheusgomessouza
Copy link

image

image

This is happening with my project as well.

"@react-native-community/checkbox": "^0.5.17",
"expo": "50.0.8",
"react-native": "0.73.4",

@matheusgomessouza
Copy link

@AnjanaPathirana99 It looks like that Expo has an alternative for this. There is an Expo Checkbox component (https://docs.expo.dev/versions/latest/sdk/checkbox/). Idk if u r using Expo too, but that seems to solve the problem according to this article on StackOverflow (https://stackoverflow.com/questions/69871889/expo-sdk43-androidcheckbox-was-not-found-in-the-uimanager)

@AnjanaPathirana99
Copy link
Author

@matheusgomessouza Yes. You are right. I too used the same package from

npx expo install expo-checkbox

And it worked for me as well. 😊

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