nandorojo/moti

Cannot read properties of null (reading 'useContext')

ayoubaarchi opened this issue · 5 comments

Is there an existing issue for this?

  • I have searched the existing issues

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

Duplicate of #201 #189 #197

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

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

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

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

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