Skip to content

Commit

Permalink
create container for bottomContent
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Feb 3, 2025
1 parent 007b1ff commit 71a853c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ScreenWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ function ScreenWrapper(
<ImportedStateIndicator />
</>
)}
{bottomContent}
</ScreenWrapperStatusContext.Provider>
</PickerAvoidingView>
</KeyboardAvoidingView>
<View style={styles.bottomContentContainer(shouldUseNarrowLayout, paddingBottom)}>{bottomContent}</View>
</View>
</View>
</FocusTrapForScreens>
Expand Down
7 changes: 7 additions & 0 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,13 @@ const styles = (theme: ThemeColors) =>
backgroundColor: theme.appBG,
},

bottomContentContainer: (shouldUseNarrowLayout: boolean, bottomSafeAreaOffset: number) => ({
position: Platform.OS === 'web' ? 'fixed' : 'absolute',
width: shouldUseNarrowLayout ? '100%' : variables.sideBarWidth,
paddingBottom: bottomSafeAreaOffset,
bottom: 0,
}),

bottomTabBarItem: {
height: '100%',
display: 'flex',
Expand Down

0 comments on commit 71a853c

Please sign in to comment.