Skip to content

Commit

Permalink
Improve explanation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 7, 2024
1 parent ef67f91 commit b53a3d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/OnboardingWelcomeVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ function OnboardingWelcomeVideo() {
return (
<View
style={[
styles.w100,
// Prevent layout jumps by reserving height
// for the video until it loads. Also, when
// welcomeVideoStatus === 'animation' it will
// set as much height as the video would.
{width: '100%', aspectRatio: VIDEO_ASPECT_RATIO},
// set the same aspect ratio as the video would.
{aspectRatio: VIDEO_ASPECT_RATIO},
]}
>
{welcomeVideoStatus === 'video' ? (
Expand Down

0 comments on commit b53a3d8

Please sign in to comment.