Ivan Vukovic, Mobile lead @ Shoutem
Automatically animates views to their new positions when the next layout happens.
A common way to use this API is to call it before calling setState.
The simplest workflow is to create an Animated.Value, hook it up to one or more style attributes of an animated component, and then drive updates either via animations, such as Animated.timing, or by hooking into gestures like panning or scrolling via Animated.event. Animated.Value can also bind to props other than style, and can be interpolated as well.
Problem #1: Too much code...
Problem #2: How to make them interactive???
<FadeIn> <Text>I'm fading in</Text></FadeIn>
Problem #3: Too much nesting and for complex animations
const driver = new ScrollDriver(); ... <FadeIn driver={driver}> <Text>I'm fading in</Text></FadeIn>
<Image animationName="hero" />