Cannot read properties of null (reading 'useContext')
ayoubaarchi opened this issue · 5 comments
ayoubaarchi commented
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
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
Reproduction
even with docs example i fail to run it
ayoubaarchi commented
Now i got this error message
Cannot read properties of undefined (reading 'MotiView')
nandorojo commented
hmm. can you try a fresh expo app and install moti with yarn? it should work…
alexkey89 commented
I had the same exact issue with react-native 0.70.6. npm i moti --legacy-peer-deps did the trick.
dumitru-buda commented
@alexkey89 I tried this also but after doing an npm install
i get the same issue