skip to Main Content

I just wanted to try react-native.However, after run the script "npm run ios",I got this error in the Xcode’s simulator.

enter image description here
react-native version: v0.66.0,
platform: Mac OS Big Sur 11.6.2,
How can I fix this?

2

Answers


  1. install ‘@react-native/normalize-color’ using command line npm i @react-native/normalize-color

    Login or Signup to reply.
  2. Try installing ‘@react-native/[email protected]’ if you are using ‘react-native-maps’. This worked for me. It’s probably because we may be using an older version of ‘react-native’ which included an older version of ‘normalize-color’.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search