Skip to content

Commit ee6ddc2

Browse files
committed
Fix linking docs
1 parent 740fbcf commit ee6ddc2

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

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

+12-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In this guide, we will configure React Navigation to handle external links. This
1313
To handle a link, you need to translate it to a valid navigation state and vice versa. For example, the path `/rooms/chat?user=jane` may be translated to a state object like this:
1414

1515
```js
16-
{
16+
const state = {
1717
routes: [
1818
{
1919
name: 'rooms',
@@ -451,7 +451,7 @@ Since URLs are strings, any params you have for routes are also converted to str
451451
For example, say you have a state like following:
452452

453453
```js
454-
{
454+
const state = {
455455
routes: [
456456
{
457457
name: 'Chat',
@@ -474,7 +474,7 @@ const config = {
474474
When parsing this path, you'll get the following state:
475475

476476
```js
477-
{
477+
const state = {
478478
routes: [
479479
{
480480
name: 'Chat',
@@ -667,14 +667,16 @@ Here, the `HomeStack` property contains a config object. The config can go as de
667667
What if you wanted a specific screen to used as the initial screen in the navigator? For example, if you had a URL that would open `Home` screen, you would like to be able to navigate to `Profile` from it by using navigation's `navigation.goBack()` method. It is possible by defining `initialRouteName` for a navigator. It would look like this:
668668

669669
```js
670-
config = {
671-
HomeStack: {
672-
initialRouteName: 'Profile',
673-
screens: {
674-
Home: 'home',
675-
Profile: 'user',
670+
const config = {
671+
screens: {
672+
HomeStack: {
673+
initialRouteName: 'Profile',
674+
screens: {
675+
Home: 'home',
676+
Profile: 'user',
677+
},
676678
},
679+
Settings: 'settings',
677680
},
678-
Settings: 'settings',
679681
};
680682
```

versioned_docs/version-5.x/devtools.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: devtools
3-
title: devtools
3+
title: Developer tools
44
sidebar_label: Developer tools
55
---
66

0 commit comments

Comments
 (0)