From 9b645a886e48982977b8ae458bb6f6880691615e Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 29 Jun 2021 09:05:18 +0200 Subject: [PATCH] fix: Fix unset Frame Processor not being called --- src/Camera.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Camera.tsx b/src/Camera.tsx index be8a646..a3c9ee3 100644 --- a/src/Camera.tsx +++ b/src/Camera.tsx @@ -349,7 +349,7 @@ export class Camera extends React.PureComponent { private unsetFrameProcessor(): void { this.assertFrameProcessorsEnabled(); // @ts-expect-error JSI functions aren't typed - global.setFrameProcessor(this.handle, this.props.frameProcessor); + global.unsetFrameProcessor(this.handle); } /**