docs: Add missing dependency

This commit is contained in:
Marc Rousavy 2021-06-08 14:06:26 +02:00 committed by GitHub
parent 39a8ce9dc2
commit 5508dae8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ const catBounds = useSharedValue({ top: 0, left: 0, right: 0, bottom: 0 })
const frameProcessor = useFrameProcessor((frame) => {
'worklet'
catBounds.value = scanFrameForCat(frame)
}, [])
}, [catBounds])
const boxOverlayStyle = useAnimatedStyle(() => ({
position: 'absolute',