Linking native library with react native?
Linking a native library means that you are going to integrate an already implemented module into your application, or a module that completes your own functions of a native module, for example: if you prepare a video player board with all controls to play music you have to integrate interactive video (third party ) because there is no built-in lib library. in the reaction of my own. After integrating the video lib, you can play.
Lib integration steps (android):
1) Add package name to new packages () 2) Add dependencies on settings.gradle file and main gradle application ie app / gradle. 3) sync gradle projects because you made changes in gradle and done.
After cloning / loading the project:
1) Go to your project home directory using cmd. 2) run npm install
3) After that run rnpm link or react-native link
4) see ios folder in your project folder and if you find a pod file, run pod install
after going to ios folder in cmd.
Cheers :)
source to share