You're right, I'll find another example and update the answer.
I believe this is possible, in React Native you can access the camera and programmatically set the preview component size. As far as I know, there is nothing preventing you from using the camera to a preview component that is not visible on the screen.
If Whatapps can do this: https://cdn.howtoisolve.com//wp-content/uploads/2016/12/How-...
It means you can control the camera preview UI component.