UNPKG

861 BTypeScriptView Raw
1/**
2 * Makes the native splash screen stay visible until `SplashScreen.hideAsync()` is called.
3 * It has to be called before any view is rendered.
4 *
5 * @example
6 * ```typescript
7 * // top level component
8 *
9 * SplashScreen.preventAutoHideAsync()
10 * .then(result => console.log(`SplashScreen.preventAutoHideAsync() succeeded: ${result}`))
11 * .catch(console.warn); // it's good to explicitly catch and inspect any error
12 *
13 * class App extends React.Component {
14 * ...
15 * // Hide SplashScreen once your app content is ready to be displayed.
16 * await SplashScreen.hideAsync()
17 * ...
18 * }
19 * ```
20 */
21export declare function preventAutoHideAsync(): Promise<boolean>;
22export declare function hideAsync(): Promise<boolean>;
23/**
24 * @deprecated
25 */
26export declare function hide(): void;
27/**
28 * @deprecated
29 */
30export declare function preventAutoHide(): void;