Update README.md

This commit is contained in:
Marc Rousavy 2021-03-01 12:41:59 +01:00 committed by GitHub
parent 55185a3a4a
commit 47ca374e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ function App() {
const devices = useCameraDevices('wide-angle-camera') const devices = useCameraDevices('wide-angle-camera')
const device = devices.back const device = devices.back
if (device == null) return <LoadingView />
return ( return (
<Camera <Camera
style={StyleSheet.absoluteFill} style={StyleSheet.absoluteFill}