From 06bcb53691c5029b08285b434e67c68ad723c0b7 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Thu, 17 Feb 2022 13:42:02 +0100 Subject: [PATCH] fix: Fix unmount crash --- src/Camera.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Camera.tsx b/src/Camera.tsx index 8551d80..6150022 100644 --- a/src/Camera.tsx +++ b/src/Camera.tsx @@ -409,15 +409,6 @@ export class Camera extends React.PureComponent { this.lastFrameProcessor = frameProcessor; } } - - /** @internal */ - componentWillUnmount(): void { - if (!this.isNativeViewMounted) return; - if (this.lastFrameProcessor != null || this.props.frameProcessor != null) { - this.unsetFrameProcessor(); - this.lastFrameProcessor = undefined; - } - } //#endregion /** @internal */