diff --git a/src/Camera.tsx b/src/Camera.tsx index e366674..1322d4b 100644 --- a/src/Camera.tsx +++ b/src/Camera.tsx @@ -392,6 +392,7 @@ export class Camera extends React.PureComponent { /** @internal */ componentWillUnmount(): void { + if (!this.isNativeViewMounted) return; if (this.lastFrameProcessor != null || this.props.frameProcessor != null) { this.unsetFrameProcessor(); this.lastFrameProcessor = undefined;