Skip to content

Commit 966c56e

Browse files
committed
Update demo videos for navigators
1 parent a5b01d3 commit 966c56e

16 files changed

+19
-6
lines changed

src/css/custom.css

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ article video {
181181
width: 300px;
182182
height: auto;
183183
margin: 16px 0;
184+
vertical-align: top;
184185
}
185186

186187
article video:has(+ video) {

static/assets/7.x/bottom-tabs.mp4

193 KB
Binary file not shown.

static/assets/7.x/drawer-layout.mp4

45.9 KB
Binary file not shown.

static/assets/7.x/drawer.mp4

80.9 KB
Binary file not shown.
148 KB
Binary file not shown.
141 KB
Binary file not shown.
237 KB
Binary file not shown.

static/assets/7.x/stack-android.mp4

150 KB
Binary file not shown.

static/assets/7.x/stack-ios.mp4

261 KB
Binary file not shown.

versioned_docs/version-7.x/bottom-tab-navigator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label: Bottom Tabs
77
A simple tab bar on the bottom of the screen that lets you switch between different routes. Routes are lazily initialized -- their screen components are not mounted until they are first focused.
88

99
<video playsInline autoPlay muted loop>
10-
<source src="/assets/navigators/tabs/bottom-tabs-demo.mov" />
10+
<source src="/assets/7.x/bottom-tabs.mp4" />
1111
</video>
1212

1313
## Installation

versioned_docs/version-7.x/drawer-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label: Drawer Layout
77
A cross-platform Drawer component for React Native implemented using [`react-native-gesture-handler`](https://docs.swmansion.com/react-native-gesture-handler/) and [`react-native-reanimated`](https://docs.swmansion.com/react-native-reanimated/).
88

99
<video playsInline autoPlay muted loop>
10-
<source src="/assets/navigators/drawer/drawer.mov" />
10+
<source src="/assets/7.x/drawer-layout.mp4" />
1111
</video>
1212

1313
This package doesn't integrate with React Navigation. If you want to integrate the drawer layout with React Navigation's navigation system, e.g. want to show screens in the drawer and be able to navigate between them using `navigation.navigate` etc, use [Drawer Navigator](drawer-navigator.md) instead.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label: Drawer
77
Drawer Navigator renders a navigation drawer on the side of the screen which can be opened and closed via gestures.
88

99
<video playsInline autoPlay muted loop>
10-
<source src="/assets/navigators/drawer/drawer.mov" />
10+
<source src="/assets/7.x/drawer.mp4" />
1111
</video>
1212

1313
This wraps [`react-native-drawer-layout`](drawer-layout.md). If you want to use the drawer without React Navigation integration, use the library directly instead.

versioned_docs/version-7.x/material-top-tab-navigator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label: Material Top Tabs
77
A material-design themed tab bar on the top of the screen that lets you switch between different routes by tapping the tabs or swiping horizontally. Transitions are animated by default. Screen components for each route are mounted immediately.
88

99
<video playsInline autoPlay muted loop>
10-
<source src="/assets/navigators/tabs/material-top-tabs.mov" />
10+
<source src="/assets/7.x/material-top-tabs.mp4" />
1111
</video>
1212

1313
This wraps [`react-native-tab-view`](tab-view.md). If you want to use the tab view without React Navigation integration, use the library directly instead.

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

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ sidebar_label: Native Stack
66

77
Native Stack Navigator provides a way for your app to transition between screens where each new screen is placed on top of a stack.
88

9+
<video playsInline autoPlay muted loop>
10+
<source src="/assets/7.x/native-stack-android.mp4" />
11+
</video>
12+
13+
<video playsInline autoPlay muted loop>
14+
<source src="/assets/7.x/native-stack-ios.mp4" />
15+
</video>
16+
917
This navigator uses the native APIs `UINavigationController` on iOS and `Fragment` on Android so that navigation built with `createNativeStackNavigator` will behave exactly the same and have the same performance characteristics as apps built natively on top of those APIs. It also offers basic Web support using [`react-native-web`](https://github.com/necolas/react-native-web).
1018

1119
One thing to keep in mind is that while `@react-navigation/native-stack` offers native performance and exposes native features such as large title on iOS etc., it may not be as customizable as [`@react-navigation/stack`](stack-navigator.md) depending on your needs. So if you need more customization than what's possible in this navigator, consider using `@react-navigation/stack` instead - which is a more customizable JavaScript based implementation.

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ Stack Navigator provides a way for your app to transition between screens where
99
By default the stack navigator is configured to have the familiar iOS and Android look & feel: new screens slide in from the right on iOS, use OS default animation on Android. But the [animations can be customized](#animation-related-options) to match your needs.
1010

1111
<video playsInline autoPlay muted loop>
12-
<source src="/assets/navigators/stack/stack.mov" />
12+
<source src="/assets/7.x/stack-android.mp4" />
13+
</video>
14+
15+
<video playsInline autoPlay muted loop>
16+
<source src="/assets/7.x/stack-ios.mp4" />
1317
</video>
1418

1519
One thing to keep in mind is that while `@react-navigation/stack` is extremely customizable, it's implemented in JavaScript. While it runs animations and gestures using natively, the performance may not be as fast as a native implementation. This may not be an issue for a lot of apps, but if you're experiencing performance issues during navigation, consider using [`@react-navigation/native-stack`](native-stack-navigator.md) instead - which uses native navigation primitives.

versioned_sidebars/version-7.x-sidebars.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"Navigators": [
4545
"stack-navigator",
4646
"native-stack-navigator",
47-
"drawer-navigator",
4847
"bottom-tab-navigator",
48+
"drawer-navigator",
4949
"material-top-tab-navigator"
5050
],
5151
"Libraries": ["devtools", "elements", "tab-view", "drawer-layout"],

0 commit comments

Comments
 (0)