0

I am trying to make dynamic image cropper. I came across this package which seems to be working absolutely as I want.

I am trying to add this in my application. I followed the steps as specified in document

  1. install react-Native-perspective-image-cropper and react-native-svg and link them
  2. Download opencv framework and add that in ios project

but I keep getting the error

"opencv2/opencv.hpp' file not found"

Anyone came across same kind of error and can help?

Firdous nath
  • 1,487
  • 1
  • 14
  • 38
Manish
  • 161
  • 1
  • 2
  • 7

1 Answers1

0

You may need to add the following to your settings.gradle:

include ':openCVLibrary310'
project(':openCVLibrary310').projectDir = 
  new File(rootProject.projectDir,
         '../node_modules/react-native-perspective-image-cropper/android/openCVLibrary310')

See instructions here

mazaneicha
  • 8,794
  • 4
  • 33
  • 52