mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-31 13:41:08 +00:00
added support for android to crop image to preview.
This commit is contained in:
@@ -83,6 +83,10 @@ class RCTCameraViewFinder extends TextureView implements TextureView.SurfaceText
|
||||
public void onSurfaceTextureUpdated(SurfaceTexture surface) {
|
||||
}
|
||||
|
||||
public int getCameraType() {
|
||||
return _cameraType;
|
||||
}
|
||||
|
||||
public double getRatio() {
|
||||
int width = RCTCamera.getInstance().getPreviewWidth(this._cameraType);
|
||||
int height = RCTCamera.getInstance().getPreviewHeight(this._cameraType);
|
||||
|
||||
Reference in New Issue
Block a user