WebsiteBeaver / react-native-document-scanner-plugin

A React Native document scanner plugin for Android and iOS
https://react-native-document-scanner.js.org/
MIT License
254 stars 48 forks source link

I want to use custom camera #3

Open ibenettaleb opened 1 year ago

ibenettaleb commented 1 year ago

Hello ;-)

Thank you very much for your fantastic plugin.

I'm simply wondering whether I may utilize the custom camera that I made.

Thanks for considering my request.

dmarcs commented 1 year ago

That would probably not be too difficult for Android. The problem is that iOS uses the native document scanner, so I can't customize that. It would only be possible if I use Vision instead.

ibenettaleb commented 1 year ago

I appreciate your reply. How can I include it in Android? Or will you include that in the future?

dmarcs commented 1 year ago

I'll consider it if time allows. Right now you can't do this with Android.

ibenettaleb commented 1 year ago

OK, Thank You

comertcimen commented 1 year ago

Is the answer same for using the cropping/image editing screen for without camera usage? e.g. using share functionality to import an image from third party apps and passing image path to the cropper.

dmarcs commented 1 year ago

Yeah it's basically the same. In order to make that work I would need to skip the camera capture on Android, and send the cropper an image. On iOS it's possible, but tricky because right now this plugin uses VisionKit.

deepakv-z14 commented 1 year ago

Yes this will be a great addition to this lib

harbolaez commented 6 months ago

+1 this would be a great addition or if you can expose the cropping functionality on Adnroid would be great!

paramrana78 commented 4 months ago

+1 Team, I'm also looking for something similar, just to show the rectangular mask on camera without any functionality.