import React, { useState } from 'react'; import { View, Text, StyleSheet, Image } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { RootStackParamList } from '../navigation/types'; import { Button } from '../components'; import { colors, spacing, typography } from '../lib/theme'; import { useAuth } from '../contexts/AuthContext'; type NavigationProp = NativeStackNavigationProp; const SLIDES = [ { title: 'Welcome to Pottery Diary', description: 'Track every step of your ceramics journey from clay to finished piece', icon: '🏺', }, { title: 'Log Every Detail', description: 'Record firing temps, cone numbers, glazes, layers, and photos for each project', icon: '🔥', }, { title: 'Reproduce Your Results', description: 'Never forget how you made that perfect glaze combination', icon: '🎨', }, ]; export const OnboardingScreen: React.FC = () => { const navigation = useNavigation(); const { completeOnboarding } = useAuth(); const [currentSlide, setCurrentSlide] = useState(0); const handleNext = () => { if (currentSlide < SLIDES.length - 1) { setCurrentSlide(currentSlide + 1); } else { handleComplete(); } }; const handleSkip = () => { handleComplete(); }; const handleComplete = async () => { // Save onboarding completion status await completeOnboarding(); navigation.replace('MainTabs', { screen: 'Projects' }); }; const slide = SLIDES[currentSlide]; return ( {slide.icon} {slide.title} {slide.description} {SLIDES.map((_, index) => ( ))} {currentSlide < SLIDES.length - 1 && (