From fb59f5f961a8244952cd535494877a2ca3c7dad8 Mon Sep 17 00:00:00 2001 From: Quentin Valmori Date: Mon, 9 Oct 2017 14:25:40 +0200 Subject: [PATCH] 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. --- ios/RNI18n.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/RNI18n.m b/ios/RNI18n.m index a4bc9e8..1a3c04c 100644 --- a/ios/RNI18n.m +++ b/ios/RNI18n.m @@ -5,6 +5,10 @@ RCT_EXPORT_MODULE(); ++ (BOOL)requiresMainQueueSetup +{ + return YES; +} - (NSMutableArray *)toLanguageTags:(NSArray *)languages { NSMutableArray *languageTags = [NSMutableArray array];