Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
feat: add indicatorContainerStyle (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocdn authored and osdnk committed Jul 7, 2019
1 parent 0855fc0 commit 1e94555
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type Props<T extends Route> = SceneRendererProps & {
labelStyle?: StyleProp<TextStyle>;
contentContainerStyle?: StyleProp<ViewStyle>;
style?: StyleProp<ViewStyle>;
indicatorContainerStyle?: StyleProp<ViewStyle>;
};

type State = {
Expand Down Expand Up @@ -226,6 +227,7 @@ export default class TabBar<T extends Route> extends React.Component<
indicatorStyle,
contentContainerStyle,
style,
indicatorContainerStyle,
} = this.props;
const { layout } = this.state;
const { routes } = navigationState;
Expand All @@ -252,6 +254,7 @@ export default class TabBar<T extends Route> extends React.Component<
: scrollEnabled
? { width: tabBarWidthPercent }
: null,
indicatorContainerStyle,
]}
>
{this.props.renderIndicator({
Expand Down

0 comments on commit 1e94555

Please sign in to comment.