react-native-linphone Linphone is a free VoIP and video softphone based on the SIP protocol.
Installation
npm install react-native-linphone --save
Installation (Android)
- Make sure to specify minSDKVersion in your build.gradle file >=16 and targetSdkVersion <=27.
android { compileSdkVersion 25 buildToolsVersion "25.0.1" defaultConfig { applicationId "com.liblin" minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } } }
- Don't forget
import org.linphone.reactLin.LinphonePackage
in MainApplication. This file exists under the android folder in your react-native application directory. The path to this file is:android/app/src/main/java/com/your-app-name/MainApplication.java
protected List<ReactPackage> { return Arrays.<ReactPackage>; // <-- Add this line. }