Skip to content

Commit d1393ff

Browse files
chore: Native Stack doc's - animationTypeForReplace (#1351)
* chore: Added sample videos for 'animationTypeForReplace' option * chore: Uploaded longer videos * chore: Added new separation line * [autofix.ci] apply automated fixes * chore: Updated pop and push videos * chore: code cleaning * chore: code cleaning * chore: test --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent bb66506 commit d1393ff

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
Binary file not shown.
Binary file not shown.

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,22 @@ Whether you can use gestures to dismiss this screen. Defaults to `true`. Only su
589589

590590
#### `animationTypeForReplace`
591591

592-
The type of animation to use when this screen replaces another screen. Defaults to `pop`.
592+
The type of animation to use when this screen replaces another screen. Defaults to `push`.
593593

594594
Supported values:
595595

596596
- `push`: the new screen will perform push animation.
597+
598+
<video playsInline autoPlay muted loop>
599+
<source src="/assets/7.x/native-stack/animationTypeForReplace-push.mp4" />
600+
</video>
601+
597602
- `pop`: the new screen will perform pop animation.
598603

604+
<video playsInline autoPlay muted loop>
605+
<source src="/assets/7.x/native-stack/animationTypeForReplace-pop.mp4" />
606+
</video>
607+
599608
#### `animation`
600609

601610
How the screen should animate when pushed or popped.

0 commit comments

Comments
 (0)