mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 08:41:57 +00:00
temp disable splash
This commit is contained in:
parent
eb6fcf639f
commit
9e6b455323
1 changed files with 33 additions and 25 deletions
|
|
@ -7,34 +7,42 @@ interface SplashScreenProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const SplashScreen = ({ onFinish }: SplashScreenProps) => {
|
const SplashScreen = ({ onFinish }: SplashScreenProps) => {
|
||||||
// Animation value for opacity
|
// TEMPORARILY DISABLED
|
||||||
const fadeAnim = new Animated.Value(1);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Wait for a short period then start fade out animation
|
// Immediately call onFinish to skip splash screen
|
||||||
const timer = setTimeout(() => {
|
onFinish();
|
||||||
Animated.timing(fadeAnim, {
|
}, [onFinish]);
|
||||||
toValue: 0,
|
|
||||||
duration: 400,
|
|
||||||
useNativeDriver: true,
|
|
||||||
}).start(() => {
|
|
||||||
// Call onFinish when animation completes
|
|
||||||
onFinish();
|
|
||||||
});
|
|
||||||
}, 300); // Show splash for 0.8 seconds
|
|
||||||
|
|
||||||
return () => clearTimeout(timer);
|
return null;
|
||||||
}, [fadeAnim, onFinish]);
|
|
||||||
|
|
||||||
return (
|
// Animation value for opacity
|
||||||
<Animated.View style={[styles.container, { opacity: fadeAnim }]}>
|
// const fadeAnim = new Animated.Value(1);
|
||||||
<Image
|
|
||||||
source={require('../assets/splash-icon-new.png')}
|
// useEffect(() => {
|
||||||
style={styles.image}
|
// // Wait for a short period then start fade out animation
|
||||||
resizeMode="contain"
|
// const timer = setTimeout(() => {
|
||||||
/>
|
// Animated.timing(fadeAnim, {
|
||||||
</Animated.View>
|
// toValue: 0,
|
||||||
);
|
// duration: 400,
|
||||||
|
// useNativeDriver: true,
|
||||||
|
// }).start(() => {
|
||||||
|
// // Call onFinish when animation completes
|
||||||
|
// onFinish();
|
||||||
|
// });
|
||||||
|
// }, 300); // Show splash for 0.8 seconds
|
||||||
|
|
||||||
|
// return () => clearTimeout(timer);
|
||||||
|
// }, [fadeAnim, onFinish]);
|
||||||
|
|
||||||
|
// return (
|
||||||
|
// <Animated.View style={[styles.container, { opacity: fadeAnim }]}>
|
||||||
|
// <Image
|
||||||
|
// source={require('../assets/splash-icon-new.png')}
|
||||||
|
// style={styles.image}
|
||||||
|
// resizeMode="contain"
|
||||||
|
// />
|
||||||
|
// </Animated.View>
|
||||||
|
// );
|
||||||
};
|
};
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue