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, }