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

Commit

Permalink
fix: fix TabBarIndicator width props type (#1083)
Browse files Browse the repository at this point in the history
Following the implementation https://github.com/satya164/react-native-tab-view/blob/master/src/TabBarIndicator.tsx#L123
width can be a string or a number.
  • Loading branch information
kimak committed Oct 7, 2020
1 parent bcee28c commit 350f783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TabBarIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type GetTabWidth = (index: number) => number;

export type Props<T extends Route> = SceneRendererProps & {
navigationState: NavigationState<T>;
width: string;
width: string | number;
style?: StyleProp<ViewStyle>;
getTabWidth: GetTabWidth;
};
Expand Down

0 comments on commit 350f783

Please sign in to comment.