From 48c0f75356527055a1e09b3661b6e29c3d7a1047 Mon Sep 17 00:00:00 2001 From: "James ( Jeremy ) Carman" Date: Fri, 14 Jul 2023 12:47:11 +0800 Subject: [PATCH 1/3] Example consistency Updated an example to match how the rest of the documentation uses that and similar functions. I (an infrequent JS user) was confused by the original code. --- versioned_docs/version-6.x/configuring-links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-6.x/configuring-links.md b/versioned_docs/version-6.x/configuring-links.md index d14718e3adb..5ec1c624977 100644 --- a/versioned_docs/version-6.x/configuring-links.md +++ b/versioned_docs/version-6.x/configuring-links.md @@ -660,7 +660,7 @@ const linking = { Chat: 'feed/:sort', }, }, - getStateFromPath: (path, options) => { + getStateFromPath(path, options) { // Return a state object here // You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native` }, From 7100754ac57d99fcbd546a091610a93f55b8bc36 Mon Sep 17 00:00:00 2001 From: "James ( Jeremy ) Carman" Date: Fri, 14 Jul 2023 12:49:14 +0800 Subject: [PATCH 2/3] Example Consistency fix --- versioned_docs/version-7.x/configuring-links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-7.x/configuring-links.md b/versioned_docs/version-7.x/configuring-links.md index d14718e3adb..5ec1c624977 100644 --- a/versioned_docs/version-7.x/configuring-links.md +++ b/versioned_docs/version-7.x/configuring-links.md @@ -660,7 +660,7 @@ const linking = { Chat: 'feed/:sort', }, }, - getStateFromPath: (path, options) => { + getStateFromPath(path, options) { // Return a state object here // You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native` }, From 72bf5bc1807c33f00bd54976703d77762fa768a6 Mon Sep 17 00:00:00 2001 From: "James ( Jeremy ) Carman" Date: Fri, 14 Jul 2023 12:50:26 +0800 Subject: [PATCH 3/3] Example consistency fix --- versioned_docs/version-5.x/configuring-links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-5.x/configuring-links.md b/versioned_docs/version-5.x/configuring-links.md index 4542bece964..3b972fba989 100644 --- a/versioned_docs/version-5.x/configuring-links.md +++ b/versioned_docs/version-5.x/configuring-links.md @@ -622,7 +622,7 @@ const linking = { Chat: 'feed/:sort', }, }, - getStateFromPath: (path, options) => { + getStateFromPath(path, options) { // Return a state object here // You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native` },