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 ide committed Nov 28, 2017
1 parent 2d88b63 commit 8e0d54d
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 8e0d54d

Please sign in to comment.