mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 19:45:48 +08:00
Add one missing function and one missing class
This commit is contained in:
6
types/react-native-navigation/index.d.ts
vendored
6
types/react-native-navigation/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user