Michaelvilleneuve / react-native-perspective-image-cropper

Perform custom crop, resizing and perspective correction 📐🖼
MIT License
305 stars 128 forks source link

error: null is not an object (evaluating '_ reactNative.NativeModules.CustomCropManager.crop') #23

Open CSFDuarte opened 5 years ago

CSFDuarte commented 5 years ago

When trying to render the sample component from read.me file in the Android version, the app show an error related to this Native Module called CustomCropManager, which I have looked for information in google but didn't find anything.

image

Michaelvilleneuve commented 5 years ago

Hi, your module seems to have been linked incorrectly, can you please check it, or try manual linking ?

ethienneroy commented 5 years ago

@Michaelvilleneuve Hi, I have the same issue and my module looks like it's linked correctly. Do you have more info of how it should be linked ?

justinsymph commented 5 years ago

Same issue, any updates?

manchi17 commented 5 years ago

Facing same issue.

midhundeulect commented 5 years ago

Same error

justinjoyn commented 5 years ago

I tried this:

import fr.michaelvilleneuve.customcrop.RNCustomCropPackage;
 protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
               ...
                new RNCustomCropPackage()
        );
    }

This did change the error: Screenshot_1561555822

Michaelvilleneuve commented 5 years ago

@justinjoyn and everyone here. It seems that something is missing in the documentation. This error means OpenCV or the module has not been linked, please try to follow the steps mentionned here https://github.com/Michaelvilleneuve/react-native-perspective-image-cropper/issues/26#issuecomment-505902166 and tell me if that helped

manchi17 commented 5 years ago

@justinjoyn and everyone here. It seems that something is missing in the documentation. This error means OpenCV or the module has not been linked, please try to follow the steps mentionned here #26 (comment) and tell me if that helped

@Michaelvilleneuve I just tried this with no luck. Still getting the same error. Screenshot_1561616140

Gricardov commented 4 years ago

Did anyone fix it? :(

Gricardov commented 4 years ago

Chamos, I found the solution. Follow this step-by-step tutorial https://brainhub.eu/blog/opencv-react-native-image-processing/ If you still experience problems, turn on the debugger and all will work fine :)