mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 02:57:24 +08:00
Merge pull request #17201 from andrewlinfoot/patch-2
Add support for key on reset action react-navigation
This commit is contained in:
2
types/react-navigation/index.d.ts
vendored
2
types/react-navigation/index.d.ts
vendored
@@ -268,6 +268,7 @@ export interface NavigationInitAction {
|
||||
export interface NavigationResetAction {
|
||||
type?: 'Navigation/RESET',
|
||||
index: number,
|
||||
key?: string | null,
|
||||
actions: NavigationNavigateAction[],
|
||||
}
|
||||
|
||||
@@ -319,6 +320,7 @@ export type NavigationAction =
|
||||
| NavigationTabAction
|
||||
|
||||
export namespace NavigationActions {
|
||||
function init(options?: NavigationInitAction): NavigationInitAction;
|
||||
function navigate(options: NavigationNavigateAction): NavigationNavigateAction;
|
||||
function reset(options: NavigationResetAction): NavigationResetAction;
|
||||
function back(options?: NavigationBackAction): NavigationBackAction;
|
||||
|
||||
Reference in New Issue
Block a user