UNPKG

618 BTypeScriptView Raw
1import { EventEmitter } from 'fbemitter';
2import React from 'react';
3declare type Props = {
4 startAsync?: () => Promise<void>;
5 onError?: (error: Error) => void;
6 onFinish?: () => void;
7 autoHideSplash?: boolean;
8} | {
9 startAsync: null;
10 onError: null;
11 onFinish: null;
12};
13export default class AppLoading extends React.Component<Props> {
14 _isMounted: boolean;
15 componentDidMount(): void;
16 componentWillUnmount(): void;
17 _startLoadingAppResourcesAsync: () => Promise<void>;
18 render(): JSX.Element;
19}
20export declare function getAppLoadingLifecycleEmitter(): EventEmitter;
21export {};