Tell us which versions you are using:
Compilation should work.
Compiling project fails with the following error:
/Users/Jordan/Repositories/ios-app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:17:9: 'React/RCTBridgeModule.h' file not found
Just as if Xcode was not able to access React header files.
I followed the install instructions in the README, using cocoa pods.
The compilation worked just fine before I updated to RN 42. I updated RNICP as well so it has the new import style that started from RN 40+.
Somehow this is still not working, despite all efforts.
Same
@habovh and @alaingoldman:
I was able to fix this by updating "imageCropPicker.xcodeproj" > "Build Settings" > "Header Search Paths" from this:
$(SRCROOT)/../example/node_modules/react-native/React
$(SRCROOT)/../example/node_modules/react-native/Libraries/Image
To this:
$(SRCROOT)/../../react-native/React
$(SRCROOT)/../../react-native/Libraries/Image
Which I believe uses the React Version that is installed in your local project, instead of the one that is in the example project of the repo itself.
Hope this helps --
Most helpful comment
@habovh and @alaingoldman:
I was able to fix this by updating "imageCropPicker.xcodeproj" > "Build Settings" > "Header Search Paths" from this:
To this:
Which I believe uses the React Version that is installed in your local project, instead of the one that is in the example project of the repo itself.
Hope this helps --