add transparency prop to tab bar (#9336)

This commit is contained in:
Samuel Newman
2025-11-17 14:59:56 +02:00
committed by GitHub
parent a35a81a508
commit d464cde412
4 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -30,6 +30,7 @@ export interface TabBarProps {
onPressSelected?: (index: number) => void
dragProgress: SharedValue<number>
dragState: SharedValue<'idle' | 'dragging' | 'settling'>
transparent?: boolean
}
const ITEM_PADDING = 10
@@ -46,6 +47,7 @@ export function TabBar({
onPressSelected,
dragProgress,
dragState,
transparent,
}: TabBarProps) {
const t = useTheme()
const scrollElRef = useAnimatedRef<ScrollView>()
@@ -313,7 +315,7 @@ export function TabBar({
return (
<View
testID={testID}
style={[t.atoms.bg, a.flex_row]}
style={[!transparent && t.atoms.bg, a.flex_row]}
accessibilityRole="tablist">
<BlockDrawerGesture>
<ScrollView