mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Merge pull request #1608 from react-native-community/fix/pictureSize
fix(picture-size): export method and change default value
This commit is contained in:
commit
9cddb2a721
@ -230,7 +230,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
|
||||
captureAudio: false,
|
||||
useCamera2Api: false,
|
||||
playSoundOnCapture: false,
|
||||
pictureSize: 'Photo',
|
||||
pictureSize: '1920x1080',
|
||||
};
|
||||
|
||||
_cameraRef: ?Object;
|
||||
@ -269,6 +269,10 @@ export default class Camera extends React.Component<PropsType, StateType> {
|
||||
}
|
||||
}
|
||||
|
||||
getAvailablePictureSizes = async (): string[] => {
|
||||
return await CameraManager.getAvailablePictureSizes(this.props.ratio, this._cameraHandle);
|
||||
};
|
||||
|
||||
async recordAsync(options?: RecordingOptions) {
|
||||
if (!options || typeof options !== 'object') {
|
||||
options = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user