import React, { useEffect } from 'react'; import { View, Text } from 'react-native'; import { NativeAdaptyPaywallViewProps } from './types'; import { mockStyles } from './mock-styles'; /** * Mock implementation of AdaptyPaywallView component. * * This component is used in environments where native modules are not available: * - Expo Go * - Web browsers * * In builds with native dependencies (Expo EAS or dev-client), the actual native * AdaptyPaywallView component will be used instead, which renders the real paywall * UI configured in the Adapty Dashboard. * * @see {@link https://docs.adapty.io/docs/paywall-builder-getting-started Adapty Paywall Builder Documentation} */ export const AdaptyPaywallViewMock: React.FC< NativeAdaptyPaywallViewProps > = props => { useEffect(() => { console.info('[Adapty Mock] AdaptyPaywallView mounted'); return () => { console.info('[Adapty Mock] AdaptyPaywallView unmounted'); }; }, []); return ( 📦 AdaptyPaywallView This is a mock component. The real Adapty paywall will be displayed in builds with native dependencies (Expo EAS or dev-client). 💡 Running on: Expo Go, Web. ); };