Skip to content

Commit

Permalink
Add requiresMainQueueSetup to prevent warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zachgibb authored Nov 29, 2018
1 parent 9a80c8e commit 6c783e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/RNOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ - (NSDictionary *)constantsToExport
};
}

+ (BOOL)requiresMainQueueSetup
{
return NO;
}

- (NSDictionary*)networkInterfaces {
NSMutableDictionary* ifaces = [NSMutableDictionary new];
struct ifaddrs *addrs, *ent;
Expand Down

0 comments on commit 6c783e9

Please sign in to comment.