`react-native link` without package name is Deprecated

The post react-native link without package name is Deprecated is regarding the deprecation of react-native link without the package name. If you are using a library with some native functionality then you need to make some changes in the Android and IOS files and that is called linking.

There are two ways to do that:

  1. Do it manually.
  2. Using react-native link which is a CLI command to do the changes automatically.

Previously if we talk about the linking of the library then there was not a compulsion to define the library name but in the upcoming release, you need to define the library name compulsory.

If you run the react-native link on the terminal to link the library you can see the warning regarding that.

react-native link without the package name
To remove this warning make sure to add library name while linking.

react-native link with the package name

So the conclusion is:

Before:
react -native link or react -native link react-native-maps

In the upcoming update :
react -native link react-native-maps (Compulsion to define the library name)

So that was react-native link without the package name. If you have any other queries related to this do comment or contact us. hope you liked it 🙂

You can also see

  1. React Native Autolinking after React Native 0.60
  2. Separate Libraries under Lean core Project in React Native Version 0.59
  3. Warning: ListView is deprecated and will be removed in a future release

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.