If you need to add a new dependency to the project, it is important to add them in the right way. Instructions for adding different types of dependencies are described below.
$ npm i --save-exact <package-name>
If the dependency is only for development
$ npm i --save-exact --save-dev <package-name>
If the library contains iOS native code, make sure to run:
$ npm run pod-install
Most of the time linking the library to React Native is done automatically, but at times some libraries need to be manually linked. In this case follow the library’s documentation.
Your feedback helps us improve the Mattermost developer documentation.
Have a feature request? Share it here.
Having issues? Join our Community server.