Skip to content

Commit

Permalink
Separate styles for welcome video navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 1, 2024
1 parent b886fea commit 671d923
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function WelcomeVideoModalNavigator() {
return (
<NoDropZone>
<Overlay />
<View style={styles.onboardingNavigatorOuterView}>
<View style={styles.welcomeVideoNavigatorOuterView}>
<View style={styles.WelcomeVideoNavigatorInnerView(shouldUseNarrowLayout)}>
<Stack.Navigator screenOptions={WelcomeVideoModalNavigatorScreenOptions()}>
<Stack.Screen
Expand Down
8 changes: 7 additions & 1 deletion src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,11 @@ const styles = (theme: ThemeColors) =>
alignItems: 'center',
},

welcomeVideoNavigatorOuterView: {
flex: 1,
justifyContent: 'flex-end',
},

OnboardingNavigatorInnerView: (shouldUseNarrowLayout: boolean) =>
({
width: shouldUseNarrowLayout ? 500 : '100%',
Expand All @@ -1539,7 +1544,8 @@ const styles = (theme: ThemeColors) =>
WelcomeVideoNavigatorInnerView: (shouldUseNarrowLayout: boolean) =>
({
width: shouldUseNarrowLayout ? 500 : '100%',
height: shouldUseNarrowLayout ? 500 : '100%',
height: 500,
backgroundColor: 'red',
maxHeight: '100%',
borderRadius: shouldUseNarrowLayout ? 16 : 0,
overflow: 'hidden',
Expand Down

0 comments on commit 671d923

Please sign in to comment.