const AnimatedDonut = animated(Donut)
because I think <animated.div>
can work, but <animated.Donut>
doesn't work.
So I tried:
https://codesandbox.io/s/weathered-breeze-ghdse
const AnimatedFoo = animated(Foo);
// ....
return <AnimatedFoo style={props}>I will fade in</AnimatedFoo>;
but it doesn't animated. Is it supposed to be the way it works?