getProducts returns empty array in newest version RN #451
Version of react-native-iap
Version of react-native
Platforms you faced the error (IOS or Android or both?)
I expect getProducts to return an array of available purchases.
The returned device is empty.
Tested environment (Emulator? Real Device?)
Steps to reproduce the behavior
The above code in the same xcode project works correctly using:
The text was updated successfully, but these errors were encountered:
Only one i could find that remotely matched mine was #340.
For me, the module is working as expected in react-native 0.56.0, but not react-native 0.59.4, can't find any ticket related to that. If you could point me to a ticket like that it would be very helpful.
I'm just gonna roll with 0.56.0 for now, but you should know that the module is not working in 0.59.4.
@hyochan: per your above comment that presumably resulted in this issue being closed, please kindly let us know what issues this one duplicates.
This is the only library of its kind that I know of, AND it is not working in current versions of RN. It would be great to get a better sense of what the issue is so the community can work towards getting it resolved. We need this library!
I solved it! I am using these versions,
just do it like this