Skip to content

7.4.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@RCGitBot RCGitBot released this 14 Nov 01:23

New Features

  • 馃摫 Initial support for cross-platform RevenueCat Paywalls 馃惥 馃П (#766)

Instructions:

  • Update react-native-purchases in your package.json:
{
  "dependencies": {
    "react-native-purchases": "7.4.0-beta.1"
  }
}

Usage:

import { presentPaywallIfNeeded } from 'react-native-purchases';

<TouchableOpacity
  style={styles.button}
  onPress={ presentPaywallIfNeeded("pro") } >
  <Text>Present paywall if PRO entitlement is not active</Text>
</TouchableOpacity>

Limitations:

  • Currently only full screen paywalls are supported
  • There is no way to detect paywall events other than using addCustomerInfoUpdateListener
  • Android's minSdkVersion is temporarily increased from 19 to 24 to support paywalls. This will be reverted in a future release as we split react-native-purchases and react-native-purchases-ui