fix(android): use initial exposure value (#2418)

This commit is contained in:
Dominik Schwarz 2019-08-07 22:47:43 +02:00 committed by Sibelius Seraphini
parent 75d093d69d
commit c93e92f602
2 changed files with 2 additions and 1 deletions

View File

@ -979,8 +979,8 @@ class Camera1 extends CameraViewImpl implements MediaRecorder.OnInfoListener,
private boolean setExposureInternal(int exposure) {
Log.e("CAMERA_1::", ""+isCameraOpened()+"; Exposure: "+exposure);
mExposure = exposure;
if (isCameraOpened()){
mExposure = exposure;
int minExposure = mCameraParameters.getMinExposureCompensation();
int maxExposure = mCameraParameters.getMaxExposureCompensation();
Log.e("CAMERA_1::", ""+minExposure);

1
types/index.d.ts vendored
View File

@ -139,6 +139,7 @@ export interface RNCameraProps {
notAuthorizedView?: JSX.Element;
pendingAuthorizationView?: JSX.Element;
useCamera2Api?: boolean;
exposure?: number;
whiteBalance?: keyof WhiteBalance;
captureAudio?: boolean;