Skip to main content

Command Palette

Search for a command to run...

Fixing React Native link issue

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

Updated
1 min read
Fixing React Native link issue
D

As a YouTube content creator, I specialize in producing high-quality videos related to cutting-edge technologies and frameworks. My areas of expertise include Flutter, Express.js, Laravel, React JS, Angular, .Net , Native Android and iOS development, Django, Tkinter and Full Stack Development. Whether you're a beginner or an advanced user, my videos are designed to help you stay up-to-date with the latest trends and techniques in the field. Join me on my channel to discover new ways to expand your skills and take your projects to the next level.

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.

More from this blog

D

Desi Programmer

13 posts