diff --git a/versioned_docs/version-5.x/configuring-links.md b/versioned_docs/version-5.x/configuring-links.md index 01ed72fd7b3..4ef0585976d 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 cd9ebd50e60..4fb65f39b55 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 99e6d4486a8..bb1cf065bdb 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 02ef63e188f..b4b27476155 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` },