Access AppState constants on main thread

Summary:
iOS 11 now requires this to be accessed on the main thread.
I think this is causing tests to fail, as the Main Thread Checker is turned on there.

Reviewed By: javache

Differential Revision: D5826570

fbshipit-source-id: 6acb7174c756a2ad657602f14c666f71b1ee8fe9
This commit is contained in:
Mehdi Mulani 2017-09-13 18:00:33 -07:00 committed by Facebook Github Bot
parent ae1a4f08f6
commit e8c83d180f
1 changed files with 1 additions and 3 deletions

View File

@ -41,9 +41,7 @@ RCT_EXPORT_MODULE()
+ (BOOL)requiresMainQueueSetup + (BOOL)requiresMainQueueSetup
{ {
// UIApplication.applicationState seems reasonably safe to access from return YES;
// a background thread.
return NO;
} }
- (dispatch_queue_t)methodQueue - (dispatch_queue_t)methodQueue