skip to Main Content

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

2

Answers


  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
    
    Login or Signup to reply.
  2. "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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search