Trying to add flashlight to ionic react project for a barcode scanner app, could not find any documentation whatsoever on implementing it in ionic react. Any links to sites with how to solve this would be great. The only documentation I can find is about using it in ionic angular Tried using cordova flashlight plugin but its not working requires angular/core
had to install rjxs and ionic/core for it to work
hi bro just add this
this.barcodeScanner.scan({showTorchButton : true, // esto mostrara un boton para encender la linterna prompt : "Coloque un código de barras dentro del área de escaneo", // Android resultDisplayDuration: 0, // Android, display scanned text for X ms. 0 suppresses it entirely, default 1500 disableAnimations : true, // iOS disableSuccessBeep: false } ).then()}