feat: Implement exposure
(#2173)
* feat: Implement `exposure` (iOS) * Update Podfile.lock * Format * Expose exposure in format * Set exposure in Camera2 * fix: Fix exposure calculation * Add exposure docs
This commit is contained in:
@@ -140,8 +140,12 @@ class CameraViewManager : ViewGroupManager<CameraView>() {
|
||||
|
||||
@ReactProp(name = "zoom")
|
||||
fun setZoom(view: CameraView, zoom: Double) {
|
||||
val zoomFloat = zoom.toFloat()
|
||||
view.zoom = zoomFloat
|
||||
view.zoom = zoom.toFloat()
|
||||
}
|
||||
|
||||
@ReactProp(name = "exposure")
|
||||
fun setExposure(view: CameraView, exposure: Double) {
|
||||
view.exposure = exposure.toFloat()
|
||||
}
|
||||
|
||||
@ReactProp(name = "orientation")
|
||||
|
Reference in New Issue
Block a user