The Red Line in the middle of QR Code Scanner

Does anyone know how to make that line move up and down instead of staying in the middle?
I am using barcode-scanner from npm.
The red line just stay there, not moving, but I saw quite a few other apps can make that line move.