commit
53f223a403
|
@ -7,7 +7,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"react": "~15.2.0",
|
||||
"react-native": "^0.29.0",
|
||||
"react-native": "^0.31.0",
|
||||
"realm": "file:../.."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,11 +19,13 @@
|
|||
#import "RealmReact.h"
|
||||
#import "RealmAnalytics.h"
|
||||
#import "RCTBridge.h"
|
||||
#import "RCTJavaScriptExecutor.h"
|
||||
|
||||
#import "jsc_init.h"
|
||||
#import "shared_realm.hpp"
|
||||
#import "realm_coordinator.hpp"
|
||||
|
||||
#import <objc/runtime.h>
|
||||
#import <arpa/inet.h>
|
||||
#import <ifaddrs.h>
|
||||
#import <netdb.h>
|
||||
|
@ -44,7 +46,7 @@ using namespace realm::rpc;
|
|||
@interface NSObject ()
|
||||
- (instancetype)initWithJSContext:(JSContext *)context;
|
||||
- (instancetype)initWithJSContext:(JSContext *)context onThread:(NSThread *)thread;
|
||||
- (JSGlobalContextRef)ctx;
|
||||
- (JSContext *)context;
|
||||
@end
|
||||
|
||||
extern "C" JSGlobalContextRef RealmReactGetJSGlobalContextForExecutor(id executor, bool create) {
|
||||
|
@ -69,7 +71,7 @@ extern "C" JSGlobalContextRef RealmReactGetJSGlobalContextForExecutor(id executo
|
|||
object_setIvar(executor, contextIvar, rctJSContext);
|
||||
}
|
||||
|
||||
return [rctJSContext ctx];
|
||||
return [rctJSContext context].JSGlobalContextRef;
|
||||
}
|
||||
|
||||
@interface RealmReact () <RCTBridgeModule>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"react": "~15.2.0",
|
||||
"react-native": "^0.29.0",
|
||||
"react-native": "^0.31.0",
|
||||
"react-native-fs": "^1.1.0",
|
||||
"xmlbuilder": "^4.2.1",
|
||||
"realm": "file:../..",
|
||||
|
|
Loading…
Reference in New Issue