Merge pull request #1297 from react-native-community/fix/mirror-image

add missing mirrorImage takePictureASync option to docs & types
This commit is contained in:
Felipe Cavalcante Constantino 2018-02-27 18:42:55 -03:00 committed by GitHub
commit f7f2ea5cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -245,6 +245,8 @@ Supported options:
- `quality` (float between 0 to 1.0). This property is used to compress the output jpeg file with 1 meaning no jpeg compression will be applied. If no value is specified `quality:1` is used.
- `base64` (boolean true or false) Use this with `true` if you want a base64 representation of the picture taken on the return data of your promise. If no value is specified `base64:false` is used.
- `mirrorImage` (boolean true or false). Use this with `true` if you want the resulting rendered picture to be mirrored (inverted in the vertical axis). If no value is specified `mirrorImage:false` is used.
- `exif` (boolean true or false) Use this with `true` if you want a exif data map of the picture taken on the return data of your promise. If no value is specified `exif:false` is used.

1
types/index.d.ts vendored
View File

@ -117,6 +117,7 @@ interface TakePictureOptions {
base64?: boolean;
exif?: boolean;
width?: number;
mirrorImage?: boolean;
/** Android only */
fixOrientation?: boolean;