Browse files

Access AppState constants on main thread

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
  • Loading branch information...
mmmulani authored and facebook-github-bot committed Sep 14, 2017
1 parent ae1a4f0 commit e8c83d180f1691baf61a68323d95299354c7bde6
Showing with 1 addition and 3 deletions.
  1. +1 −3 React/Modules/RCTAppState.m
@@ -41,9 +41,7 @@ @implementation RCTAppState
+ (BOOL)requiresMainQueueSetup
// UIApplication.applicationState seems reasonably safe to access from
// a background thread.
return NO;
return YES;
- (dispatch_queue_t)methodQueue

0 comments on commit e8c83d1

Please sign in to comment.