Manspof
Manspof

Reputation: 357

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. I get the error

Redefinition of 'RCTMethodInfo'

  typedef struct RCTMethodInfo {
  const char *const jsName;
  const char *const objcName;
  const BOOL isSync;
} RCTMethodInfo;

screenshot camera

Upvotes: 0

Views: 440

Answers (1)

Ashish Sahu
Ashish Sahu

Reputation: 388

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

import "RCTBridgeModule.h" with #import <React/RCTBridgeModule.h>

Upvotes: 1

Related Questions