import React, { useEffect } from "react"; import { View, Image } from "react-native"; const SplashScreen = ({ navigation }) => { useEffect(() => { const interval = setTimeout(() => { // Navigasi ke Onboarding setelah 3 detik navigation.navigate("Onboarding"); // Nama yang disesuaikan dengan navigator di App.js }, 1000); return () => clearTimeout(interval); // Clear timeout saat komponen unmount }, [navigation]); return ( ); }; export default SplashScreen;