Skip to content

Commit

Permalink
Implement requiresMainQueueSetup in RCTTVNavigationEventEmitter
Browse files Browse the repository at this point in the history
Summary:
Fix the following warning:

> Module RCTTVNavigationEventEmitter requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.

Trivial change.

[IOS] [MINOR] [RCTTVNavigationEventEmitter] - Implement `requiresMainQueueSetup` in `RCTTVNavigationEventEmitter`
Closes #16915

Differential Revision: D6394636

Pulled By: shergin

fbshipit-source-id: 3981655832715e73e93ef917d987e25097029b84
  • Loading branch information
charpeni authored and facebook-github-bot committed Nov 22, 2017
1 parent 75123c6 commit ee3532b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions React/Modules/RCTTVNavigationEventEmitter.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ @implementation RCTTVNavigationEventEmitter

RCT_EXPORT_MODULE()

+ (BOOL)requiresMainQueueSetup
{
return NO;
}

- (instancetype)init
{
if (self = [super init]) {
Expand Down

0 comments on commit ee3532b

Please sign in to comment.