mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 21:05:29 +08:00
chore: tweak comment for getParent
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user