React Native rnpm unlink library
Solution 1
Very easy
react-native unlink lib-name-example
npm uninstall --save lib-name-example
Solution 2
Try the following:
rnpm unlink react-native-image-crop-picker
from root project directoryManually install react-native-image-crop-picker for iOS using these instructions (make sure you do the
pod install
step)Manually install react-native-image-crop-picker for Android using these instructions
Clean + Build :)
Solution 3
You dont need to rnpm link simply add ImageCropPicker.xcodeproj from node modules it will be in ios folder just drag it and drop to your libraries folder in xcode , then after go to build phase and add libImageCropPicker.a inside LinkBinary with Libraries folder that all you need to do for non Coca pods users
omriki
Updated on August 04, 2020Comments
-
omriki almost 4 years
Recently added this library: https://github.com/ivpusic/react-native-image-crop-picker but after trying to debug the issues that I get on build, I saw that this library is unavailable for linking through rnpm and only through cocoapods. Is there any way to unlink the library using rnpm and then install cocoa pods and do it that way? I don't want to create some conflicts between the two.
The issue I'm getting with the library is
'RCTHBridgeModule.h file not found.'
and the creator of the library said he currently does not support rnpm. -
Alex Nguyen over 6 yearsit still does not enough, you still need manually to remove other configurations
-
CommonSenseCode over 6 years@AlexNguyen what do you mean like import statements? please provide examples and or edit the answer
-
Alex Nguyen about 6 yearsbecause some libs need you manually modify the configuration file such as build.gradle,AndroidManifest etc. So you also need to remove it after running above command
-
Fabrizio Bertoglio over 4 yearsif the above does not work, go to the
github
repo and from the readme, go through the manual installation and revert them.