Skip to content

torihuang/react-native-check-phone-call-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Check if user is currently on the phone - iOS only for now

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy