fix: Fix unset Frame Processor not being called

This commit is contained in:
Marc Rousavy 2021-06-29 09:05:18 +02:00
parent 5275b1e49c
commit 9b645a886e

View File

@ -349,7 +349,7 @@ export class Camera extends React.PureComponent<CameraProps> {
private unsetFrameProcessor(): void {
this.assertFrameProcessorsEnabled();
// @ts-expect-error JSI functions aren't typed
global.setFrameProcessor(this.handle, this.props.frameProcessor);
global.unsetFrameProcessor(this.handle);
}
/**