Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Dec 26, 2024
1 parent 4e134b1 commit 6900d24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions packages/components/src/navigator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ const MyNavigation = () => (
<Navigator initialPath="/">
<Navigator.Screen path="/">
<p>This is the home screen.</p>
<Navigator.Button path="/child">
<Navigator.Button path="/child" __next40pxDefaultSize>
Navigate to child screen.
</Navigator.Button>
</Navigator.Screen>
<Navigator.Screen path="/child">
<p>This is the child screen.</p>
<Navigator.BackButton>Go back</Navigator.BackButton>
<Navigator.BackButton __next40pxDefaultSize>
Go back
</Navigator.BackButton>
</Navigator.Screen>
</Navigator>
);
Expand Down
16 changes: 8 additions & 8 deletions packages/components/src/navigator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export { useNavigator } from './use-navigator';
* <Navigator initialPath="/">
* <Navigator.Screen path="/">
* <p>This is the home screen.</p>
* <Navigator.Button path="/child">
* <Navigator.Button path="/child" __next40pxDefaultSize>
* Navigate to child screen.
* </Navigator.Button>
* </Navigator.Screen>
*
* <Navigator.Screen path="/child">
* <p>This is the child screen.</p>
* <Navigator.BackButton>
* <Navigator.BackButton __next40pxDefaultSize>
* Go back
* </Navigator.BackButton>
* </Navigator.Screen>
Expand All @@ -48,14 +48,14 @@ export const Navigator = Object.assign( TopLevelNavigator, {
* <Navigator initialPath="/">
* <Navigator.Screen path="/">
* <p>This is the home screen.</p>
* <Navigator.Button path="/child">
* <Navigator.Button path="/child" __next40pxDefaultSize>
* Navigate to child screen.
* </Navigator.Button>
* </Navigator.Screen>
*
* <Navigator.Screen path="/child">
* <p>This is the child screen.</p>
* <Navigator.BackButton>
* <Navigator.BackButton __next40pxDefaultSize>
* Go back
* </Navigator.BackButton>
* </Navigator.Screen>
Expand All @@ -79,14 +79,14 @@ export const Navigator = Object.assign( TopLevelNavigator, {
* <Navigator initialPath="/">
* <Navigator.Screen path="/">
* <p>This is the home screen.</p>
* <Navigator.Button path="/child">
* <Navigator.Button path="/child" __next40pxDefaultSize>
* Navigate to child screen.
* </Navigator.Button>
* </Navigator.Screen>
*
* <Navigator.Screen path="/child">
* <p>This is the child screen.</p>
* <Navigator.BackButton>
* <Navigator.BackButton __next40pxDefaultSize>
* Go back
* </Navigator.BackButton>
* </Navigator.Screen>
Expand All @@ -110,14 +110,14 @@ export const Navigator = Object.assign( TopLevelNavigator, {
* <Navigator initialPath="/">
* <Navigator.Screen path="/">
* <p>This is the home screen.</p>
* <Navigator.Button path="/child">
* <Navigator.Button path="/child" __next40pxDefaultSize>
* Navigate to child screen.
* </Navigator.Button>
* </Navigator.Screen>
*
* <Navigator.Screen path="/child">
* <p>This is the child screen.</p>
* <Navigator.BackButton>
* <Navigator.BackButton __next40pxDefaultSize>
* Go back
* </Navigator.BackButton>
* </Navigator.Screen>
Expand Down

0 comments on commit 6900d24

Please sign in to comment.