From 152c8a25f32378f4c66ac5f9d3b05a4ebd28ea4d Mon Sep 17 00:00:00 2001 From: chenlong Date: Tue, 12 Feb 2019 14:50:26 +0800 Subject: [PATCH] fix bug: solve warning triggered by constantsToExport --- ios/RCTHotUpdate/RCTHotUpdate.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/RCTHotUpdate/RCTHotUpdate.m b/ios/RCTHotUpdate/RCTHotUpdate.m index 9f75e29..a5e843d 100644 --- a/ios/RCTHotUpdate/RCTHotUpdate.m +++ b/ios/RCTHotUpdate/RCTHotUpdate.m @@ -135,6 +135,10 @@ RCT_EXPORT_MODULE(RCTHotUpdate); return [RCTHotUpdate binaryBundleURL]; } ++ (BOOL)requiresMainQueueSetup { + return YES; +} + - (NSDictionary *)constantsToExport { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];