Add one missing function and one missing class

This commit is contained in:
Henrik Raitasola
2018-05-15 11:16:15 +03:00
parent 08bce4cb06
commit 8bd4931558

View File

@@ -18,6 +18,7 @@ export namespace Navigation {
function handleDeepLink(params?: { link: string; payload?: string; }): void;
function registerScreen(screenId: string, generator: () => React.ComponentType<any>): void;
function getCurrentlyVisibleScreenId(): Promise<string>;
function isAppLaunched(): Promise<boolean>;
}
export interface TabBasedApp {
@@ -155,6 +156,11 @@ export class ScreenVisibilityListener {
unregister(): void;
}
export class NativeEventsReceiver {
constructor();
appLaunched(callback: () => void): void;
}
export interface ScreenVisibilityListenerParams {
willAppear?: (params: ListenerParams) => void;
didAppear?: (params: ListenerParams) => void;