From 6b5fa0f70981a50237c1a8a8f21a599a959e3be5 Mon Sep 17 00:00:00 2001 From: Vinit Sood Date: Thu, 7 Mar 2019 21:34:08 +0100 Subject: [PATCH 1/3] add definitions for ScreenOrientation and AppLoadingProps --- types/expo/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/expo/index.d.ts b/types/expo/index.d.ts index 338a1c2989..a0eb3c6237 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -16,6 +16,7 @@ // Bartosz Dotryw // Jason Killian // Satyajit Sahoo +// Vinit Sood // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -200,6 +201,9 @@ export interface AppLoadingProps { /** If `startAsync` throws an error, it is caught and passed into the function provided to `onError`. */ onError?: (error: Error) => void; + + /** Whether to hide the native splash screen as soon as you unmount the AppLoading component. */ + autoHideSplash?: boolean } /** @@ -2463,7 +2467,11 @@ export namespace ScreenOrientation { const Orientation: Orientations; + /** Deprecated in favour of ScreenOrientation.allowAsync. */ function allow(orientation: keyof Orientations): void; + + /** Allow a screen orientation. You can call this function multiple times with multiple orientations to allow multiple orientations. */ + function allowAsync(orientation: keyof Orientations): void; } /** From b809f105b58d4f45d4eb1e0535faa86958df150e Mon Sep 17 00:00:00 2001 From: vinitsood Date: Thu, 7 Mar 2019 22:32:16 +0100 Subject: [PATCH 2/3] Update index.d.ts --- 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 a0eb3c6237..544db39e67 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -16,7 +16,7 @@ // Bartosz Dotryw // Jason Killian // Satyajit Sahoo -// Vinit Sood +// Vinit Sood // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 From e19962e533e61a8e79ea27ba3dd1958a24317bbd Mon Sep 17 00:00:00 2001 From: vinitsood Date: Thu, 7 Mar 2019 22:38:47 +0100 Subject: [PATCH 3/3] Update index.d.ts --- 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 544db39e67..2752410316 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -203,7 +203,7 @@ export interface AppLoadingProps { onError?: (error: Error) => void; /** Whether to hide the native splash screen as soon as you unmount the AppLoading component. */ - autoHideSplash?: boolean + autoHideSplash?: boolean; } /**