Open lukasreusch opened 7 years ago
@goinnovative you should just make an animated component out of CachedImage component:
const AnimatedCachedImage = Animated.createAnimatedComponent(CachedImage);
and after that animate its opacity in its style prop:
<AnimatedCachedImage
...
style={[ style, { opacity: this.animationValue }]}
>
@baryshok's solution didn't work. Shows blank in my react-native-snap-carousel. When I scroll my Carousel it just appears with no animation.
Edit: I was able to animate the opacity by wrapping CachedImage inside an Animated.View. But now I'm stuck trying to animate the width and height.
In my ProgressiveImage I try to replace the Image-components with the CachedImages. The problems are the animations.
This returns in an error Attempted to assign to readonly property.
And if I try this, there is no error but the images are appearing directly. Setting the opacity in the Animated.Image also has no effect, so of course the animation could not have any effect to.
Anybody here who archived to animate the CachedImages?