-
Notifications
You must be signed in to change notification settings - Fork 269
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
React Native - Android crashes when install a dependency and use TextInput #858
Comments
Can you try RN 0.66? If not you may have to rely on the workaround here- https://stackoverflow.com/questions/67683149/react-native-build-error-attempt-to-invoke-virtual-methodboolean-com-facebook |
I already tried with that version in another project
The error only occurs when installing stripe, when I remove it the error disappears |
all it takes is installing stripe? you don't need to modify the Javascript code at all? If you can share a link to repo that reproduces the error that would be very helpful |
Yes, just installing stripe and using the component you get the error only on android This is the repo |
@charliecruzan-stripe could you replicate the error? |
Yeah, it's caused by React Native- facebook/react-native#31572 (comment) It will be fixed in RN 68, but until then you can add this workaround we have in our example app: https://github.com/stripe/stripe-react-native/blob/master/example/android/app/build.gradle#L203-L207 |
For anyone who still needs this, the above comment from @charliecruzan-stripe refers to the example The workaround can be found here: stripe-react-native/example/android/app/build.gradle Lines 202 to 207 in b688e87
|
When I called the TextInput element it crashes on android.
It gives me an error when a I tried to use stripe on my app. it gives me the next following error:
This is the versions of my dependencies
The text was updated successfully, but these errors were encountered: