nandorojo / moti

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

Cannot read properties of null (reading 'useContext') #240

Closed ayoubaarchi closed 1 year ago

ayoubaarchi commented 1 year ago

Is there an existing issue for this?

Current Behavior

Screen Shot 2022-11-14 at 12 52 12

Expected Behavior

Cannot read properties of null (reading 'useContext')

Steps To Reproduce

No response

Versions

"moti": "^0.20.0",
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-reanimated": "^2.12.0",

Screenshots

Screen Shot 2022-11-14 at 12 50 52

Reproduction

even with docs example i fail to run it

nandorojo commented 1 year ago

Duplicate of #201 #189 #197

Please use npm i moti --legacy-peer-deps

ayoubaarchi commented 1 year ago

Now i got this error message Cannot read properties of undefined (reading 'MotiView')

nandorojo commented 1 year ago

hmm. can you try a fresh expo app and install moti with yarn? it should work…

alexkey89 commented 1 year ago

I had the same exact issue with react-native 0.70.6. npm i moti --legacy-peer-deps did the trick.

dumitru-buda commented 1 year ago

@alexkey89 I tried this also but after doing an npm install i get the same issue