Skip to content

docs: Native Stack - animationTypeForReplace #1351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Binary file not shown.
Binary file not shown.
11 changes: 10 additions & 1 deletion versioned_docs/version-7.x/native-stack-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,22 @@ Whether you can use gestures to dismiss this screen. Defaults to `true`. Only su

#### `animationTypeForReplace`

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

Supported values:

- `push`: the new screen will perform push animation.

<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/animationTypeForReplace-push.mp4" />
</video>

- `pop`: the new screen will perform pop animation.

<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/animationTypeForReplace-pop.mp4" />
</video>

#### `animation`

How the screen should animate when pushed or popped.
Expand Down
Loading