create a context variable on your screens onvisible property like this:
UpdateContext({scannedValue: Blank()})
Now for your onScan property on your scanner add this:
UpdateContext({scannedValue: First(BarcodeReader.Barcodes).Value})
Now add the variable scannedValue to your text input box or label or wherever you want the scanned value to be seen. If you want it to also search/filter your gallery then you can try the following in the items property:
If(IsBlank(ScannedValue), YourListName, Filter(YourListName, Barcode = scannedValue))
this will show the entire list of the scanned value is blank and will show only matching barcodes if scanned value is not blank