diff --git a/versioned_docs/version-5.x/configuring-links.md b/versioned_docs/version-5.x/configuring-links.md index 01ed72fd7b..4ef0585976 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` }, diff --git a/versioned_docs/version-6.x/configuring-links.md b/versioned_docs/version-6.x/configuring-links.md index cd9ebd50e6..4fb65f39b5 100644 --- a/versioned_docs/version-6.x/configuring-links.md +++ b/versioned_docs/version-6.x/configuring-links.md @@ -685,7 +685,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` }, diff --git a/versioned_docs/version-7.x/configuring-links.md b/versioned_docs/version-7.x/configuring-links.md index 99e6d4486a..bb1cf065bd 100644 --- a/versioned_docs/version-7.x/configuring-links.md +++ b/versioned_docs/version-7.x/configuring-links.md @@ -1358,7 +1358,7 @@ Example: ```js const linking = { prefixes: ['https://example.com', 'example://'], - 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` }, diff --git a/versioned_docs/version-8.x/configuring-links.md b/versioned_docs/version-8.x/configuring-links.md index 02ef63e188..b4b2747615 100644 --- a/versioned_docs/version-8.x/configuring-links.md +++ b/versioned_docs/version-8.x/configuring-links.md @@ -1347,7 +1347,7 @@ Example: ```js const linking = { prefixes: ['https://example.com', 'example://'], - 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` },