1.0.11 • Published 4 years ago
react-native-outgoing-calls-interceptor v1.0.11
react-native-outgoing-calls-interceptor
Getting started
$ npm install react-native-outgoing-calls-interceptor --save
Mostly automatic installation
$ react-native link react-native-outgoing-calls-interceptor
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNOutgoingCallsInterceptorPackage;
to the imports at the top of the file - Add
new RNOutgoingCallsInterceptorPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-outgoing-calls-interceptor' project(':react-native-outgoing-calls-interceptor').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-outgoing-calls-interceptor/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-outgoing-calls-interceptor')
Usage
import RNOutgoingCallsInterceptor from 'react-native-outgoing-calls-interceptor';
// TODO: What to do with the module?
RNOutgoingCallsInterceptor;