parent
8224cbb09e
commit
1f64573b4e
|
@ -6,7 +6,7 @@
|
||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.14.2",
|
"react-native": "^0.15.0",
|
||||||
"realm": "file:../../lib"
|
"realm": "file:../../lib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
#import "RCTBridge.h"
|
#import "RCTBridge.h"
|
||||||
#import "RCTDevMenu.h"
|
#import "RCTDevMenu.h"
|
||||||
|
|
||||||
@import ObjectiveC;
|
|
||||||
@import RealmReact;
|
@import RealmReact;
|
||||||
|
|
||||||
extern void JSGlobalContextSetIncludesNativeCallStackWhenReportingExceptions(JSGlobalContextRef ctx, bool includesNativeCallStack);
|
extern void JSGlobalContextSetIncludesNativeCallStackWhenReportingExceptions(JSGlobalContextRef ctx, bool includesNativeCallStack);
|
||||||
|
extern NSMutableArray *RCTGetModuleClasses(void);
|
||||||
|
|
||||||
@interface RealmReactTests : RealmJSTests
|
@interface RealmReactTests : RealmJSTests
|
||||||
@end
|
@end
|
||||||
|
@ -21,9 +21,8 @@ extern void JSGlobalContextSetIncludesNativeCallStackWhenReportingExceptions(JSG
|
||||||
@implementation RealmReactTests
|
@implementation RealmReactTests
|
||||||
|
|
||||||
+ (void)load {
|
+ (void)load {
|
||||||
// We don't want the RCTDevMenu from switching the executor class from underneath us.
|
NSMutableArray *moduleClasses = RCTGetModuleClasses();
|
||||||
IMP init = class_getMethodImplementation([NSObject class], @selector(init));
|
[moduleClasses removeObject:[RCTDevMenu class]];
|
||||||
class_replaceMethod([RCTDevMenu class], @selector(init), init, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (Class)executorClass {
|
+ (Class)executorClass {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.14.2",
|
"react-native": "^0.15.0",
|
||||||
"realm": "file:../../lib",
|
"realm": "file:../../lib",
|
||||||
"realm-tests": "file:../lib"
|
"realm-tests": "file:../lib"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue