Merge pull request #1296 from react-native-community/chore-ts-definitions

Add new type definitions according to #1283
This commit is contained in:
Felipe Cavalcante Constantino 2018-02-27 14:44:41 -03:00 committed by GitHub
commit b0f999e977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,9 @@ type PictureOptions = {
base64?: boolean,
mirrorImage?: boolean,
exif?: boolean,
width?: number,
fixOrientation?: boolean,
forceUpOrientation?: boolean,
};
type TrackedFaceFeature = FaceFeature & {

5
types/index.d.ts vendored
View File

@ -116,7 +116,10 @@ interface TakePictureOptions {
quality?: number;
base64?: boolean;
exif?: boolean;
width?: number;
/** Android only */
fixOrientation?: boolean;
/** iOS only */
forceUpOrientation?: boolean;
}
@ -172,4 +175,4 @@ export class FaceDetector {
*/
export default class RCTCamera extends Component<any> {
static constants: any;
}
}