Skip to content

Commit

Permalink
chore: Added sample animation videos - Native Stack (#1350)
Browse files Browse the repository at this point in the history
* chore: Added sample videos for 'animation' option

* [autofix.ci] apply automated fixes

* chore: Trimmed animaiton sample videos

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
stanleyoos and autofix-ci[bot] authored Aug 1, 2024
1 parent 30afd1c commit bb66506
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
39 changes: 37 additions & 2 deletions versioned_docs/version-7.x/native-stack-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,19 +600,54 @@ Supported values:

How the screen should animate when pushed or popped.

Only supported on Android and iOS.

Supported values:

- `default`: use the platform default animation
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-default.mp4" />
</video>

- `fade`: fade screen in or out
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-fade.mp4" />
</video>

- `fade_from_bottom`: fade the new screen from bottom
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-fade-from-bottom.mp4" />
</video>

- `flip`: flip the screen, requires `presentation: "modal"` (iOS only)
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-flip.mp4" />
</video>

- `simple_push`: default animation, but without shadow and native header transition (iOS only, uses default animation on Android)
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-simple-push.mp4" />
</video>

- `slide_from_bottom`: slide in the new screen from bottom
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-slide-from-bottom.mp4" />
</video>

- `slide_from_right`: slide in the new screen from right (Android only, uses default animation on iOS)
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-slide-from-right.mp4" />
</video>

- `slide_from_left`: slide in the new screen from left (Android only, uses default animation on iOS)
- `none`: don't animate the screen
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-slide-from-left.mp4" />
</video>

Only supported on Android and iOS.
- `none`: don't animate the screen
<video playsInline autoPlay muted loop>
<source src="/assets/7.x/native-stack/native-stack-animation-none.mp4" />
</video>

#### `presentation`

Expand Down

0 comments on commit bb66506

Please sign in to comment.