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

Commit

Permalink
fix(types): fix definition for RNCameraProps.ratio
Browse files Browse the repository at this point in the history
It was "number" and not "string"
+ add new flag TakePictureOptions.forceUpOrientation
  • Loading branch information
Felipe Constantino committed Feb 26, 2018
1 parent 84a3683 commit 4d1616c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface RNCameraProps {
// -- ANDROID ONLY PROPS

/** Android only */
ratio?: number;
ratio?: string;
/** Android only */
permissionDialogTitle?: string;
/** Android only */
Expand Down Expand Up @@ -116,6 +116,9 @@ interface TakePictureOptions {
quality?: number;
base64?: boolean;
exif?: boolean;

/** iOS only */
forceUpOrientation?: boolean;
}

interface TakePictureResponse {
Expand Down

0 comments on commit 4d1616c

Please sign in to comment.