From 6c783e9e9c8358aed41e7f932f930344e77e3b52 Mon Sep 17 00:00:00 2001 From: Zach Gibb Date: Thu, 29 Nov 2018 14:59:33 -0500 Subject: [PATCH] Add requiresMainQueueSetup to prevent warning RCCManagerModule will throw a warning if `constantsToExport` is overridden, but no `requiresMainQueueSetup` is found. Since RNOS does not need the main UI thread (which is what that method is for) we can safely return `NO` from that method. --- ios/RNOS.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/RNOS.m b/ios/RNOS.m index 098e02e..f24b100 100644 --- a/ios/RNOS.m +++ b/ios/RNOS.m @@ -78,6 +78,11 @@ - (NSDictionary *)constantsToExport }; } ++ (BOOL)requiresMainQueueSetup +{ + return NO; +} + - (NSDictionary*)networkInterfaces { NSMutableDictionary* ifaces = [NSMutableDictionary new]; struct ifaddrs *addrs, *ent;