From f137a84a80fb28da9dbd4bc821e7dcfaa6bb2f05 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Wed, 2 Dec 2020 21:15:29 +0100 Subject: [PATCH] chore: tweak comment for getParent --- packages/core/src/types.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/src/types.tsx b/packages/core/src/types.tsx index 67530470..6005bdef 100644 --- a/packages/core/src/types.tsx +++ b/packages/core/src/types.tsx @@ -210,9 +210,7 @@ type NavigationHelpersCommon< canGoBack(): boolean; /** - * Returns the parent navigator, if any. Reason why the function is called - * getParent is to warn developers against overusing it to eg. get parent - * of parent and other hard-to-follow patterns. + * Returns the navigation prop from the parent navigator, */ getParent | undefined>(): T;