Update DEVICES.md
This commit is contained in:
parent
df953c6da6
commit
55185a3a4a
@ -72,6 +72,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}
|
||||||
@ -90,6 +91,7 @@ function App() {
|
|||||||
const devices = useCameraDevices()
|
const devices = useCameraDevices()
|
||||||
const device = devices.back
|
const device = devices.back
|
||||||
|
|
||||||
|
if (device == null) return <LoadingView />
|
||||||
return (
|
return (
|
||||||
<Camera
|
<Camera
|
||||||
style={StyleSheet.absoluteFill}
|
style={StyleSheet.absoluteFill}
|
||||||
@ -113,6 +115,7 @@ function App() {
|
|||||||
const device = devices.back
|
const device = devices.back
|
||||||
const isAppForeground = useIsAppForeground()
|
const isAppForeground = useIsAppForeground()
|
||||||
|
|
||||||
|
if (device == null) return <LoadingView />
|
||||||
return (
|
return (
|
||||||
<Camera
|
<Camera
|
||||||
style={StyleSheet.absoluteFill}
|
style={StyleSheet.absoluteFill}
|
||||||
|
Loading…
Reference in New Issue
Block a user