From 854aebe0fe5a686ce07ea438f494f1224d4d2159 Mon Sep 17 00:00:00 2001 From: Andrew Linfoot Date: Wed, 14 Jun 2017 20:09:14 -0700 Subject: [PATCH 1/2] Add support for key on reset action --- types/react-navigation/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index e343d092c6..8be0e2ecc5 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -268,6 +268,7 @@ export interface NavigationInitAction { export interface NavigationResetAction { type?: 'Navigation/RESET', index: number, + key?: string | null, actions: NavigationNavigateAction[], } From b9ff8d230eb58d33fcb814469eb2491a0ee755c2 Mon Sep 17 00:00:00 2001 From: Andrew Linfoot Date: Wed, 14 Jun 2017 20:48:16 -0700 Subject: [PATCH 2/2] Add support for NavigationActions.init() action creator See https://github.com/react-community/react-navigation/blob/master/src/NavigationActions.js#L70 --- types/react-navigation/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 8be0e2ecc5..f4179a19ce 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -320,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;