react-native-forward-calls
Advanced tools
Comparing version 0.0.2 to 0.1.0
{ | ||
"name": "react-native-forward-calls", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Android's Native call forwarding in React Native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,2 +9,8 @@ # React Native Forward Calls | ||
``` | ||
## Add permissions | ||
* In `AndroidManifest.xml` add: | ||
```xml | ||
<uses-permission android:name="android.permission.CALL_PHONE" /> | ||
``` | ||
## Project setup and initialization auto | ||
@@ -65,14 +71,21 @@ ```bash | ||
#### Forward all calls unconditionally (\*\*21\*) | ||
#### Forward calls | ||
```javascript | ||
ForwardCalls.forwardCalls('123456789')//will forward all calls to the number 123456789 | ||
ForwardCalls.unconditionalForwarding('123456789')//Forward all calls unconditionally to the number 123456789 | ||
ForwardCalls.forwardCallsIfBusy('123456789')//Forward calls if busy to the number 123456789 | ||
ForwardCalls.forwardCallsIfNotAnswered('123456789')//Forward calls if not answered to the number 123456789 | ||
ForwardCalls.forwardCallsIfOutOfReach('123456789')//Forward calls if out of reach to the number 123456789 | ||
ForwardCalls.allConditionalForwarding('123456789')//All conditional forwarding activated to the number 123456789 | ||
``` | ||
#### Cancel unconditional call forwarding | ||
#### Cancel call forwarding | ||
```javascript | ||
ForwardCalls.cancel() | ||
ForwardCalls.cancelUnconditional() | ||
ForwardCalls.cancelIfBusy() | ||
ForwardCalls.cancelIfNotAnswered() | ||
ForwardCalls.cancelIfOutOfReach() | ||
ForwardCalls.cancelAllConditional() | ||
``` | ||
Sorry, the diff of this file is not supported yet
9958
137
90