import React, { useEffect } from 'react'; import { Image, StyleSheet, View } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import type { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { useTheme } from '../theme/ThemeProvider'; import type { RootStackParamList } from '../navigation'; type NavigationProp = NativeStackNavigationProp; export default function LandingScreen() { const { colors } = useTheme(); const navigation = useNavigation(); useEffect(() => { const timer = setTimeout(() => { navigation.reset({ index: 0, routes: [ { name: 'MainTabs', params: { screen: 'Models' }, }, ], }); }, 5000); return () => clearTimeout(timer); }, [navigation]); return ( ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, logo: { width: 220, height: 220, }, });