Skip to content

Commit

Permalink
rn: add requiresMainQueueSetup and update to 0.52
Browse files Browse the repository at this point in the history
Adds requiresMainQueueSetup method, as required since react-native
version 0.49, returning NO because constantsToExport isn't used.
Updates the react-native peerDependency to version 0.52 .

PR-URL: #5
Fixes: JaneaSystems/nodejs-mobile#28
Fixes: JaneaSystems/nodejs-mobile#29
Reviewed-By: Jaime Bernardo <[email protected]>
  • Loading branch information
rayronvictor authored and jaimecbernardo committed Jan 8, 2018
1 parent bbf5c46 commit c32ace3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ios/RNNodeJsMobile.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ - (dispatch_queue_t)methodQueue
return dispatch_get_main_queue();
}

+ (BOOL)requiresMainQueueSetup
{
return NO;
}

- (id)init
{
self = [super init];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/janeasystems/nodejs-mobile/issues"
},
"peerDependencies": {
"react-native": "^0.48.0"
"react-native": "^0.52.0"
},
"dependencies": {
"ncp": "^2.0.0",
Expand Down

0 comments on commit c32ace3

Please sign in to comment.