Skip to content
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

Closed
pjpsoft opened this issue May 14, 2017 · 5 comments
Closed

errors with react-native 0.44.0 #35

pjpsoft opened this issue May 14, 2017 · 5 comments
Labels
Bug Bugs in the library

Comments

@pjpsoft
Copy link

pjpsoft commented May 14, 2017

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

@kkroth
Copy link

kkroth commented May 24, 2017

I have exactly the same error on iOS, Android is working with with these "dependencies": {
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-location": "^0.27.0",
}

@rogerluo410
Copy link

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

@rexlow
Copy link

rexlow commented Jun 15, 2017

same here, cannot read property of any method :(

@kaberibasu
Copy link

any updates on this issue?

@matt-oakes
Copy link
Collaborator

This will be fixed in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs in the library
Projects
None yet
Development

No branches or pull requests

6 participants