Open DerekLeeHH opened 1 year ago
@DerekLeeHH did you find away?
Hi @DerekLeeHH you can use react-native-view-shot
to get the barcode as an image in any format, including base64
code. Just wrap your <Barcode/>
component inside <ViewShot>
from react-native-view-shot
, and use its captureRef()
method to capture your barcode as an image. I built a simple app to generate, share, download & scan barcode, see the demo here:
Check my code here: https://github.com/LintangWisesa/ReactNative-Barcode-Generator-Scanner
How can I save the generated barcode as image to be printed out?