This is an Expo-based example app that demonstrates Adapty SDK integration for testing the mock mechanism on Expo Go and Web platforms.
This example is specifically designed to test the Adapty SDK's mock functionality for platforms where native modules are not available (Expo Go and Web). It contains the same recipe app functionality as the BasicExample but adapted for Expo environment.
-
Install dependencies:
npm install
-
Add your Adapty API keys in
src/helpers.ts:- Replace
MOCK_TOKENwith your actual API key - Replace
MOCK_PLACEMENT_IDwith your placement ID
- Replace
npm startThen scan the QR code with Expo Go app.
npm run webnpm run local-build-clientnpm run iosnpm run androidThis example is designed to work with Adapty SDK's web mock implementation. When running on Web or Expo Go, the SDK will use mock data instead of actual native functionality.
The app demonstrates three paywall implementation approaches:
- Custom UI - Manual implementation with full design control
- Modal - Pre-built Adapty paywall as popup (
createPaywallView()) - Component - Embedded Adapty paywall view (
<AdaptyPaywallView>)
Switch between modes using the toggle buttons on the main screen.