Skip to content

Commit

Permalink
Merge pull request #242 from doochik/patch-1
Browse files Browse the repository at this point in the history
Fix RN 0.48+ warning about requiresMainQueueSetup
  • Loading branch information
GantMan committed Oct 15, 2017
2 parents 218d3e9 + f52f97f commit 40e3622
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions RNDeviceInfo/RNDeviceInfo.m
Expand Up @@ -15,19 +15,17 @@ @interface RNDeviceInfo()
@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;
Expand Down

0 comments on commit 40e3622

Please sign in to comment.