-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors with react-native 0.44.0 #35
Comments
I have exactly the same error on iOS, Android is working with with these "dependencies": { |
replace #import <React/RCTBridge.h> instead of #import "RCTBridge.h" in project. I can build successful, but throw out 'undefined is not an Object (evaluating DeviceEventEmitter.addListener)'... My React-native version is 0.42.3 |
same here, cannot read property of any method :( |
any updates on this issue? |
This will be fixed in the latest version |
setup a clean project
{
"name": "NatLoc",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-location": "^0.27.0"
},
"devDependencies": {
"babel-jest": "20.0.1",
"babel-preset-react-native": "1.9.2",
"jest": "20.0.1",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}
installed react-native-location
linked
and compile in xcode
gives errors (just showing a few)
../react-native/React/Base/RCTBridge.h:66:12: note: previous definition is here
@interface RCTBridge : NSObject
^
^
@Property (nonatomic, copy, readonly) NSArray *moduleClasses;
^
: error: property has a previous declaration
@Property (nonatomic, strong, readonly) NSURL *bundleURL;
^
error: property has a previous declaration
@Property (nonatomic, strong) Class executorClass;
^
In file included from /Users/pierrejean/Dropbox/dev-app/NatLoc/node_modules/react-native-location/RNLocation.m:3:
../react-native/React/Base/RCTBridge.h:166:37: note: property declared here
@Property (nonatomic, strong) Class executorClass;
^
error: property has a previous declaration
@Property (nonatomic, weak, readonly) id delegate;
^
error: property has a previous declaration
@Property (nonatomic, copy, readonly) NSDictionary *launchOptions;
^
error: property has a previous declaration
@Property (nonatomic, readonly, getter=isLoading) BOOL loading;
^
error: property has a previous declaration
@Property (nonatomic, readonly, getter=isValid) BOOL valid;
^
error: property has a previous declaration
@Property (nonatomic, readonly, weak) JSContext *jsContext;
^
error: property has a previous declaration
@Property (nonatomic, readonly, strong) RCTPerformanceLogger *performanceLogger;
^
^
4 warnings and 10 errors generated.
Build failed 2017-05-14, 12:50 PM
The text was updated successfully, but these errors were encountered: