Skip to content

Commit dbf6113

Browse files
rickhanloniifacebook-github-bot
authored andcommitted
Add requiresMainQueueSetup YES to top offenders
Summary: Adds requiresMainQueueSetup YES to top 16 components warning to help clean up the console. This should cut down ~50% of native warnings from React Native. This should not change any behavior, just make the existing behavior explicit. Changelog: [Internal] Reviewed By: mmmulani Differential Revision: D18774349 fbshipit-source-id: 5a74967280812ebfd859d7d976487d264b5820c7
1 parent 505a216 commit dbf6113

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

React/CoreModules/RCTStatusBarManager.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ static BOOL RCTViewControllerBasedStatusBarAppearance()
8383

8484
RCT_EXPORT_MODULE()
8585

86+
+ (BOOL)requiresMainQueueSetup
87+
{
88+
return YES;
89+
}
90+
8691
- (NSArray<NSString *> *)supportedEvents
8792
{
8893
return @[ @"statusBarFrameDidChange", @"statusBarFrameWillChange" ];

0 commit comments

Comments
 (0)