Commit f52f97fe authored by Aleksei Androsov's avatar Aleksei Androsov Committed by GitHub

Fix RN 0.48+ warning about requiresMainQueueSetup

Warning: Module RNDeviceInfo 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.
parent df8db334
......@@ -15,19 +15,17 @@
@end
@implementation RNDeviceInfo
{
}
@synthesize isEmulator;
RCT_EXPORT_MODULE()
- (dispatch_queue_t)methodQueue
+ (BOOL)requiresMainQueueSetup
{
return dispatch_get_main_queue();
return YES;
}
- (NSString*) deviceId
{
struct utsname systemInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment