chore: tweak comment for getParent

This commit is contained in:
Satyajit Sahoo
2020-12-02 21:15:29 +01:00
parent 8bdc6c6b9b
commit f137a84a80

View File

@@ -210,9 +210,7 @@ type NavigationHelpersCommon<
canGoBack(): boolean; canGoBack(): boolean;
/** /**
* Returns the parent navigator, if any. Reason why the function is called * Returns the navigation prop from the parent navigator,
* getParent is to warn developers against overusing it to eg. get parent
* of parent and other hard-to-follow patterns.
*/ */
getParent<T = NavigationProp<ParamListBase> | undefined>(): T; getParent<T = NavigationProp<ParamListBase> | undefined>(): T;