creativetimofficial / argon-react-native

Argon React Native

Home Page:https://www.creative-tim.com/product/argon-react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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

  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

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.

@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.