nandorojo / moti

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

expo less gradient prototype #266

Closed XantreDev closed 1 year ago

XantreDev commented 1 year ago

I cannot launch the project

image

But I think this should work

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated
moti ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 16, 2023 at 9:15PM (UTC)
XantreDev commented 1 year ago

@nandorojo

XantreDev commented 1 year ago

I think we can add explicit LinearGradient injection via react context

nandorojo commented 1 year ago

hey, i appreciate the PR but 1) i can't review it without it being tested, 2) i don't think metro supports try/catch requires, and 3) there's no need to tag me.

XantreDev commented 1 year ago

Ok will not to tag you, sorry. I think will be better dependency injection via react context

XantreDev commented 1 year ago

What do you think about it?

<LinearGradientProvider value={LinearGradient}>
    <Skeleton />
</LinearGradientProvider>
XantreDev commented 1 year ago

And we can make some additional entry exports with binded react-native-linear-gradient and expo-linear-gradient