Skip to content

Commit 19e36d8

Browse files
[autofix.ci] apply automated fixes
1 parent 45df63b commit 19e36d8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ Function which returns a React Element to display as the overlay for the card. M
236236
</video>
237237

238238
Example:
239+
239240
```js
240241
screenOptions={{
241242
cardOverlayEnabled: true,
@@ -263,39 +264,41 @@ This is shortcut option which configures several options to configure the style
263264
</video>
264265

265266
- `modal`: Use Modal animations. This changes a few things:
267+
266268
- Sets `headerMode` to `screen` for the screen unless specified otherwise.
267269
- Changes the screen animation to match the platform behavior for modals.
268270
<video playsInline autoPlay muted loop>
269271
<source src="/assets/7.x/stack/presentation-modal.mp4" />
270272
</video>
271273

272274
- `transparentModal`: Similar to `modal`. This changes following things:
275+
273276
- Sets `headerMode` to `screen` for the screen unless specified otherwise.
274277
- Sets background color of the screen to transparent, so previous screen is visible
275278
- Adjusts the `detachPreviousScreen` option so that the previous screen stays rendered.
276279
- Prevents the previous screen from animating from its last position.
277280
- Changes the screen animation to a vertical slide animation.
278-
281+
279282
See [Transparent modals](#transparent-modals) for more details on how to customize `transparentModal`.
280283

281284
<video playsInline autoPlay muted loop>
282285
<source src="/assets/7.x/stack/presentation-transparentModal.mp4" />
283286
</video>
284287

285-
286-
287288
#### `animationTypeForReplace`
288289

289290
The type of animation to use when this screen replaces another screen. It takes the following values:
290291

291292
- `push` - (default) The animation of a new screen being pushed will be used
292293
<video playsInline autoPlay muted loop>
293294
<source src="/assets/7.x/stack/animationTypeForReplace-push.mp4" />
295+
294296
</video>
295297

296298
- `pop` - The animation of a screen being popped will be used
297299
<video playsInline autoPlay muted loop>
298300
<source src="/assets/7.x/stack/animationTypeForReplace-pop.mp4" />
301+
299302
</video>
300303

301304
When `pop` is used, the `pop` animation is applied to the screen being replaced.
@@ -450,11 +453,13 @@ Specifies how the header should be rendered:
450453
- `float` - Render a single header that stays at the top and animates as screens are changed. This is default on iOS.
451454
<video playsInline autoPlay muted loop>
452455
<source src="/assets/7.x/stack/headerMode-float.mp4" />
456+
453457
</video>
454458

455459
- `screen` - Each screen has a header attached to it and the header fades in and out together with the screen. This is default on other platforms.
456460
<video playsInline autoPlay muted loop>
457461
<source src="/assets/7.x/stack/headerMode-screen.mp4" />
462+
458463
</video>
459464

460465
#### `headerShown`

0 commit comments

Comments
 (0)