Implement requiresMainQueueSetup in RCTTVNavigationEventEmitter

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 https://github.com/facebook/react-native/pull/16915

Differential Revision: D6394636

Pulled By: shergin

fbshipit-source-id: 3981655832715e73e93ef917d987e25097029b84
This commit is contained in:
Nicolas Charpentier 2017-11-22 00:26:14 -08:00 committed by Facebook Github Bot
parent 75123c614b
commit ee3532b5c2
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ static NSString *const TVNavigationEventName = @"onTVNavEvent";
RCT_EXPORT_MODULE()
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
- (instancetype)init
{
if (self = [super init]) {