✨ New Features
Mock Mode for Expo Go and Expo Web
Added automatic mock mode support for Expo Go and Expo Web environments, enabling development without native modules. Mock mode can be manually enabled in standard React Native apps to speed up development iterations.
Note: Mock mode is not a testing tool and does not replace sandbox environments for QA.
- Automatic detection: SDK automatically detects Expo Go and web environments and enables mock mode without configuration
- Customizable mock data: Configure custom profiles, paywalls, products, and onboardings via
mockConfigparameter
Example usage:
import { adapty } from 'react-native-adapty';
await adapty.activate('YOUR_API_KEY', {
enableMock: true,
mockConfig: {
premiumAccessLevelId: 'premium'
}
});See the Expo Go example for a complete implementation.
Read more in the documentation.