From a78a0c835ca7005e9d1f7557022bb865e2e01f57 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Fri, 28 May 2021 17:11:53 +0200 Subject: [PATCH] fix: Fix short UI freeze when unmounting `` --- ios/CameraView.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ios/CameraView.swift b/ios/CameraView.swift index e077142..58fc74c 100644 --- a/ios/CameraView.swift +++ b/ios/CameraView.swift @@ -154,12 +154,6 @@ public final class CameraView: UIView { object: AVAudioSession.sharedInstance) } - override public func removeFromSuperview() { - ReactLogger.log(level: .info, message: "Removing Camera View...") - captureSession.stopRunning() - super.removeFromSuperview() - } - // pragma MARK: Props updating override public final func didSetProps(_ changedProps: [String]!) { ReactLogger.log(level: .info, message: "Updating \(changedProps.count) prop(s)...")