2015-03-11 13:53:30 -07:00
|
|
|
/**
|
|
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* @providesModule AppState
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2015-03-17 03:08:52 -07:00
|
|
|
var NativeModules = require('NativeModules');
|
2015-03-17 22:22:03 -07:00
|
|
|
var RCTAppState = NativeModules.AppState;
|
2015-03-11 13:53:30 -07:00
|
|
|
|
|
|
|
var AppState = {
|
|
|
|
|
|
|
|
setApplicationIconBadgeNumber: function(number) {
|
2015-03-17 03:08:46 -07:00
|
|
|
RCTAppState.setApplicationIconBadgeNumber(number);
|
2015-03-11 13:53:30 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
getApplicationIconBadgeNumber: function(callback) {
|
2015-03-17 03:08:46 -07:00
|
|
|
RCTAppState.getApplicationIconBadgeNumber(callback);
|
2015-03-11 20:48:43 -07:00
|
|
|
},
|
2015-03-11 13:53:30 -07:00
|
|
|
|
2015-03-11 20:48:43 -07:00
|
|
|
};
|
2015-03-11 13:53:30 -07:00
|
|
|
|
|
|
|
module.exports = AppState;
|