-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Android crash #771
Comments
FWIW I'm getting this same error but on React Native version 0.60.6. |
Can you please try |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of react-native-iap
4.0.2
Version of react-native
0.61.2
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
purchase should work
Actual behavior
I'm getting android crash with this error:
This is the cause:
react promise should be resolved with
WritableMap
and not withPurchase
.Btw, I noticed two very similar pieces of code, when Purchase is converted into WritableMap, here and here. They're different all but in a couple of fields. Maybe this can be extracted into utility function?
Tested environment (Emulator? Real Device?)
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: