Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
fix(picture-size): export method and change default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfidelis committed Jun 4, 2018
1 parent e9cadb7 commit 9efb7f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/RNCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 = {};
Expand Down

0 comments on commit 9efb7f1

Please sign in to comment.