fix: Fix short UI freeze when unmounting <Camera>

This commit is contained in:
Marc Rousavy 2021-05-28 17:11:53 +02:00
parent a0e063414a
commit a78a0c835c

View File

@ -154,12 +154,6 @@ public final class CameraView: UIView {
object: AVAudioSession.sharedInstance) object: AVAudioSession.sharedInstance)
} }
override public func removeFromSuperview() {
ReactLogger.log(level: .info, message: "Removing Camera View...")
captureSession.stopRunning()
super.removeFromSuperview()
}
// pragma MARK: Props updating // pragma MARK: Props updating
override public final func didSetProps(_ changedProps: [String]!) { override public final func didSetProps(_ changedProps: [String]!) {
ReactLogger.log(level: .info, message: "Updating \(changedProps.count) prop(s)...") ReactLogger.log(level: .info, message: "Updating \(changedProps.count) prop(s)...")