import React, { useEffect, useRef } from 'react';
import {
View,
Text,
StyleSheet,
Animated,
ImageBackground,
StatusBar,
} from 'react-native';
const SplashScreen: React.FC = () => {
const fadeAnim = useRef(new Animated.Value(0)).current;
useEffect(() => {
Animated.timing(fadeAnim, {
toValue: 1,
duration: 1200,
useNativeDriver: true,
}).start();
}, []);
return (
<>
{/* Optional content */}
{/* Your App Name */}
>
);
};
export default SplashScreen;
const styles = StyleSheet.create({
background: {
flex: 1, // Full screen
width: '100%',
height: '100%',
},
overlay: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
title: {
fontSize: 24,
fontWeight: 'bold',
color: '#FFFFFF',
},
});