Keys in app.json
After setup, the following keys are added to yourapp.json (under the extra field):
The app automatically selects test keys in development (
__DEV__ is true) and production keys in release builds.
Generated files
The AI agent creates or modifies these files:Dependencies
Thereact-native-purchases package is installed automatically.
How API key switching works
The generatedSubscriptionContext.tsx includes logic like:
- In development builds, the Test Store key is used so you can simulate purchases safely
- In production builds, the real iOS or Android key is used for actual App Store / Play Store purchases
- This switching is automatic — you don’t need to change anything between environments