mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
docs: remove outdated comments
This commit is contained in:
@@ -219,8 +219,6 @@ const StackRouter: Router<CommonAction | Action> = {
|
||||
};
|
||||
|
||||
export default function StackNavigator(props: Props) {
|
||||
// The `navigation` object contains the navigation state and some helpers (e.g. push, pop)
|
||||
// The `descriptors` object contains `navigation` objects for children routes and helper for rendering a screen
|
||||
const { navigation, descriptors } = useNavigationBuilder(StackRouter, props);
|
||||
|
||||
return (
|
||||
|
||||
@@ -141,8 +141,6 @@ const TabRouter: Router<Action | CommonAction> = {
|
||||
};
|
||||
|
||||
export default function TabNavigator(props: Props) {
|
||||
// The `navigation` object contains the navigation state and some helpers (e.g. push, pop)
|
||||
// The `descriptors` object contains `navigation` objects for children routes and helper for rendering a screen
|
||||
const { navigation, descriptors } = useNavigationBuilder(TabRouter, props);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user