diff --git a/types/react-native-navigation/index.d.ts b/types/react-native-navigation/index.d.ts index c380b4ae7e..c1d096fe5f 100644 --- a/types/react-native-navigation/index.d.ts +++ b/types/react-native-navigation/index.d.ts @@ -18,6 +18,7 @@ export namespace Navigation { function handleDeepLink(params?: { link: string; payload?: string; }): void; function registerScreen(screenId: string, generator: () => React.ComponentType): void; function getCurrentlyVisibleScreenId(): Promise; + function isAppLaunched(): Promise; } 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;