mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-31 13:41:08 +00:00
Added Camera.constants.CaptureQuality.preview for android to allow the outputted image to be exactly the same as the previewed image (#449)
This commit is contained in:
committed by
Nicolas Charpentier
parent
e4536fd896
commit
154cb7aa58
@@ -73,6 +73,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
|
||||
public static final int RCT_CAMERA_TORCH_MODE_OFF = 0;
|
||||
public static final int RCT_CAMERA_TORCH_MODE_ON = 1;
|
||||
public static final int RCT_CAMERA_TORCH_MODE_AUTO = 2;
|
||||
public static final String RCT_CAMERA_CAPTURE_QUALITY_PREVIEW = "preview";
|
||||
public static final String RCT_CAMERA_CAPTURE_QUALITY_HIGH = "high";
|
||||
public static final String RCT_CAMERA_CAPTURE_QUALITY_MEDIUM = "medium";
|
||||
public static final String RCT_CAMERA_CAPTURE_QUALITY_LOW = "low";
|
||||
@@ -196,6 +197,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
|
||||
put("medium", RCT_CAMERA_CAPTURE_QUALITY_MEDIUM);
|
||||
put("high", RCT_CAMERA_CAPTURE_QUALITY_HIGH);
|
||||
put("photo", RCT_CAMERA_CAPTURE_QUALITY_HIGH);
|
||||
put("preview", RCT_CAMERA_CAPTURE_QUALITY_PREVIEW);
|
||||
put("480p", RCT_CAMERA_CAPTURE_QUALITY_480P);
|
||||
put("720p", RCT_CAMERA_CAPTURE_QUALITY_720P);
|
||||
put("1080p", RCT_CAMERA_CAPTURE_QUALITY_1080P);
|
||||
|
||||
Reference in New Issue
Block a user