diff options
Diffstat (limited to 'src/components/ProgressGuide/FollowDialog.tsx')
-rw-r--r-- | src/components/ProgressGuide/FollowDialog.tsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/components/ProgressGuide/FollowDialog.tsx b/src/components/ProgressGuide/FollowDialog.tsx index 41c3d41d8..cafa958cc 100644 --- a/src/components/ProgressGuide/FollowDialog.tsx +++ b/src/components/ProgressGuide/FollowDialog.tsx @@ -1,5 +1,12 @@ import {memo, useCallback, useEffect, useMemo, useRef, useState} from 'react' -import {ScrollView, TextInput, useWindowDimensions, View} from 'react-native' +import { + ScrollView, + type StyleProp, + TextInput, + useWindowDimensions, + View, + type ViewStyle, +} from 'react-native' import Animated, { LayoutAnimationConfig, LinearTransition, @@ -453,6 +460,7 @@ let Tabs = ({ hasSearchText, interestsDisplayNames, TabComponent = Tab, + contentContainerStyle, }: { onSelectTab: (tab: string) => void interests: string[] @@ -460,6 +468,7 @@ let Tabs = ({ hasSearchText: boolean interestsDisplayNames: Record<string, string> TabComponent?: React.ComponentType<React.ComponentProps<typeof Tab>> + contentContainerStyle?: StyleProp<ViewStyle> }): React.ReactNode => { const listRef = useRef<ScrollView>(null) const [scrollX, setScrollX] = useState(0) @@ -520,7 +529,7 @@ let Tabs = ({ <ScrollView ref={listRef} horizontal - contentContainerStyle={[a.gap_sm, a.px_lg]} + contentContainerStyle={[a.gap_sm, a.px_lg, contentContainerStyle]} showsHorizontalScrollIndicator={false} decelerationRate="fast" snapToOffsets={ |