mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 19:20:05 +00:00
Merge pull request #33701 from vinitsood/master
[expo] Add missing prop definitions for ScreenOrientation and AppLoadingProps
This commit is contained in:
8
types/expo/index.d.ts
vendored
8
types/expo/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user