Skip to content

Commit

Permalink
feat: add activeIndicatorStyle to BottomNavigation (#4144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev-Shapiro authored Jan 8, 2024
1 parent 3475624 commit bdc2cbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/BottomNavigation/BottomNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export type Props<Route extends BaseRoute> = {
*/
labelMaxFontSizeMultiplier?: number;
style?: StyleProp<ViewStyle>;
activeIndicatorStyle?: StyleProp<ViewStyle>;
/**
* @optional
*/
Expand Down Expand Up @@ -335,6 +336,7 @@ const BottomNavigation = <Route extends BaseRoute>({
barStyle,
labeled = true,
style,
activeIndicatorStyle,
sceneAnimationEnabled = false,
sceneAnimationType = 'opacity',
sceneAnimationEasing,
Expand Down Expand Up @@ -582,6 +584,7 @@ const BottomNavigation = <Route extends BaseRoute>({
inactiveColor={inactiveColor}
keyboardHidesNavigationBar={keyboardHidesNavigationBar}
style={barStyle}
activeIndicatorStyle={activeIndicatorStyle}
labeled={labeled}
animationEasing={sceneAnimationEasing}
onTabPress={handleTabPress}
Expand Down
3 changes: 3 additions & 0 deletions src/components/BottomNavigation/BottomNavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export type Props<Route extends BaseRoute> = {
*/
labelMaxFontSizeMultiplier?: number;
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
activeIndicatorStyle?: StyleProp<ViewStyle>;
/**
* @optional
*/
Expand Down Expand Up @@ -369,6 +370,7 @@ const BottomNavigationBar = <Route extends BaseRoute>({
inactiveColor,
keyboardHidesNavigationBar = Platform.OS === 'android',
style,
activeIndicatorStyle,
labeled = true,
animationEasing,
onTabPress,
Expand Down Expand Up @@ -790,6 +792,7 @@ const BottomNavigationBar = <Route extends BaseRoute>({
],
backgroundColor: theme.colors.secondaryContainer,
},
activeIndicatorStyle,
]}
/>
)}
Expand Down

0 comments on commit bdc2cbc

Please sign in to comment.