Resources

TypeScript

Legend-Motion tries to be as strongly typed as possible, with the animate prop autocompleting the available styles of the component, animateProps autocompleting the component's props, and the transition prop autocompleting only the properties that are animated.

If types are not working please ensure that you've installed @types/react (@types/react-dom is only needed for web apps). React Native 0.71 and newer include their own types, so you don't need @types/react-native.

npm install @types/react