Update FORMATS.md
This commit is contained in:
parent
47ca374e86
commit
61ffe486a8
@ -35,6 +35,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}
|
||||||
@ -83,6 +84,7 @@ function App() {
|
|||||||
}, undefined);
|
}, undefined);
|
||||||
}, [device?.formats]);
|
}, [device?.formats]);
|
||||||
|
|
||||||
|
if (device == null) return <LoadingView />
|
||||||
return (
|
return (
|
||||||
<Camera
|
<Camera
|
||||||
style={StyleSheet.absoluteFill}
|
style={StyleSheet.absoluteFill}
|
||||||
@ -129,6 +131,7 @@ The `Camera` View provides a few props that depend on the specified `format`. Fo
|
|||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
function App() {
|
function App() {
|
||||||
|
// ...
|
||||||
return (
|
return (
|
||||||
<Camera
|
<Camera
|
||||||
style={StyleSheet.absoluteFill}
|
style={StyleSheet.absoluteFill}
|
||||||
|
Loading…
Reference in New Issue
Block a user