File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export function AnimatedTabBar<T extends PresetEnum>(
34
34
onTabLongPress,
35
35
style : overrideStyle ,
36
36
safeAreaInsets : overrideSafeAreaInsets ,
37
+ safeAreaBottomPaddingOrMargin = "padding" ,
37
38
...rest
38
39
} = props ;
39
40
@@ -136,7 +137,7 @@ export function AnimatedTabBar<T extends PresetEnum>(
136
137
( ) => ( {
137
138
// @ts -ignore
138
139
...overrideStyle ,
139
- paddingBottom : safeBottomArea ,
140
+ ... ( safeAreaBottomPaddingOrMargin === "margin" ? { paddingBottom : safeBottomArea } : { marginBottom : safeBottomArea } ) ,
140
141
} ) ,
141
142
[ overrideStyle , safeBottomArea ]
142
143
) ;
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ export type AnimatedTabBarProps<T extends PresetEnum = 'bubble'> = {
140
140
onTabPress ?: any ;
141
141
onTabLongPress ?: any ;
142
142
safeAreaInsets ?: Insets ;
143
+ safeAreaBottomPaddingOrMargin ?: "padding" | "margin"
143
144
} & Omit < TabBarConfigurableProps , 'onLongPress' > &
144
145
ExtractPresetConfig < T > ;
145
146
You can’t perform that action at this time.
0 commit comments