From 4d1616c57a059127db07f52ca18a8b092ba559ad Mon Sep 17 00:00:00 2001 From: Felipe Constantino Date: Mon, 26 Feb 2018 17:06:04 -0300 Subject: [PATCH] fix(types): fix definition for RNCameraProps.ratio It was "number" and not "string" + add new flag TakePictureOptions.forceUpOrientation --- types/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 079bf8a..915d1fb 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -67,7 +67,7 @@ export interface RNCameraProps { // -- ANDROID ONLY PROPS /** Android only */ - ratio?: number; + ratio?: string; /** Android only */ permissionDialogTitle?: string; /** Android only */ @@ -116,6 +116,9 @@ interface TakePictureOptions { quality?: number; base64?: boolean; exif?: boolean; + + /** iOS only */ + forceUpOrientation?: boolean; } interface TakePictureResponse {