nandorojo / moti

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

null is not an object (dispatcher.useContext) #197

Closed Saad9624 closed 2 years ago

Saad9624 commented 2 years ago

After Spending tons of hours I've managed to integerate well that is compatible with reanimated library now when ever I import motiView component inside the app the error pops in

evaluating dispatcher.useContext

Expected Behavior

No response

Steps To Reproduce

Just Import Motiview inside App

Versions

- Moti: 0.16.0
- Reanimated: 2.2.3
- React Native: 0.66.2

Screenshots

Screenshot 2022-05-13 at 5 42 15 PM

nandorojo commented 2 years ago

I recommend using newer versions (reanimated 2.8, moti 0.18, maybe RN 0.68)

nandorojo commented 2 years ago

duplicate of https://github.com/nandorojo/moti/issues/189

see the solution there

Saad9624 commented 2 years ago

I recommend using newer versions (reanimated 2.8, moti 0.18, maybe RN 0.68)

latest reanimated version causing many problems with other set of animations.

nandorojo commented 2 years ago

i think you need a yarn resolution for react’s version. see the issue i linked to

Saad9624 commented 2 years ago

Thanks for the prompt response. Really appreciate that.

Saad9624 commented 2 years ago

Although I'm already using this command while npm. but running this command again resolved the issue. Thanks npm i --legacy-peer-deps