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?
CodePudding user response:
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
- Run
npx react-native unlink @react-native-async-storage/async-storage
- Run
npm uninstall @react-native-async-storage/async-storage
- Run
npm install @react-native-async-storage/async-storage
- Change to the ios directory
cd ios
and runpod install
That should solve this issue