feat: High quality mode (enableHighQualityPhotos) (#194)
* feat: High Quality photo capture * prepare photo output for re-used settings * use high quality captures * Remove `enableVirtualDeviceFusion` as that is enabled by default * Clean up configuration, remove default * format * Update CameraViewManager.kt * rename * Update CameraProps.ts * Fix overriding `photoSettings` * Update CameraView+TakePhoto.swift * Update CameraView+TakePhoto.swift
This commit is contained in:
@@ -51,11 +51,11 @@ class CameraViewManager : SimpleViewManager<CameraView>() {
|
||||
view.enableDepthData = enableDepthData
|
||||
}
|
||||
|
||||
@ReactProp(name = "enableHighResolutionCapture")
|
||||
fun setEnableHighResolutionCapture(view: CameraView, enableHighResolutionCapture: Boolean?) {
|
||||
if (view.enableHighResolutionCapture != enableHighResolutionCapture)
|
||||
addChangedPropToTransaction(view, "enableHighResolutionCapture")
|
||||
view.enableHighResolutionCapture = enableHighResolutionCapture
|
||||
@ReactProp(name = "enableHighQualityPhotos")
|
||||
fun setEnableHighQualityPhotos(view: CameraView, enableHighQualityPhotos: Boolean?) {
|
||||
if (view.enableHighQualityPhotos != enableHighQualityPhotos)
|
||||
addChangedPropToTransaction(view, "enableHighQualityPhotos")
|
||||
view.enableHighQualityPhotos = enableHighQualityPhotos
|
||||
}
|
||||
|
||||
@ReactProp(name = "enablePortraitEffectsMatteDelivery")
|
||||
|
||||
Reference in New Issue
Block a user