This app demonstrates basic react-native-adapty integration.
This application demonstrates:
- How to configure an instance of Adapty
- How to check user's purchases and their status (expired/refunded subscriptions)
- How to display a paywall
- How to display a list of products
This project was created using React Native CLI. Make sure you have completed the Set Up Your Environment guide before proceeding.
For Android Emulator Testing: Make sure to use an Android emulator with Google Play services installed (look for "Google Play" in the system image name when creating an AVD). This is required for in-app purchases functionality.
This example uses an automated credential setup system. When you run yarn start, the app will automatically prompt you to enter:
- Your Adapty API token
- Placement ID from your dashboard
- iOS Bundle ID
- Android Application ID
Your credentials are stored in .adapty-credentials.json file (which is gitignored for security).
To force re-enter credentials, run: yarn credentials-force
From the project root directory, navigate to the example folder and install dependencies:
cd examples/AdaptyDevtools
yarn installcd ios
pod install
cd ..yarn start
⚠️ Important: This will automatically trigger the credential setup if you haven't configured them yet. The app will prompt you to enter your Adapty API token, Placement ID, iOS Bundle ID, and Android Application ID.
Open a new terminal window and run:
For Android:
yarn androidFor iOS:
yarn ios- If you manually edited
.adapty-credentials.jsonthen runyarn credentials-forceto re-enter credentials through the interactive setup
- Make sure you're using an emulator with Google Play services
- Clean the build:
cd android && ./gradlew clean && cd .. - Reinstall dependencies:
rm -rf node_modules && yarn install
- Clean pods:
cd ios && rm -rf Pods Podfile.lock && pod install && cd .. - Clean build folder in Xcode: Product → Clean Build Folder


