mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-31 13:41:08 +00:00
start/stop preview in takePicture callback, default to FOCUS_MODE_CONTINUOUS_PICTURE
This commit is contained in:
@@ -159,6 +159,8 @@ public class RCTCameraModule extends ReactContextBaseJavaModule {
|
||||
camera.takePicture(null, null, new Camera.PictureCallback() {
|
||||
@Override
|
||||
public void onPictureTaken(byte[] data, Camera camera) {
|
||||
camera.stopPreview();
|
||||
camera.startPreview();
|
||||
switch (options.getInt("target")) {
|
||||
case RCT_CAMERA_CAPTURE_TARGET_MEMORY:
|
||||
String encoded = Base64.encodeToString(data, Base64.DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user