How do you fix "Unrecognized command 'link'" in React Native?

← React Native answers

The link command no longer exists. Native modules are autolinked: install the package, run pod install for iOS, and rebuild the app.

npm install some-native-package
cd ios && pod install && cd ..
npx react-native run-ios      # or run-android

For custom fonts and other assets, the old way of linking them is replaced by a react-native.config.js file that lists the asset folders, followed by npx react-native-asset to copy them into the native projects.

// react-native.config.js
module.exports = {
  assets: ["./assets/fonts"],
};

Related questions

Start debugging smarter today

Try Bugsee for free — no commitments, no hidden fees.

Free sign upLive demoNo credit card required