Skip to content

Commit 3bf8ead

Browse files
authored
feat: add gifs to navigators (#663)
Added gifs to navigators in API Reference
1 parent 369bb3e commit 3bf8ead

15 files changed

+35
-3
lines changed
-1.83 MB
Binary file not shown.
163 KB
Binary file not shown.
Binary file not shown.
439 KB
Binary file not shown.
1.36 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

website/versioned_docs/version-5.x/bottom-tab-navigator.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_label: createBottomTabNavigator
55
original_id: bottom-tab-navigator
66
---
77

8+
<div style="display: flex; justify-content: center">
9+
<video width="60%" playsinline autoplay muted loop>
10+
<source src="/docs/assets/navigators/tabs/bottom-tabs-demo.mov">
11+
<video>
12+
</div>
13+
814
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.
915

1016
To use this navigator, ensure that you have [`@react-navigation/native` and its dependencies (follow this guide)](getting-started.html), then install [`@react-navigation/bottom-tabs`](https://github.com/react-navigation/react-navigation/tree/master/packages/bottom-tabs):

website/versioned_docs/version-5.x/drawer-based-navigation.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ sidebar_label: Drawer navigation
55
original_id: drawer-based-navigation
66
---
77

8-
![Using drawer navigator](/docs/assets/navigators/drawer/drawer-demo.gif)
8+
<div style="display: flex; justify-content: center">
9+
<video width="60%" playsinline autoplay muted loop>
10+
<source src="/docs/assets/navigators/drawer/drawer.mov">
11+
<video>
12+
</div>
913

1014
Common pattern in navigation is to use drawer from left (sometimes right) side for navigating between screens.
1115

website/versioned_docs/version-5.x/drawer-navigator.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_label: createDrawerNavigator
55
original_id: drawer-navigator
66
---
77

8+
<div style="display: flex; justify-content: center">
9+
<video width="60%" playsinline autoplay muted loop>
10+
<source src="/docs/assets/navigators/drawer/drawer.mov">
11+
<video>
12+
</div>
13+
814
Component that renders a navigation drawer which can be opened and closed via gestures.
915

1016
To use this navigator, ensure that you have [`@react-navigation/native` and its dependencies (follow this guide)](getting-started.html), then install [`@react-navigation/drawer`](https://github.com/react-navigation/react-navigation/tree/master/packages/drawer):

website/versioned_docs/version-5.x/material-bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ original_id: material-bottom-tab-navigator
77

88
A material-design themed tab bar on the bottom of the screen that lets you switch between different routes with animation. Routes are lazily initialized - their screen components are not mounted until they are first focused.
99

10-
<img src="/docs/assets/navigators/bottom-navigation.gif" style="width: 420px; max-width: 100%">
10+
<img src="/docs/assets/navigators/tabs/material-bottom-tabs.gif" style="width: 420px; max-width: 100%">
1111

1212
This wraps the [`BottomNavigation`](https://callstack.github.io/react-native-paper/bottom-navigation.html) component from [`react-native-paper`](https://reactnativepaper.com). If you [configure the Babel plugin](https://callstack.github.io/react-native-paper/getting-started.html), it won't include the whole `react-native-paper` library in your bundle.
1313

website/versioned_docs/version-5.x/material-top-tab-navigator.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_label: createMaterialTopTabNavigator
55
original_id: material-top-tab-navigator
66
---
77

8+
<div style="display: flex; justify-content: center">
9+
<video width="60%" playsinline autoplay muted loop>
10+
<source src="/docs/assets/navigators/tabs/material-top-tabs.mov">
11+
<video>
12+
</div>
13+
814
A material-design themed tab bar on the top of the screen that lets you switch between different routes by tapping the route or swiping horizontally. Transitions are animated by default. Screen components for each route are mounted immediately.
915

1016
This wraps [`react-native-tab-view`](https://github.com/react-native-community/react-native-tab-view).

website/versioned_docs/version-5.x/navigating.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ Let's suppose that we actually _want_ to add another details screen. This is pre
9292
/>
9393
```
9494

95-
![Stack navigation pushing routes to stack](/docs/assets/navigators/stack/push_stack_nav-demo.gif)
95+
<div style="display: flex; justify-content: center">
96+
<video width="60%" playsinline autoplay muted loop>
97+
<source src="/docs/assets/navigators/stack/stack-push.mov">
98+
<video>
99+
</div>
96100

97101
Each time you call `push` we add a new route to the navigation stack. When you call `navigate` it first tries to find an existing route with that name, and only pushes a new route if there isn't yet one on the stack.
98102

website/versioned_docs/version-5.x/stack-navigator.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_label: createStackNavigator
55
original_id: stack-navigator
66
---
77

8+
<div style="display: flex; justify-content: center">
9+
<video width="60%" playsinline autoplay muted loop>
10+
<source src="/docs/assets/navigators/stack/stack.mov">
11+
<video>
12+
</div>
13+
814
Provides a way for your app to transition between screens where each new screen is placed on top of a stack.
915

1016
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, fade in from the bottom on Android. On iOS the stack navigator can also be configured to a modal style where screens slide in from the bottom.

0 commit comments

Comments
 (0)