Skip to content

Commit

Permalink
Update to support React Native 0.15.0
Browse files Browse the repository at this point in the history
Resolves #173
  • Loading branch information
appden committed Dec 1, 2015
1 parent 8224cbb commit 1f64573
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/ReactExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "react-native start"
},
"dependencies": {
"react-native": "^0.14.2",
"react-native": "^0.15.0",
"realm": "file:../../lib"
}
}
7 changes: 3 additions & 4 deletions tests/react-test-app/ios/ReactTests/RealmReactTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,9 +21,8 @@ @interface RealmReactChromeTests : RealmReactTests
@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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/react-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 1f64573

Please sign in to comment.