On your iPhone XR, swipe down on the screen to access the Control Panel. After that, select the QR scanner option depicted in the screenshot to begin scanning.
If that is not what you’re asking then join the iMore Forums and explain yourself a bit better. Thanks.
If you don't see QR code icon in the control center, go to settings> Control Center and add it.
Is this the scanner you want? There are apps for scanning as well.