mirror of
https://github.com/status-im/react-native.git
synced 2025-01-29 10:45:04 +00:00
29 lines
684 B
JavaScript
29 lines
684 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule AppState
|
|
*/
|
|
'use strict';
|
|
|
|
var NativeModules = require('NativeModulesDeprecated');
|
|
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
|
var RKAppState = NativeModules.RKAppState;
|
|
var RKReachability = NativeModules.RKReachability;
|
|
var Subscribable = require('Subscribable');
|
|
|
|
var keyMirror = require('keyMirror');
|
|
|
|
var AppState = {
|
|
|
|
setApplicationIconBadgeNumber: function(number) {
|
|
RKAppState.setApplicationIconBadgeNumber(number);
|
|
},
|
|
|
|
getApplicationIconBadgeNumber: function(callback) {
|
|
RKAppState.getApplicationIconBadgeNumber(callback);
|
|
},
|
|
|
|
};
|
|
|
|
module.exports = AppState;
|