Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion versioned_docs/version-5.x/navigation-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_label: Navigation state

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.

It's a JavaScript object which looks like this:
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:

```js
const state = {
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-6.x/navigation-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_label: Navigation state

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.

It's a JavaScript object which looks like this:
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:

```js
const state = {
Expand Down