Solved

Access to subscriptionPeriod on product.

  • 17 February 2022
  • 1 reply
  • 85 views

Badge

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

icon

Best answer by sundeep 19 February 2022, 03:20

View original

1 reply

Userlevel 3
Badge +8

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)

Reply