Woonivers / react-native-document-scanner

Document scanner, features live border detection, perspective correction, image filters and more ! πŸ“²πŸ“Έ
MIT License
85 stars 71 forks source link

Update example to react native 0.60.0+ #18

Closed jorgemasta closed 5 years ago

haneul512 commented 5 years ago

hello @jorgemarrero Still having trouble running the example code for RN 0.60.0. I have followed instructions from readme, but I get

error: cannot find symbol import org.opencv.DocumentScannerPackage;

when I try to build for Android. Any ideas?

jorgemasta commented 5 years ago

hello @jorgemarrero Still having trouble running the example code for RN 0.60.0. I have followed instructions from readme, but I get

error: cannot find symbol import org.opencv.DocumentScannerPackage;

when I try to build for Android. Any ideas?

Thanks for reporting @haneul512 . Yes, it's a problem related to the auto-linking

It has been resolved. I forgot to add the file react-native.config.js to npm, it is published in version 2.0.1.

I have also modified the package.json in the example so that it points directly to the root folder, not to npm.

Fresh install and try again πŸ’ͺ

haneul512 commented 5 years ago

Fresh install and try again πŸ’ͺ

It works now! thanks mate. I owe you a beer 🍺🍺🍺🍺