From ab95daceb22f1c587f496fca3c7645c6c5aa057e Mon Sep 17 00:00:00 2001 From: Mosh Feu Date: Wed, 30 May 2018 02:00:21 +0300 Subject: [PATCH] takePictureAsync should take a optional param (#26065) `options: PictureOptions` is not mandatory. --- types/expo/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/expo/index.d.ts b/types/expo/index.d.ts index f51d2d13b6..4e7a0ebdb3 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -761,7 +761,7 @@ export interface RecordingOptions { } export class CameraObject { - takePictureAsync(options: PictureOptions): Promise; + takePictureAsync(options?: PictureOptions): Promise; recordAsync(options: RecordingOptions): Promise<{ uri: string; }>; stopRecording(): void; getSupportedRatiosAsync(): Promise; // Android only