Fix RN 0.48+ warning about requiresMainQueueSetup

Warning: Module RNI18n requires main queue setup since it overrides constantsToExport 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.
This commit is contained in:
Quentin Valmori 2017-10-09 14:25:40 +02:00 committed by GitHub
parent 2d43c3ad8b
commit fb59f5f961
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@
RCT_EXPORT_MODULE();
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
- (NSMutableArray *)toLanguageTags:(NSArray *)languages {
NSMutableArray *languageTags = [NSMutableArray array];