Update ANIMATED.md

This commit is contained in:
Marc Rousavy 2021-03-01 12:43:52 +01:00 committed by GitHub
parent 61ffe486a8
commit 5af937ba10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,8 @@ Reanimated.addWhitelistedNativeProps({
})
export function App() {
const devices = useCameraDevices()
const device = devices.back
const zoom = useSharedValue(0)
const onRandomZoomPress = useCallback(() => {
@ -49,6 +51,7 @@ export function App() {
[zoom]
)
if (device == null) return <LoadingView />
return (
<>
<ReanimatedCamera