7.15.0-rc.1
Pre-release
Pre-release
New Features
- 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#766)
Breaking changes from previous betas
- We have split the library in two,
react-native-purchases
andreact-native-purchases-ui
. The first one contains
the core functionality of the SDK, while the second one contains the RevenueCat Paywalls functionality. - Android's
minSdkVersion
is brought back to 19 inreact-native-purchases
. TheminSdkVersion
in
react-native-purchases-ui
is 24.
Instructions:
- Update your
package.json
to includereact-native-purchases-ui
:
{
"dependencies": {
"react-native-purchases-ui": "7.15.0-rc.1"
}
}
Usage:
import { presentPaywallIfNeeded } from 'react-native-purchases-ui';
<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