-1

I want to link a library in react native version 0.70.1 but I got a error error: unknown command 'link' after trying this command react-native link react-native-notification-soundsenter image description here

Mac
  • 19
  • 3

2 Answers2

1

Linking is automatic since React Native 0.60. So no need to run react-native link.

After installing the library -

  1. on android, just rebuild the app
npm run android
  1. on ios, install the pod before rebuilding the app
npx pod-install ios
npm run ios
vinayr
  • 11,026
  • 3
  • 46
  • 42
0

"link" command in React native has been deprecated in version 69, instead you can go for :

npm i react-native-asset or yarn add react-native-asset
General Grievance
  • 4,555
  • 31
  • 31
  • 45
warhead69
  • 1
  • 1