From 8bd493155842e447bf3be1640b419cd752a84587 Mon Sep 17 00:00:00 2001 From: Henrik Raitasola Date: Tue, 15 May 2018 11:16:15 +0300 Subject: [PATCH] Add one missing function and one missing class --- types/react-native-navigation/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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;