Skip to content

Commit 542e8d6

Browse files
committed
Update presentation videos
1 parent ff5a99a commit 542e8d6

File tree

9 files changed

+98
-74
lines changed

9 files changed

+98
-74
lines changed

src/css/custom.css

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,26 +1197,34 @@ code {
11971197
& > img {
11981198
display: block;
11991199
margin: 0;
1200-
border: 1px solid var(--ifm-toc-border-color);
12011200
border-radius: var(--ifm-global-radius);
12021201
width: 100%;
12031202
height: auto;
12041203
}
12051204

1206-
& > p {
1207-
font-weight: 700;
1208-
margin: calc(var(--ifm-spacing-vertical) / 2) 0 var(--ifm-spacing-vertical);
1205+
& > .video-player {
1206+
margin: 0;
1207+
border-radius: var(--ifm-global-radius) !important;
1208+
overflow: hidden;
12091209

1210-
& > a {
1211-
color: inherit;
1212-
text-decoration: none;
1210+
video {
1211+
display: block;
1212+
width: 100%;
1213+
height: auto;
12131214
}
1215+
}
12141216

1215-
& > a::after {
1216-
content: '';
1217-
position: absolute;
1218-
inset: 0;
1219-
}
1217+
& > p:first-of-type {
1218+
font-weight: 700;
1219+
margin: calc(var(--ifm-spacing-vertical) / 2) 0 0;
1220+
}
1221+
1222+
& > p + p {
1223+
margin: calc(var(--ifm-spacing-vertical) / 4) 0 0;
1224+
}
1225+
1226+
& > p:last-of-type {
1227+
margin-bottom: var(--ifm-spacing-vertical);
12201228
}
12211229
}
12221230
}
11 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-7.86 KB
Binary file not shown.
Binary file not shown.

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

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -295,43 +295,51 @@ Only supported on Android and iOS.
295295

296296
Supported values:
297297

298-
- `card`: the new screen will be pushed onto a stack, which means the default animation will be slide from the side on iOS, the animation on Android will vary depending on the OS version and theme.
299-
<video playsInline autoPlay muted loop>
300-
<source src="/assets/navigators/native-stack/presentation-card.mp4" />
301-
</video>
298+
<div className="options-grid">
302299

303-
- `modal`: the new screen will be presented modally. this also allows for a nested stack to be rendered inside the screen.
304-
<video playsInline autoPlay muted loop>
305-
<source src="/assets/navigators/native-stack/presentation-modal.mp4" />
306-
</video>
300+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-card.mp4" /></video>
307301

308-
- `transparentModal`: the new screen will be presented modally, but in addition, the previous screen will stay so that the content below can still be seen if the screen has translucent background.
309-
<video playsInline autoPlay muted loop>
310-
<source src="/assets/navigators/native-stack/presentation-transparentModal.mp4" />
311-
</video>
302+
`card`
312303

313-
- `containedModal`: will use "UIModalPresentationCurrentContext" modal style on iOS and will fallback to "modal" on Android.
314-
<video playsInline autoPlay muted loop>
315-
<source src="/assets/navigators/native-stack/presentation-containedModal.mp4" />
316-
</video>
304+
The new screen will be pushed onto a stack, which means the default animation will be slide from the side on iOS, the animation on Android will vary depending on the OS version and theme.
317305

318-
- `containedTransparentModal`: will use "UIModalPresentationOverCurrentContext" modal style on iOS and will fallback to "transparentModal" on Android.
319-
<video playsInline autoPlay muted loop>
320-
<source src="/assets/navigators/native-stack/presentation-containedTransparentModal.mp4" />
321-
</video>
306+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-modal.mp4" /></video>
322307

323-
- `fullScreenModal`: will use "UIModalPresentationFullScreen" modal style on iOS and will fallback to "modal" on Android. A screen using this presentation style can't be dismissed by gesture.
324-
<video playsInline autoPlay muted loop>
325-
<source src="/assets/navigators/native-stack/presentation-fullScreenModal.mp4" />
326-
</video>
308+
`modal`
327309

328-
- `formSheet`: will use "BottomSheetBehavior" on Android and "UIModalPresentationFormSheet" modal style on iOS. See [Form Sheets](#form-sheets) for a detailed guide.
329-
<video playsInline autoPlay muted loop>
330-
<source src="/assets/navigators/native-stack/presentation-formsheet-android.mp4" />
331-
</video>
332-
<video playsInline autoPlay muted loop>
333-
<source src="/assets/navigators/native-stack/presentation-formsheet-ios.mp4" />
334-
</video>
310+
The new screen will be presented modally. This also allows for a nested stack to be rendered inside the screen.
311+
312+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-contained-modal.mp4" /></video>
313+
314+
`containedModal`
315+
316+
Uses "UIModalPresentationCurrentContext" modal style on iOS and falls back to "modal" on Android.
317+
318+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-fullscreen-modal.mp4" /></video>
319+
320+
`fullScreenModal`
321+
322+
Uses "UIModalPresentationFullScreen" modal style on iOS and falls back to "modal" on Android. A screen using this presentation style can't be dismissed by gesture.
323+
324+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-transparent-modal.mp4" /></video>
325+
326+
`transparentModal`
327+
328+
The new screen will be presented modally, but in addition, the previous screen will stay so that the content below can still be seen if the screen has translucent background.
329+
330+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-contained-transparent-modal.mp4" /></video>
331+
332+
`containedTransparentModal`
333+
334+
Uses "UIModalPresentationOverCurrentContext" modal style on iOS and falls back to "transparentModal" on Android.
335+
336+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-formsheet-ios.mp4" /></video>
337+
338+
`formSheet`
339+
340+
Uses "BottomSheetBehavior" on Android and "UIModalPresentationFormSheet" modal style on iOS. See [Form Sheets](#form-sheets) for a detailed guide.
341+
342+
</div>
335343

336344
#### `orientation`
337345

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

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -313,43 +313,51 @@ Only supported on Android and iOS.
313313

314314
Supported values:
315315

316-
- `card`: the new screen will be pushed onto a stack, which means the default animation will be slide from the side on iOS, the animation on Android will vary depending on the OS version and theme.
317-
<video playsInline autoPlay muted loop>
318-
<source src="/assets/navigators/native-stack/presentation-card.mp4" />
319-
</video>
316+
<div className="options-grid">
320317

321-
- `modal`: the new screen will be presented modally. this also allows for a nested stack to be rendered inside the screen.
322-
<video playsInline autoPlay muted loop>
323-
<source src="/assets/navigators/native-stack/presentation-modal.mp4" />
324-
</video>
318+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-card.mp4" /></video>
325319

326-
- `transparentModal`: the new screen will be presented modally, but in addition, the previous screen will stay so that the content below can still be seen if the screen has translucent background.
327-
<video playsInline autoPlay muted loop>
328-
<source src="/assets/navigators/native-stack/presentation-transparentModal.mp4" />
329-
</video>
320+
`card`
330321

331-
- `containedModal`: will use "UIModalPresentationCurrentContext" modal style on iOS and will fallback to "modal" on Android.
332-
<video playsInline autoPlay muted loop>
333-
<source src="/assets/navigators/native-stack/presentation-containedModal.mp4" />
334-
</video>
322+
The new screen will be pushed onto a stack, which means the default animation will be slide from the side on iOS, the animation on Android will vary depending on the OS version and theme.
335323

336-
- `containedTransparentModal`: will use "UIModalPresentationOverCurrentContext" modal style on iOS and will fallback to "transparentModal" on Android.
337-
<video playsInline autoPlay muted loop>
338-
<source src="/assets/navigators/native-stack/presentation-containedTransparentModal.mp4" />
339-
</video>
324+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-modal.mp4" /></video>
340325

341-
- `fullScreenModal`: will use "UIModalPresentationFullScreen" modal style on iOS and will fallback to "modal" on Android. A screen using this presentation style can't be dismissed by gesture.
342-
<video playsInline autoPlay muted loop>
343-
<source src="/assets/navigators/native-stack/presentation-fullScreenModal.mp4" />
344-
</video>
326+
`modal`
345327

346-
- `formSheet`: will use "BottomSheetBehavior" on Android and "UIModalPresentationFormSheet" modal style on iOS. See [Form Sheets](#form-sheets) for a detailed guide.
347-
<video playsInline autoPlay muted loop>
348-
<source src="/assets/navigators/native-stack/presentation-formsheet-android.mp4" />
349-
</video>
350-
<video playsInline autoPlay muted loop>
351-
<source src="/assets/navigators/native-stack/presentation-formsheet-ios.mp4" />
352-
</video>
328+
The new screen will be presented modally. This also allows for a nested stack to be rendered inside the screen.
329+
330+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-contained-modal.mp4" /></video>
331+
332+
`containedModal`
333+
334+
Uses "UIModalPresentationCurrentContext" modal style on iOS and falls back to "modal" on Android.
335+
336+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-fullscreen-modal.mp4" /></video>
337+
338+
`fullScreenModal`
339+
340+
Uses "UIModalPresentationFullScreen" modal style on iOS and falls back to "modal" on Android. A screen using this presentation style can't be dismissed by gesture.
341+
342+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-transparent-modal.mp4" /></video>
343+
344+
`transparentModal`
345+
346+
The new screen will be presented modally, but in addition, the previous screen will stay so that the content below can still be seen if the screen has translucent background.
347+
348+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-contained-transparent-modal.mp4" /></video>
349+
350+
`containedTransparentModal`
351+
352+
Uses "UIModalPresentationOverCurrentContext" modal style on iOS and falls back to "transparentModal" on Android.
353+
354+
- <video playsInline autoPlay muted loop><source src="/assets/navigators/native-stack/presentation-formsheet-ios.mp4" /></video>
355+
356+
`formSheet`
357+
358+
Uses "BottomSheetBehavior" on Android and "UIModalPresentationFormSheet" modal style on iOS. See [Form Sheets](#form-sheets) for a detailed guide.
359+
360+
</div>
353361

354362
#### `orientation`
355363

0 commit comments

Comments
 (0)