diff --git a/components/common/HorrizontalScroll.tsx b/components/common/HorrizontalScroll.tsx index 6aa48a5f..25f6c30b 100644 --- a/components/common/HorrizontalScroll.tsx +++ b/components/common/HorrizontalScroll.tsx @@ -1,7 +1,13 @@ import React from "react"; -import { ScrollView, View, ViewStyle, ActivityIndicator } from "react-native"; +import { + ScrollView, + View, + ViewStyle, + ActivityIndicator, + ScrollViewProps, +} from "react-native"; -interface HorizontalScrollProps { +interface HorizontalScrollProps extends ScrollViewProps { data?: T[] | null; renderItem: (item: T, index: number) => React.ReactNode; containerStyle?: ViewStyle; @@ -15,6 +21,7 @@ export function HorizontalScroll({ containerStyle, contentContainerStyle, loadingContainerStyle, + ...props }: HorizontalScrollProps): React.ReactElement { if (!data) { return ( @@ -34,6 +41,8 @@ export function HorizontalScroll({ horizontal style={containerStyle} contentContainerStyle={contentContainerStyle} + showsHorizontalScrollIndicator={false} + {...props} > {data.map((item, index) => (