Skip to content

Commit

Permalink
fix "Error: Redefinition of RCTMethodInfo"
Browse files Browse the repository at this point in the history
following facebook/react-native#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
  • Loading branch information
mraucorp authored Apr 9, 2018
1 parent c6c1e0e commit 757014e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ReactNativeImageCropping.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#import "TOCropView.h"
#import <React/RCTImageLoader.h>
#else
#import "RCTBridgeModule.h"
#import "TOCropView.h"
#import <RCTImageLoader.h>
#import "RCTImageLoader.h"
#endif

@interface ReactNativeImageCropping : NSObject <RCTBridgeModule>

Expand Down

0 comments on commit 757014e

Please sign in to comment.