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

Commit 350f783

Browse files
authored
fix: fix TabBarIndicator width props type (#1083)
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.
1 parent bcee28c commit 350f783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TabBarIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type GetTabWidth = (index: number) => number;
1515

1616
export type Props<T extends Route> = SceneRendererProps & {
1717
navigationState: NavigationState<T>;
18-
width: string;
18+
width: string | number;
1919
style?: StyleProp<ViewStyle>;
2020
getTabWidth: GetTabWidth;
2121
};

0 commit comments

Comments
 (0)