A higher-order component that turns any React Native class component into an animated
You can now animate like you normally would:
Under the hood,
Animated.createAnimatedComponent for you, so don't pass an
Instead, just pass a normal
View (or its equivalent).
motify() returns a function. At the moment, the function it returns doesn't take any arguments. But I like this composition pattern, so I built the API this way to account for using the returned function in the future.
motify is the function that Moti uses under the hood to create its primitives.
This is the component file in
That should be all you need for any custom usage.
- Fernando Rojo