3 ms·
Um no, the whole point of that code is to show a preview on the screen. The comment you replied to is asking about the opposite, whether it's possible to hide t
by natch 8y ago
Um no, the whole point of that code is to show a preview on the screen. The comment you replied to is asking about the opposite, whether it's possible to hide the fact that the camera is being used.
- mariopt 8y agoYou'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-to-Scan-QR-code-for-Web-Whatsapp-with-iPhone-7-Plus.jpg https://cdn.howtoisolve.com//wp-content/uploads/2016/12/How-... It means you can control the camera preview UI component.
- ymolodtsov 8y agoYou need to ask user’s permission for camera first anyway.
- mariopt 8y agoFor the first time yes but then the app can access the camera anytime without asking permission.