0.3.6 • Published 7 years ago

react-native-check-phone-call-status v0.3.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-check-phone-call-status and add RNCheckPhoneCallStatus.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNCheckPhoneCallStatus.a to your project's Build PhasesLink Binary With Libraries
  4. 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