From 863697bf30a248a7d273e3ab8b3236bf54c22160 Mon Sep 17 00:00:00 2001 From: Mosh Feu Date: Sun, 27 May 2018 21:30:38 +0300 Subject: [PATCH] takePictureAsync should take a optional param `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