From 2d9acea80aae1fe59914e706d045072e14cd442f Mon Sep 17 00:00:00 2001 From: Andrew Linfoot Date: Thu, 15 Jun 2017 18:30:20 -0700 Subject: [PATCH] Allow null values to be passed to navigation.goBack() --- types/react-navigation/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index d4ec6dc2d4..7d26058ad3 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -360,7 +360,7 @@ export interface NavigationProp { } export type NavigationScreenProp = NavigationProp & { - goBack: (routeKey?: string) => boolean, + goBack: (routeKey?: string | null) => boolean, navigate: (routeName: string, params?: NavigationParams, action?: NavigationAction) => boolean, setParams: (newParams: NavigationParams) => boolean, }