The following line is invalid in Typescript:
const { opacity, transform, ...rest } = useSpring(baseConfig);
With the messages:
Property 'opacity' does not exist on type 'AnimatedValue
, never>>'.ts(2339)
https://codesandbox.io/s/tender-sutherland-4b48l
(Forked from working js version: https://codesandbox.io/s/2v716k56pr?from-embed )
Ability to reference animated props directly eg style={{opacity: animation.opacity}} instead of just style={animation}.
Currently impossible unless there is another way I'm unaware of.
react-spring v8.0.27react v16.12.0Please use v9 beta if you're a TypeScript user. The v8 types are unmaintained.
Most helpful comment
Please use v9 beta if you're a TypeScript user. The v8 types are unmaintained.