diff --git a/versioned_docs/version-5.x/navigation-state.md b/versioned_docs/version-5.x/navigation-state.md index 5c420a5ed09..5e70ab5a6af 100644 --- a/versioned_docs/version-5.x/navigation-state.md +++ b/versioned_docs/version-5.x/navigation-state.md @@ -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 = { diff --git a/versioned_docs/version-6.x/navigation-state.md b/versioned_docs/version-6.x/navigation-state.md index 5c420a5ed09..5e70ab5a6af 100644 --- a/versioned_docs/version-6.x/navigation-state.md +++ b/versioned_docs/version-6.x/navigation-state.md @@ -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 = {