Follow

Follow
Fixing React Native link issue

Fixing React Native link issue

error Unrecognized command "link". info Run "react-native --help" to see a list of all available commands.

Desi Programmer's photo
Desi Programmer
·Jul 19, 2022·

1 min read

Table of contents

  • React native Link issue

React native Link issue

If you are trying to add your assets using react-native link command, you may see that it throws an error, saying
error Unrecognized command "link". info Run "react-native --help" to see a list of all available commands.

Error

error Unrecognized command "link". info Run "react-native --help" to see a list of all available commands.

Pasted image 20220720010823.png

Reason

With the new react-native version 0.69, link and unlink commands have been removed. Here is a screenshot of the update.

Pasted image 20220720010657.png

Fix

As of now, since some libraries don't support the auto-linking, try using an older version of react-native.

If your issue isn't still solved, check this out Github issue.

 
Share this