Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error: Invalid hook call #33

Open
shelcia opened this issue May 11, 2021 · 3 comments
Open

[Bug] Error: Invalid hook call #33

shelcia opened this issue May 11, 2021 · 3 comments

Comments

@shelcia
Copy link

shelcia commented May 11, 2021

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

  1. clone the repo
  2. npm install
  3. 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

@metamorph-online
Copy link

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:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. 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.

@hetmann
Copy link
Contributor

hetmann commented Jul 15, 2021

@metamorph-online @shelcia can you help me with a screenshot? I'm not getting any errors.

@omarhimada
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants