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

Duplicate interface definition for class RCTBridge - React 0.40 #28

Closed
jamsesso opened this issue Jan 31, 2017 · 2 comments
Closed

Duplicate interface definition for class RCTBridge - React 0.40 #28

jamsesso opened this issue Jan 31, 2017 · 2 comments

Comments

@jamsesso
Copy link
Contributor

jamsesso commented Jan 31, 2017

Hi,
On a React Native 0.40 project, installing and linking this project results in the following error on iOS: "Duplicate interface definition for class RCTBridge" when attempting to build.

After some Googling, I found that as of React Native 0.40 the imports need to be declared as #import <React/RCTBridge.h> instead of #import "RCTBridge.h". I believe the fix is as easy as renaming the imports! Link: facebook/react-native#11725

Note that I haven't attempted to run this on Android yet, so I am not sure if there are similar issues on that platform.

@balthazar
Copy link
Owner

Thanks for this, I believe you're right, changing the headers should be all we need

@kartikeygupta-tudip
Copy link

Hey, @jamsesso thanks for this solution it worked for me as I am using react-native version above 0.40.

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

No branches or pull requests

3 participants