Skip to content

Commit 47b80c2

Browse files
[autofix.ci] apply automated fixes
1 parent 1b3439e commit 47b80c2

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,21 @@ Supported properties:
211211
Only supported on iOS.
212212

213213
<video playsInline autoPlay muted loop style={{ width: "500px" }}>
214+
214215
<source src="/assets/7.x/native-stack/headerLargeStyle.mp4" />
215216
</video>
216217

217218
#### `headerLargeTitle`
218219

219-
Whether to enable header with large title which collapses to regular header on scroll.
220+
Whether to enable header with large title which collapses to regular header on scroll.
220221
Defaults to `false`.
221222

222223
For large title to collapse on scroll, the content of the screen should be wrapped in a scrollable view such as `ScrollView` or `FlatList`. If the scrollable area doesn't fill the screen, the large title won't collapse on scroll. You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
223224

224225
Only supported on iOS.
225226

226227
<video playsInline autoPlay muted loop style={{ width: "500px" }}>
228+
227229
<source src="/assets/7.x/native-stack/headerLargeTitle.mp4" />
228230
</video>
229231

@@ -266,6 +268,7 @@ Style object for header. Supported properties:
266268
- `backgroundColor`
267269

268270
<video playsInline autoPlay muted loop style={{ width: "500px" }}>
271+
269272
<source src="/assets/7.x/native-stack/headerStyle.mp4" />
270273
</video>
271274

@@ -336,7 +339,7 @@ Function which returns a React Element to render as the background of the header
336339

337340
<img src="/assets/7.x/native-stack/headerBackground.png" width="500" alt="Header background" />
338341

339-
Example:
342+
Example:
340343

341344
```js
342345
headerBackground: () => (
@@ -648,13 +651,22 @@ Whether you can use gestures to dismiss this screen. Defaults to `true`. Only su
648651

649652
#### `animationTypeForReplace`
650653

651-
The type of animation to use when this screen replaces another screen. Defaults to `pop`.
654+
The type of animation to use when this screen replaces another screen. Defaults to `push`.
652655

653656
Supported values:
654657

655658
- `push`: the new screen will perform push animation.
659+
660+
<video playsInline autoPlay muted loop>
661+
<source src="/assets/7.x/native-stack/animationTypeForReplace-push.mp4" />
662+
</video>
663+
656664
- `pop`: the new screen will perform pop animation.
657665

666+
<video playsInline autoPlay muted loop>
667+
<source src="/assets/7.x/native-stack/animationTypeForReplace-pop.mp4" />
668+
</video>
669+
658670
#### `animation`
659671

660672
How the screen should animate when pushed or popped.

0 commit comments

Comments
 (0)