Android price returned is actually the localizedPrice
ilyakar opened this issue · comments
Version of react-native-iap
0.2.17
Expected behavior
On Android, product.price should be a number e.g., 23.99
Actual behavior
Returns "CZK 23.99"
Steps to reproduce the behavior
@ilyakar Hi! Thank you for the bug report. I've just fixed this one and published to npm version 0.3.0-beta5
. Could you try this one? Also please note that there are some breaking changes in 0.3.*
for renamed methods. Please check the readme.
Okay. I'll give it a try, thanks. The reason I'm still sticking to 0.2.17 is because I had some problems on Android with the .prepare()
method of 0.3.0-beta4. Apparently, it's expecting some attributes, unlike 0.2.17?
@ilyakar prepare()
method is just same for prepareAndroid()
. If it is not working as expected could you please share?
I think your primary issue is solved.