Skip to content

Commit 4c24241

Browse files
committed
docs: Updated photos for fundamentals - configure the header
1 parent d4cf566 commit 4c24241

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed
Loading
Loading
26.2 KB
Loading
Binary file not shown.

versioned_docs/version-6.x/headers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function StackScreen() {
2626
}
2727
```
2828

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

3131
## Using params in the title
3232

@@ -107,7 +107,7 @@ function StackScreen() {
107107
}
108108
```
109109

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

112112
There are a couple of things to notice here:
113113

@@ -175,7 +175,7 @@ function StackScreen() {
175175
}
176176
```
177177

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

180180
:::note
181181

versioned_docs/version-6.x/params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function CreatePostScreen({ navigation, route }) {
159159
```
160160
161161
<video playsInline autoPlay muted loop>
162-
<source src="/assets/navigators/params-to-parent.mp4" />
162+
<source src="/assets/7.x/fundamentals/navigatePassParamsToPrevScreen.mp4" />
163163
</video>
164164
165165
Here, after you press "Done", the home screen's `route.params` will be updated to reflect the post text that you passed in `navigate`.

versioned_docs/version-7.x/headers.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function App() {
101101
</TabItem>
102102
</Tabs>
103103

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

106106
## Using params in the title
107107

@@ -416,7 +416,7 @@ export default function App() {
416416
</TabItem>
417417
</Tabs>
418418

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

421421
There are a couple of things to notice here:
422422

@@ -671,12 +671,13 @@ export default function App() {
671671
}
672672
```
673673

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

676-
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`.
675+
677676
</TabItem>
678677
</Tabs>
679678

679+
<img src="/assets/7.x/fundamentals/headerCustomComponent.png" width="500" alt="Header custom component" />
680+
680681
:::note
681682

682683
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`.

versioned_docs/version-7.x/params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function App() {
102102
```
103103

104104
<video playsInline autoPlay muted loop>
105-
<source src="/assets/7.x/fundamentals/navigatePassParams.mp4" />
105+
<source src="/assets/7.x/fundamentals/navigatePassParamsToPrevScreen.mp4" />
106106
</video>
107107

108108
## Initial params

0 commit comments

Comments
 (0)