fixed some formatting issues.

This commit is contained in:
Marcus Andersson 2017-12-20 11:49:32 +01:00
parent ec4ac6c74b
commit ed2768828b
2 changed files with 1 additions and 2 deletions

View File

@ -475,7 +475,6 @@ public class RCTCamera {
public int rotation = 0;
public int previewWidth = -1;
public int previewHeight = -1;
public int previewHeight = -1;
public float previewPaddingHeight = -1;
public float previewPaddingWidth = -1;

View File

@ -580,7 +580,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
}
}
boolean shouldCropToPreview = options.hasKey(cropToPreview) && options.getBoolean(cropToPreview);
boolean shouldCropToPreview = options.hasKey("cropToPreview") && options.getBoolean("cropToPreview");
if (shouldCropToPreview) {
try {
int type = options.getInt("type");