I’m having the same problem than the one mentioned here: Difference between Camera and BarcodeScanner?.
I’m trying to use Camera methods with BarCodeScanner (Doc says it’s possible) but the app crashes when I try to use
takePictureAsync. I’ve made a snack that shows what I’m trying to accomplish:
I didn’t want to use the Camera component because I only need it for scanning codes and saving them, so it would be much simpler to just use the one above.
What am I doing wrong?
Thank you in advance.