[RN|madman] init AppStateIOS.currentState with 'active'

This commit is contained in:
Jiajie Zhu 2015-06-11 13:21:57 -07:00 коммит произвёл Spencer Ahrens
Родитель 628609a069
Коммит 7c0df4605a
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -122,7 +122,11 @@ var AppStateIOS = {
_eventHandlers[type].delete(handler);
},
currentState: (null : ?String),
// TODO: getCurrentAppState callback seems to be called at a really late stage
// after app launch. Trying to get currentState when mounting App component
// will likely to have the initial value here.
// Initialize to 'active' instead of null.
currentState: ('active' : ?string),
};