Skip to content

Commit

Permalink
fix: remove unused itemContainerSelectedStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming committed Oct 12, 2024
1 parent 5cc676c commit 6ffa579
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PageHeaderView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ interface PageHeaderViewProps extends ScrollViewProps {
scrollContainerStyle?: object;
contentContainerStyle?: object;
containerStyle?: object;
itemContainerSelectedStyle?: object;
}

export default class PageHeaderView extends Component<PageHeaderViewProps> {
Expand All @@ -47,14 +46,13 @@ export default class PageHeaderView extends Component<PageHeaderViewProps> {
_animtedEnabledValue: new Animated.Value(1),
_containerRef: React.createRef<View>(),
}));
private itemContainerStyle = (index?: number) =>
private itemContainerStyle = () =>
({
height: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
...this.props.itemContainerStyle,
...(this.props.itemContainerSelectedStyle)
} as { flex?: number } & object);
private itemTitleNormalStyle: () => {
fontSize: number;
Expand Down

0 comments on commit 6ffa579

Please sign in to comment.