npm react-native-adapty 3.14.1
v3.14.1

17 hours ago

✨ 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 mockConfig parameter

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.

Don't miss a new react-native-adapty release

NewReleases is sending notifications on new releases.