Loading mobile/src/common/components/animated_background.tsx +10 −13 Original line number Diff line number Diff line import { Animated, Image, View } from "react-native"; import { PlaceInfoEntity } from "../../domain/entities/place_info_entity"; import { useAnimatedSelectedIndex } from "../../hooks/useAnimatedSelectedIndex"; import { LinearGradient } from "expo-linear-gradient"; import { LIGHT_THEME } from "../constants/theme"; interface AnimatedBackgroundProps { imageUri?: string; backgroundImageAnimation: Animated.Value; }; } export const AnimatedBackground = ({ imageUri, backgroundImageAnimation }: AnimatedBackgroundProps) => { export const AnimatedBackground = ({ imageUri, backgroundImageAnimation, }: AnimatedBackgroundProps) => { return ( <Animated.View style={{ Loading @@ -17,7 +22,7 @@ export const AnimatedBackground = ({ imageUri, backgroundImageAnimation }: Anima opacity: backgroundImageAnimation.interpolate({ inputRange: [-300, 0], outputRange: [0, 1], }) }), }} > <Image Loading @@ -38,14 +43,6 @@ export const AnimatedBackground = ({ imageUri, backgroundImageAnimation }: Anima }).start(); }} /> <View style={{ position: "absolute", width: "100%", height: "100%", backgroundColor: "rgba(0, 0, 0, 0.4)", }} /> </Animated.View> ); }; Loading
mobile/src/common/components/animated_background.tsx +10 −13 Original line number Diff line number Diff line import { Animated, Image, View } from "react-native"; import { PlaceInfoEntity } from "../../domain/entities/place_info_entity"; import { useAnimatedSelectedIndex } from "../../hooks/useAnimatedSelectedIndex"; import { LinearGradient } from "expo-linear-gradient"; import { LIGHT_THEME } from "../constants/theme"; interface AnimatedBackgroundProps { imageUri?: string; backgroundImageAnimation: Animated.Value; }; } export const AnimatedBackground = ({ imageUri, backgroundImageAnimation }: AnimatedBackgroundProps) => { export const AnimatedBackground = ({ imageUri, backgroundImageAnimation, }: AnimatedBackgroundProps) => { return ( <Animated.View style={{ Loading @@ -17,7 +22,7 @@ export const AnimatedBackground = ({ imageUri, backgroundImageAnimation }: Anima opacity: backgroundImageAnimation.interpolate({ inputRange: [-300, 0], outputRange: [0, 1], }) }), }} > <Image Loading @@ -38,14 +43,6 @@ export const AnimatedBackground = ({ imageUri, backgroundImageAnimation }: Anima }).start(); }} /> <View style={{ position: "absolute", width: "100%", height: "100%", backgroundColor: "rgba(0, 0, 0, 0.4)", }} /> </Animated.View> ); };