Skip to content

Commit

Permalink
Add emphasis on the need for path to start with /
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jul 11, 2024
1 parent 1a6ecf2 commit 05b5131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const MyNavigation = () => (

**Important note**

`Navigator` assumes that screens are organized hierarchically according to their `path`, which should follow a URL-like scheme where each path segment is separated by the `/` character.
`Navigator` assumes that screens are organized hierarchically according to their `path`, which should follow a URL-like scheme where each path segment starts with and is separated by the `/` character.

`Navigator` will treat "back" navigations as going to the parent screen — it is therefore responsibility of the consumer of the component to create the correct screen hierarchy.

Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/navigator/navigator-screen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The component accepts the following props:

### `path`: `string`

The screen's path, matched against the current path stored in the navigator.
The screen"s path, matched against the current path stored in the navigator.

`Navigator` assumes that screens are organized hierarchically according to their `path`, which should follow a URL-like scheme where each path segment is separated by the `/` character.
`Navigator` assumes that screens are organized hierarchically according to their `path`, which should follow a URL-like scheme where each path segment starts with and is separated by the `/` character.

`Navigator` will treat "back" navigations as going to the parent screen — it is therefore responsibility of the consumer of the component to create the correct screen hierarchy.

Expand Down

0 comments on commit 05b5131

Please sign in to comment.