creativetimofficial / argon-react-native

Argon React Native
https://www.creative-tim.com/product/argon-react-native
MIT License
629 stars 944 forks source link

[Bug] Error: Invalid hook call #33

Open shelcia opened 3 years ago

shelcia commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

omarhimada commented 2 years ago

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.