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