Skip to content

Commit 5f5c455

Browse files
committed
chore(docs): Added screenshots for headerTitleAlign and headerTitleStyle
1 parent 9090a32 commit 5f5c455

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed
Loading
Loading
Loading

versioned_docs/version-7.x/native-stack-navigator.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,10 @@ Note that if you render a custom element by passing a function, animations for t
428428
How to align the header title. Possible values:
429429

430430
- `left`
431+
<img src="/assets/7.x/native-stack/headerTitleAlign-left.png" width="500" alt="Header title align left"/>
432+
431433
- `center`
434+
<img src="/assets/7.x/native-stack/headerTitleAlign-center.png" width="500" alt="Header title align center"/>
432435

433436
Defaults to `left` on platforms other than iOS.
434437

@@ -442,6 +445,19 @@ Style object for header title. Supported properties:
442445
- `fontSize`
443446
- `fontWeight`
444447
- `color`
448+
449+
<img src="/assets/7.x/native-stack/headerTitleStyle.png" width="500" alt="Header title style"/>
450+
451+
Example:
452+
453+
```js
454+
headerTitleStyle: {
455+
color: 'blue',
456+
fontSize: 22,
457+
fontFamily: 'Georgia',
458+
fontWeight: 300,
459+
},
460+
```
445461

446462
#### `headerSearchBarOptions`
447463

0 commit comments

Comments
 (0)