Commit 40e36226 authored by Gant Laborde's avatar Gant Laborde Committed by GitHub

Merge pull request #242 from doochik/patch-1

Fix RN 0.48+ warning about requiresMainQueueSetup
parents 218d3e97 f52f97fe
...@@ -15,19 +15,17 @@ ...@@ -15,19 +15,17 @@
@end @end
@implementation RNDeviceInfo @implementation RNDeviceInfo
{
}
@synthesize isEmulator; @synthesize isEmulator;
RCT_EXPORT_MODULE() RCT_EXPORT_MODULE()
- (dispatch_queue_t)methodQueue + (BOOL)requiresMainQueueSetup
{ {
return dispatch_get_main_queue(); return YES;
} }
- (NSString*) deviceId - (NSString*) deviceId
{ {
struct utsname systemInfo; 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