I'm setting a transform: translation on an Animated.Image, but animatable crashes:
Unhandled JS Exception: this._transforms.forEach is not a function. (In 'this._transforms.forEach', 'this._transforms.forEach' is undefined)
AnimatedImplementation.js:1408
It was an error on my side
In case anyone else is having this issue, you need to declare the transform property you want to animate, not the "transform" property.
For this: style={{transform: ['scale': ...]}}
This: transition="scale"
Not this: transition="transform"
This should be in the docs somewhere, or at least an example.
Most helpful comment
In case anyone else is having this issue, you need to declare the transform property you want to animate, not the "transform" property.
For this:
style={{transform: ['scale': ...]}}This:
transition="scale"Not this:
transition="transform"This should be in the docs somewhere, or at least an example.