Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CSFDuarte opened this issue Jun 6, 2019 · 10 comments

Comments

@CSFDuarte
Copy link

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
Copy link
Owner

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

@ethienneroy
Copy link

@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
Copy link

Same issue, any updates?

@manchi17
Copy link

Facing same issue.

@midhundeulect
Copy link

Same error

@justinjoyn
Copy link

justinjoyn commented Jun 26, 2019

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
Copy link
Owner

Michaelvilleneuve commented Jun 26, 2019

@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

@manchi17
Copy link

@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
Copy link

Did anyone fix it? :(

@Gricardov
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants