Based on React Native and ReactNativePJSIP
$ git clone https://github.com/tariq86/rn-sip-app
$ cd rn-sip-app
$ npm install
If you want to fix the yellow warnings that pop up when first opening the app, you'll need to perform the following module edits in XCode:
- In the Project Navigator, open
Libraries
>RNCallKit.xcodeproj
>RNCallKit
>RNCallKit.m
- Add the following code right after the close of the
(instancetype)init
function closing bracket (around line 52):
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
Note: This change requires a full recompile of the app, so you will need to re-run the npm run ios
command if the app is already running
To run on Android, you can run either npm run android
(recommended) or react-native run-android
from the project root directory.
To run on iOS, you can call either npm run ios
(recommended) or react-native run-ios
from the project root directory.