From fca5bd1e91278770ca09306c3785a09ef06841d9 Mon Sep 17 00:00:00 2001 From: Ray Chuan Tay Date: Wed, 12 Jan 2022 16:22:46 +0800 Subject: [PATCH] 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 --- versioned_docs/version-5.x/navigation-state.md | 2 +- versioned_docs/version-6.x/navigation-state.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {