Yes.
Yes.
iOS, and on snack.expo.io
Animated.View with a shadow and shadowOffset (eg. {width: 10, height: 10})Animated.ValueshadowOffset is affected. (shadowOpacity, and shadowRadius are unaffected)https://snack.expo.io/rkBBhJ3Nb
shadowOffset should persist
shadowOffset does not persist
https://snack.expo.io/rkBBhJ3Nb
Note: none of the shadow properties are being animated.
A way to fix this is to wrap the styled-shadowed View with an Animated.View and animate that instead.
@janicduplessis any thoughts?
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
It worked for me by using an animated value on it
shadowOffset: {
width: 0,
height: this.deltaY.interpolate({
inputRange: [-60, 0],
outputRange: [20, 0]
})
}
Another solution to this is wrapping the content of the Animatable into another View and applying the shadowOffset to it.
https://github.com/oblador/react-native-animatable/issues/133
Both those workarounds are great. But there's still a bug
Definitely a bug and should be reopened. I just encountered this exact issue.
@gastonmorixe Do you know if there is a way to make it work when animating shadowOpacity?
Yup, the same thing applies to text shadows. Definitely a bug.
Any solution yet? the two above didn't work for me :(
Thanks.
Still a bug, should be re-opened.
I've just encountered this as well
Most helpful comment
Both those workarounds are great. But there's still a bug