fix(android): use initial exposure value (#2418)
This commit is contained in:
parent
75d093d69d
commit
c93e92f602
@ -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
1
types/index.d.ts
vendored
@ -139,6 +139,7 @@ export interface RNCameraProps {
|
||||
notAuthorizedView?: JSX.Element;
|
||||
pendingAuthorizationView?: JSX.Element;
|
||||
useCamera2Api?: boolean;
|
||||
exposure?: number;
|
||||
whiteBalance?: keyof WhiteBalance;
|
||||
captureAudio?: boolean;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user