---
title: "How do you fix \"Unrecognized command 'link'\" in React Native?"
description: "react-native link was removed because native modules now autolink. Install the package, run pod install and rebuild; assets use react-native-asset."
url: "https://bugsee.com/answers/react-native/fix-unrecognized-command-link/"
---

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

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

```bash
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.

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

## Related questions

- [How do you fix "Unable to resolve module" in React Native?](https://bugsee.com/answers/react-native/fix-unable-to-resolve-module/)
