Skip to content

Commit fca5bd1

Browse files
committed
docs: mention Settings would be the route an app would be displaying for listed JS state
Further flesh out which route an app is displayed that would correspond to the navigation state represented by the listed JavaScript object. For example, it might not be immediately obvious to a newcomer that among the 2 routes of `Home` and `Settings`, it would be the `Settings` route that is displayed, and not `Home`. Signed-off-by: Ray Chuan Tay <rtay@vmware.com>
1 parent 514e3cf commit fca5bd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

versioned_docs/version-5.x/navigation-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Navigation state
66

77
The navigation state is the state where React Navigation stores the navigation structure and history of the app. It's useful to know about the structure of the navigation state if you need to do advanced operations such as [resetting the state](navigation-actions.md#reset), [providing a custom initial state](navigation-container.md#initial-state) etc.
88

9-
It's a JavaScript object which looks like this:
9+
For example, an app that is now showing Settings, having navigating to it from Home, might have its navigation state represented by a JavaScript object like this:
1010

1111
```js
1212
const state = {

versioned_docs/version-6.x/navigation-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Navigation state
66

77
The navigation state is the state where React Navigation stores the navigation structure and history of the app. It's useful to know about the structure of the navigation state if you need to do advanced operations such as [resetting the state](navigation-actions.md#reset), [providing a custom initial state](navigation-container.md#initial-state) etc.
88

9-
It's a JavaScript object which looks like this:
9+
For example, an app that is now showing Settings, having navigating to it from Home, might have its navigation state represented by a JavaScript object like this:
1010

1111
```js
1212
const state = {

0 commit comments

Comments
 (0)