Installation
Welcome to the react-native-paywall documentation! Follow the steps below to integrate the customizable paywall component into your React Native project.
Install the Package
You can install the package using either npm or yarn:
npm install react-native-paywall
# or
yarn add react-native-paywall
Install Required Dependency
The package depends on react-native-safe-area-context for handling safe area insets. Make sure to install it:
npm install react-native-safe-area-context
# or
yarn add react-native-safe-area-context
Linking Dependencies
If you haven't already linked the react-native-safe-area-context
dependency, follow the linking process for your React Native project. For most modern projects (React Native 0.60+), the linking is handled automatically. If you encounter issues, refer to the official documentation.
Next Steps
- Learn how to set up a basic paywall in the Basic Setup guide.
- Explore Paywalls Overview to see all available paywall components.