Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: Updated photos for fundamentals - configure the header
  • Loading branch information
stanleyoos committed Aug 9, 2024
commit 4c24241d3ad64015e8d4854c9ae40f52e45a820c
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/7.x/fundamentals/headerTitle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
6 changes: 3 additions & 3 deletions versioned_docs/version-6.x/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function StackScreen() {
}
```

![Header title](/assets/headers/header-title.png)
<img src="/assets/7.x/fundamentals/headerTitle.png" width="500" alt="Header title" />

## Using params in the title

Expand Down Expand Up @@ -107,7 +107,7 @@ function StackScreen() {
}
```

![Custom header styles](/assets/headers/custom_headers.png)
<img src="/assets/7.x/fundamentals/adjustHeaderStyle.png" width="500" alt="Adjust header style" />

There are a couple of things to notice here:

Expand Down Expand Up @@ -175,7 +175,7 @@ function StackScreen() {
}
```

![Header custom title](/assets/headers/header-custom-title.png)
<img src="/assets/7.x/fundamentals/headerCustomComponent.png" width="500" alt="Header custom component" />

:::note

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-6.x/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function CreatePostScreen({ navigation, route }) {
```

<video playsInline autoPlay muted loop>
<source src="/assets/navigators/params-to-parent.mp4" />
<source src="/assets/7.x/fundamentals/navigatePassParamsToPrevScreen.mp4" />
</video>

Here, after you press "Done", the home screen's `route.params` will be updated to reflect the post text that you passed in `navigate`.
Expand Down
9 changes: 5 additions & 4 deletions versioned_docs/version-7.x/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function App() {
</TabItem>
</Tabs>

![Header title](/assets/headers/header-title.png)
<img src="/assets/7.x/fundamentals/headerTitle.png" width="500" alt="Header title" />

## Using params in the title

Expand Down Expand Up @@ -416,7 +416,7 @@ export default function App() {
</TabItem>
</Tabs>

![Custom header styles](/assets/headers/custom_headers.png)
<img src="/assets/7.x/fundamentals/adjustHeaderStyle.png" width="500" alt="Adjust header style" />

There are a couple of things to notice here:

Expand Down Expand Up @@ -671,12 +671,13 @@ export default function App() {
}
```

![Header custom title](/assets/headers/header-custom-title.png)

You might be wondering, why `headerTitle` when we provide a component and not `title`, like before? The reason is that `headerTitle` is a property that is specific to stack navigators, the `headerTitle` defaults to a `Text` component that displays the `title`.

</TabItem>
</Tabs>

<img src="/assets/7.x/fundamentals/headerCustomComponent.png" width="500" alt="Header custom component" />

:::note

You might be wondering, why `headerTitle` when we provide a component and not `title`, like before? The reason is that `headerTitle` is a property that is specific to headers, whereas `title` will be used for tab bars, drawers etc. as well. The `headerTitle` defaults to a `Text` component that displays the `title`.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-7.x/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function App() {
```

<video playsInline autoPlay muted loop>
<source src="/assets/7.x/fundamentals/navigatePassParams.mp4" />
<source src="/assets/7.x/fundamentals/navigatePassParamsToPrevScreen.mp4" />
</video>

## Initial params
Expand Down