From 757014e4ecb7987a8abba6f62b51461c4b56f9fe Mon Sep 17 00:00:00 2001 From: Murad R <37542484+mraucorp@users.noreply.github.com> Date: Mon, 9 Apr 2018 18:05:32 +0300 Subject: [PATCH] fix "Error: Redefinition of RCTMethodInfo" following https://github.com/facebook/react-native/issues/15775 and this PR - https://github.com/nico1510/react-native-image-crop-picker/pull/9/files it works for me this way i am not sure about the right order for TOCropView.h, just kept it between --- ReactNativeImageCropping.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ReactNativeImageCropping.h b/ReactNativeImageCropping.h index 19b67e0..fd647cc 100644 --- a/ReactNativeImageCropping.h +++ b/ReactNativeImageCropping.h @@ -1,6 +1,12 @@ +#if __has_include() +#import +#import "TOCropView.h" +#import +#else #import "RCTBridgeModule.h" #import "TOCropView.h" -#import +#import "RCTImageLoader.h" +#endif @interface ReactNativeImageCropping : NSObject