nandorojo / moti

šŸ¼ The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.91k stars 120 forks source link

Add `transition` prop examples #192

Closed sntg-p closed 1 year ago

sntg-p commented 2 years ago

First I want to thank you Fernando for developing this library.

Second, I was having the Tried to synchronously call anonymous function from a different thread error when using Moti on Android. I was debugging for hours and the problem was that I incorrectly let IntelliSense import Easing from react-native instead of importing the one from react-native-reanimated (that exports worklet functions).

I just thought some examples in the docs/api/props.md file should be enough to clarify this. Would you like to talk about what could be useful examples to include in a pull request?

nandorojo commented 2 years ago

Iā€™ve thought about something similar. I think it would be good to add a Customizing Animations page, borrowing from the transition page on framer-motionā€™s docs, since the API is inspired from there

nandorojo commented 1 year ago

I think this thread is good inspiration for examples: https://twitter.com/mattgperry/status/1547929223351844864?s=20&t=ChiVaucsyKp8MfRRW0VeJg

We can do the same thing framer does.