mirror of
https://github.com/status-im/react-native-i18n.git
synced 2025-02-28 11:50:29 +00:00
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();
|
RCT_EXPORT_MODULE();
|
||||||
|
|
||||||
|
+ (BOOL)requiresMainQueueSetup
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
- (NSMutableArray *)toLanguageTags:(NSArray *)languages {
|
- (NSMutableArray *)toLanguageTags:(NSArray *)languages {
|
||||||
NSMutableArray *languageTags = [NSMutableArray array];
|
NSMutableArray *languageTags = [NSMutableArray array];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user