infastin

Results 2 comments of infastin

The solution is to use `useSharedValue` hook from `react-native-reanimated` to sync frame processors.

@fdelavra Something like this: ```js const barcodeScanned = useSharedValue(false); const frameProcessor = useFrameProcessor((frame) => { "worklet" ... if (barcodeScanned.value) { return; } barcodeScanned.value = true; ... }); ```