SoF
SoF

Reputation: 787

error React Native CLI uses autolinking for native dependencies - RN iOS

I'm new to React native. I get the following error when I try to start the project in the ios simulator. How can I solve this?

enter image description here

Upvotes: 0

Views: 1886

Answers (1)

Ibrahim A. Elaradi
Ibrahim A. Elaradi

Reputation: 282

Newer versions of React Native have autolinking, therefore you don't need to run commands like npx react-native link some-package-name to link the dependencies

In order to get rid of this error you need to unlink the dependency mentioned in the log, use the following instructions

  1. Run npx react-native unlink @react-native-async-storage/async-storage
  2. Run npm uninstall @react-native-async-storage/async-storage
  3. Run npm install @react-native-async-storage/async-storage
  4. Change to the ios directory cd ios and run pod install

That should solve this issue

Upvotes: 1

Related Questions