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

rn 0.40 bugs #51

Closed
tigerohuang opened this issue Jan 21, 2017 · 4 comments
Closed

rn 0.40 bugs #51

tigerohuang opened this issue Jan 21, 2017 · 4 comments

Comments

@tigerohuang
Copy link

I met problem: Duplicate interface definition for class 'RCTBridge', and I solved it according to the article:facebook/react-native#11725, it was the problem of the changes in 0.40.

@FreAirLy
Copy link

怎么解决的呀?

@tigerohuang
Copy link
Author

BaseModule.h修改前面的:
#import <React/RCTBridgeModule.h>
#import <React/RCTEventDispatcher.h>
#import <React/RCTBridge.h>

RCTBaiduMapView.h修改前面的:
#import <React/RCTViewManager.h>
#import <React/RCTConvert+CoreLocation.h>
#import <BaiduMapAPI_Map/BMKMapView.h>
#import <BaiduMapAPI_Map/BMKPinAnnotationView.h>
#import <BaiduMapAPI_Map/BMKPointAnnotation.h>
#import <UIKit/UIKit.h>

@liangjianyu
Copy link

楼上正解,我也解决了,本来想说一下的,结果楼上已经说出答案了。rn0.40.+改了目录结构,一些包迁移到react目录下。而且对双引号所以“。h”不支持了,要用<xx/xx.h>代替。其他第三方包遇到相同的情况时同理的

@lovebing
Copy link
Owner

lovebing commented Mar 9, 2017

fixed #57

@lovebing lovebing closed this as completed Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants