Unrecognized command “link” React Native – Code Example

Total
0
Shares

React Native throws error Unrecognized command “link” when you try to manually link a library. The new versions of React Native do not support manual linking because libraries are automatically linked now. So, they dropped the support of link command.

Code Example –

This command will throw unrecognized command link error –

npm link

Solution –

The libraries are automatically linked so there is nothing to do. But in case you need to link them then use react-native-asset library –

npx react-native-asset