nandorojo / moti

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

docs: added action menu example #209

Closed andrew-levy closed 1 year ago

andrew-levy commented 2 years ago

Hey I added my example to the docs using an embedded snack. Let me know if this is what you were thinking of. I wasn't able to get <MotiPressable /> working in the snack unfortunately, but the example is fine without it.

Also, I think there was a typo in docusaurus.config.js, fixed it in here.

Snack: https://snack.expo.dev/@alevy97/action-menu

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
moti ❌ Failed (Inspect) Jun 27, 2022 at 9:31PM (UTC)
nandorojo commented 1 year ago

Thanks! I wonder why MotiPressable didn't work...was it Android and before Moti version 0.18? Or SDK 44? Or was RNGH not installed by chance?

nandorojo commented 1 year ago

Oh, it's probably because you'd need to pass any absolute positioning to containerStyle, or pass it to a wrapper component. No worries, we can merge as-is. Thanks!

andrew-levy commented 1 year ago

Oh, it's probably because you'd need to pass any absolute positioning to containerStyle, or pass it to a wrapper component.

Ahh, that's definitely why.

Awesome, thanks for including this!