Closed 13r0ck closed 3 years ago
Thanks for this @13r0ck, in my own projects I've been pushing the "empty" bit closer to the html / view part - so something more like:
if shouldAnimate then
Animated.div expandFade [] [ element ]
else
element
I'd rather not "force" clients down either decision in favour of keeping the api small.
Why don't you open an issue and see if we can get some feedback from people? If more people like it we can definitely include it.
Created #15 as requested. Thanks!
Gonna close this for now until we get some more feedback on issue #15
Maybe I am going at this the wrong way, but I thought that adding
Animation.empty
would make it easier to match either no animation or some animation depending on themodel
.My thinking is
If I am going at this the wrong way then I can close this PR, also not sure if
Animation.empty
orAnimation.none
makse more sense?