Skip to content

Commit 98ebe73

Browse files
peellesatya164
andauthored
Use consistent syntax for examples (#1264)
Co-authored-by: Satyajit Sahoo <[email protected]>
1 parent 64132c1 commit 98ebe73

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

versioned_docs/version-5.x/configuring-links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ const linking = {
622622
Chat: 'feed/:sort',
623623
},
624624
},
625-
getStateFromPath: (path, options) => {
625+
getStateFromPath(path, options) {
626626
// Return a state object here
627627
// You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native`
628628
},

versioned_docs/version-6.x/configuring-links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ const linking = {
685685
Chat: 'feed/:sort',
686686
},
687687
},
688-
getStateFromPath: (path, options) => {
688+
getStateFromPath(path, options) {
689689
// Return a state object here
690690
// You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native`
691691
},

versioned_docs/version-7.x/configuring-links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ Example:
13581358
```js
13591359
const linking = {
13601360
prefixes: ['https://example.com', 'example://'],
1361-
getStateFromPath: (path, options) => {
1361+
getStateFromPath(path, options) {
13621362
// Return a state object here
13631363
// You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native`
13641364
},

versioned_docs/version-8.x/configuring-links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ Example:
13471347
```js
13481348
const linking = {
13491349
prefixes: ['https://example.com', 'example://'],
1350-
getStateFromPath: (path, options) => {
1350+
getStateFromPath(path, options) {
13511351
// Return a state object here
13521352
// You can also reuse the default logic by importing `getStateFromPath` from `@react-navigation/native`
13531353
},

0 commit comments

Comments
 (0)