react-native-call-state

phone call state detection module for react-native,include ios and android.

Showing:

Popularity

Downloads/wk

7

GitHub Stars

5

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Installation

npm install @remobile/react-native-call-state --save

Installation (Android)

  • settings.gradle include ':react-native-call-state' project(':react-native-call-state').projectDir = new File(settingsDir, '../node_modules/@remobile/react-native-call-state/android')

  • build.gradle compile project(':react-native-call-state')

  • MainApplicationnew CallStatePackage()

Installation (iOS)

  • Project navigator->Libraries->Add Files to 选择 @remobile/react-native-call-state/ios/RCTCallState.xcodeproj
  • Project navigator->Build Phases->Link Binary With Libraries 加入 libRCTCallState.a

Usage 使用方法

const CallState =  require('react-native-call-state');
componentWillMount() {
    CallState.startListener();
    this.subscription = DeviceEventEmitter.addListener('callStateUpdated', data => { console.warn(JSON.stringify(data)); });
}
componentWillUnmount() {
    CallState.stopListener();
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100