Skip to main content
Solved

Access to subscriptionPeriod on product.

  • Feb 17, 2022 3:10 AM UTC
  • 1 reply
  • 490 views

Forum|alt.badge.img

Hello,

As far as I can see there is a subscriptionPeriod property available on both Android and iOS, however I do not see anyway of accessing this through the React native SDK. Is this something that is available?

 

Thanks

Best answer by sundeep

Hi @Edward Armstrong, you could get the packageType of the product with the React Native SDK: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L207 (it corresponds to these values: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L2-L48)

View original
This post has been closed for comments

1 reply

sundeep
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • Answer
  • Feb 19, 2022 2:20 AM UTC

Hi @Edward Armstrong, you could get the packageType of the product with the React Native SDK: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L207 (it corresponds to these values: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L2-L48)