[Bug] Error: Invalid hook call
shelcia opened this issue · comments
Version
react-native@0.63.2 react-dom@17.0.2
Reproduction link
https://github.com/shelcia/shopping-app
Operating System
MacOs
Device
IOS
Browser & Version
google chrome
Steps to reproduce
- clone the repo
- npm install
- expo start
What is expected?
App to navigate from loading screen
What is actually happening?
It doesn't navigate from loading screen
Solution
Additional comments
the same issue here
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
@metamorph-online @shelcia can you help me with a screenshot? I'm not getting any errors.
I have this issue as well. Download v1.6.0 of the template (latest version), unzip, npm install, then npm install missing modules (???), then expo start, and attempt to run it using Android simulator. You can recreate it that way.