2015-03-12 12:51:44 -07:00
|
|
|
/**
|
|
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* @providesModule AppState
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2015-03-17 13:42:44 -07:00
|
|
|
var NativeModules = require('NativeModules');
|
|
|
|
var RCTAppState = NativeModules.RCTAppState;
|
2015-03-12 12:51:44 -07:00
|
|
|
|
|
|
|
var AppState = {
|
|
|
|
|
|
|
|
setApplicationIconBadgeNumber: function(number) {
|
2015-03-17 13:42:44 -07:00
|
|
|
RCTAppState.setApplicationIconBadgeNumber(number);
|
2015-03-12 12:51:44 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
getApplicationIconBadgeNumber: function(callback) {
|
2015-03-17 13:42:44 -07:00
|
|
|
RCTAppState.getApplicationIconBadgeNumber(callback);
|
2015-03-12 12:51:44 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = AppState;
|