import React, { useEffect, useRef } from 'react'; import { View, Text, StyleSheet, Animated } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { SafeAreaView } from 'react-native-safe-area-context'; import { RootStackParamList } from '../navigation/types'; import { COLORS, FONT_SIZE, SPACING, RADIUS, TEXT, SHADOWS } from '../theme'; import { useTheme } from '../theme'; import { Button } from '../components/ui'; interface GuestScreenProps { icon?: string; title?: string; description?: string; } const FEATURES = [ { icon: '🤖', text: 'Build AI chatbots from your documents' }, { icon: '📊', text: 'Analytics, leads & conversation history' }, { icon: '🚀', text: 'Deploy to Telegram, WhatsApp & web' }, { icon: '🔌', text: 'Free plan available — no credit card needed' }, ]; export function GuestScreen({ icon = '🔐', title = 'Sign in to continue', description = 'Create a free account to build and manage your AI chatbots.', }: GuestScreenProps) { const { theme } = useTheme(); const navigation = useNavigation>(); const fadeAnim = useRef(new Animated.Value(0)).current; const slideAnim = useRef(new Animated.Value(24)).current; useEffect(() => { Animated.parallel([ Animated.timing(fadeAnim, { toValue: 1, duration: 400, useNativeDriver: true }), Animated.spring(slideAnim, { toValue: 0, useNativeDriver: true, speed: 16, bounciness: 4 }), ]).start(); }, []); return ( {/* Logo */} C Contexta {/* Card */} {icon} {title} {description}