I want to create an animation in my app, which includes transitioning the position and the opacity of a view. For now, all i have is transitioning the view, which I've done like so:
const fadeAnim = useRef(new Animated.Value(0)).current
useEffect(()=> {
Animated.timing(
fadeAnim,
{
toValue: 1,
duration: 1000,
useNativeDriver: true,
delay: 2000,
}
).start();
}, [fadeAnim])
<Animated.View style={{
opacity: fadeAnim
}}>
{content}
</Animated.View>
How can I edit this to also transition the position, and then after a few seconds, I would like to hide this container.