From 1fcf3e6ee708e80e458c7ad1c00745c559cc60f9 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 4 Apr 2025 14:46:48 -0500 Subject: [PATCH] Visual alignment of tab bar and headers --- src/components/ProgressGuide/FollowDialog.tsx | 13 +++++++++++-- src/screens/Search/components/ModuleHeader.tsx | 12 ++---------- .../Search/modules/ExploreSuggestedAccounts.tsx | 6 ++++++ 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/components/ProgressGuide/FollowDialog.tsx b/src/components/ProgressGuide/FollowDialog.tsx index 41c3d41d89..cafa958ccb 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 TabComponent?: React.ComponentType> + contentContainerStyle?: StyleProp }): React.ReactNode => { const listRef = useRef(null) const [scrollX, setScrollX] = useState(0) @@ -520,7 +529,7 @@ let Tabs = ({ )