import React, { useEffect } from 'react'; import { View, Text } from 'react-native'; import { NativeAdaptyOnboardingViewProps } from './types'; import { mockStyles } from './mock-styles'; /** * Mock implementation of AdaptyOnboardingView 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 * AdaptyOnboardingView component will be used instead, which renders the real * onboarding UI configured in the Adapty Dashboard. * * @see {@link https://docs.adapty.io/docs/paywall-builder-getting-started Adapty Paywall Builder Documentation} */ export const AdaptyOnboardingViewMock: React.FC< NativeAdaptyOnboardingViewProps > = props => { useEffect(() => { console.info('[Adapty Mock] AdaptyOnboardingView mounted'); return () => { console.info('[Adapty Mock] AdaptyOnboardingView unmounted'); }; }, []); return ( 🚀 AdaptyOnboardingView This is a mock component. The real Adapty onboarding will be displayed in builds with native dependencies (Expo EAS or dev-client). 💡 Running on: Expo Go, Web ); };