diff --git a/package/ios/CameraView.swift b/package/ios/CameraView.swift index 27b66080a8..7746ee10a7 100644 --- a/package/ios/CameraView.swift +++ b/package/ios/CameraView.swift @@ -185,6 +185,14 @@ public final class CameraView: UIView, CameraSessionDelegate { config.codeScanner = .disabled } + // Video Stabilization + if let jsVideoStabilizationMode = videoStabilizationMode as? String { + let videoStabilizationMode = try VideoStabilizationMode(jsValue: jsVideoStabilizationMode) + config.videoStabilizationMode = videoStabilizationMode + } else { + config.videoStabilizationMode = .off + } + // Orientation if let jsOrientation = orientation as? String { let orientation = try Orientation(jsValue: jsOrientation) diff --git a/package/ios/Core/CameraConfiguration.swift b/package/ios/Core/CameraConfiguration.swift index 60d3f0de01..7be94cf4b5 100644 --- a/package/ios/Core/CameraConfiguration.swift +++ b/package/ios/Core/CameraConfiguration.swift @@ -22,6 +22,9 @@ class CameraConfiguration { var video: OutputConfiguration