[英]react-native-camera for iOS doesn't work with latest react-native v0.49
i'm trying to build my project on XCode with IPhone 6 IOS v11.0 in react native latest version v0.49 after installing react-native-camera and it failed. 我在安装react-native-camera后尝试在iPhone本机最新版本v0.49中使用iPhone 6 IOS v11.0在XCode上构建我的项目,但失败了。 I get the error
我得到错误
Redefinition of 'RCTMethodInfo'
重新定义“ RCTMethodInfo”
typedef struct RCTMethodInfo {
const char *const jsName;
const char *const objcName;
const BOOL isSync;
} RCTMethodInfo;
I also faced the same issue, I hope it would help you out 我也遇到了同样的问题,希望对您有帮助
Just open project in Xcode and search globally for "RCTBridgeModule.h" and you will get 4 to 5 files , so just open your third party camera file and replace 只需在Xcode中打开项目并在全局范围内搜索“ RCTBridgeModule.h”,您将获得4到5个文件,因此只需打开第三方相机文件并替换
import "RCTBridgeModule.h" with #import <React/RCTBridgeModule.h>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.