chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
892 stars 187 forks source link

Introductory Price parsing (#186) #196

Open whtlnv opened 5 years ago

whtlnv commented 5 years ago

Parsing SKProduct's introductoryPrice if available (on iOS 11.2+), returned as an object with all properties on the native object. Enum's parsed as strings.

Tested on iOS 9.3 and 11.4 devices, and iOS 12 emulators with products without introductoryPrice, free trials and pay as you go.

Readme updated

whtlnv commented 5 years ago

Maybe I should have used NSDictionaries instead of switches. Will refactor later.

markgardner commented 5 years ago

+1