0.3.6 • Published 7 years ago
react-native-check-phone-call-status v0.3.6
react-native-check-phone-call-status
Getting started
$ npm install react-native-check-phone-call-status --save
Mostly automatic installation
$ react-native link react-native-check-phone-call-status
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-check-phone-call-status
and addRNCheckPhoneCallStatus.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNCheckPhoneCallStatus.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
Will return 'PHONE_ON' when phone is in use, and 'PHONE_OFF' when not in use.
import RNCheckPhoneCallStatus from 'react-native-check-phone-call-status';
RNCheckPhoneCallStatus.get((error, status) => {
console.log('Phone status is:', status);
});
Would be great to have this for Android as well. Feel free to make a PR!
0.3.6
7 years ago
0.3.5
7 years ago
0.3.4
7 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago