Update ANIMATED.md
This commit is contained in:
parent
61ffe486a8
commit
5af937ba10
@ -38,6 +38,8 @@ Reanimated.addWhitelistedNativeProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export function App() {
|
export function App() {
|
||||||
|
const devices = useCameraDevices()
|
||||||
|
const device = devices.back
|
||||||
const zoom = useSharedValue(0)
|
const zoom = useSharedValue(0)
|
||||||
|
|
||||||
const onRandomZoomPress = useCallback(() => {
|
const onRandomZoomPress = useCallback(() => {
|
||||||
@ -49,6 +51,7 @@ export function App() {
|
|||||||
[zoom]
|
[zoom]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (device == null) return <LoadingView />
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ReanimatedCamera
|
<ReanimatedCamera
|
||||||
|
Loading…
Reference in New Issue
Block a user