How and what does the npm link do in this example?

I am installing react-native-elements and the installation guide has this command:

npm i react-native-vector-icons --save && react-native link react-native-vector-icons

I am curious what this part of the command does and why it is needed: react-native link react-native-vector-icons

+3


source to share


1 answer


As you probably know, React Native allows you to interact with native OS APIs through JavaScript. To set up this interface requires some native configuration (linking libraries, adding search paths and assets ...) and since the process is relatively repetitive and can be automated, the RN folks made a team link

to make it easy to customize modules with their own code. In case of React Native Vector Icons, it will add font files and other configuration to your Android and iOS project.



+1


source







All Articles