From 5af937ba1021553c424959da2b07aa75c3882dbe Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 1 Mar 2021 12:43:52 +0100 Subject: [PATCH] Update ANIMATED.md --- docs/ANIMATED.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ANIMATED.md b/docs/ANIMATED.md index c4fc91c..6371195 100644 --- a/docs/ANIMATED.md +++ b/docs/ANIMATED.md @@ -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 return ( <>