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:
parent
2d43c3ad8b
commit
fb59f5f961
|
@ -5,6 +5,10 @@
|
|||
|
||||
RCT_EXPORT_MODULE();
|
||||
|
||||
+ (BOOL)requiresMainQueueSetup
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
- (NSMutableArray *)toLanguageTags:(NSArray *)languages {
|
||||
NSMutableArray *languageTags = [NSMutableArray array];
|
||||
|
||||
|
|
Loading…
Reference in New Issue