Merge pull request #33701 from vinitsood/master

[expo] Add missing prop definitions for ScreenOrientation and AppLoadingProps
This commit is contained in:
Nathan Shively-Sanders
2019-03-08 16:35:02 -08:00
committed by GitHub

View File

@@ -16,6 +16,7 @@
// Bartosz Dotryw <https://github.com/burtek>
// Jason Killian <https://github.com/jkillian>
// Satyajit Sahoo <https://github.com/satya164>
// Vinit Sood <https://github.com/vinitsood>
// 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;
}
/**