You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/route-object.md
+61-2Lines changed: 61 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@ title: Route object reference
4
4
sidebar_label: Route object
5
5
---
6
6
7
+
import Tabs from '@theme/Tabs';
8
+
import TabItem from '@theme/TabItem';
9
+
7
10
Each `screen` component in your app is provided with the `route` object as a prop automatically. The prop contains various information regarding current route (place in navigation hierarchy component lives).
8
11
9
12
-`route`
@@ -12,9 +15,51 @@ Each `screen` component in your app is provided with the `route` object as a pro
12
15
-`path` - An optional string containing the path that opened the screen, exists when the screen was opened via a deep link.
13
16
-`params` - An optional object containing params which is defined while navigating e.g. `navigate('Twitter', { user: 'Dan Abramov' })`.
0 commit comments