diff options
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 782e9b9c8..ebf1d955d 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -43,6 +43,7 @@ import {ListRef} from '#/view/com/util/List' import {ProfileHeader, ProfileHeaderLoading} from '#/screens/Profile/Header' import {ProfileFeedSection} from '#/screens/Profile/Sections/Feed' import {ProfileLabelsSection} from '#/screens/Profile/Sections/Labels' +import {atoms as a} from '#/alf' import * as Layout from '#/components/Layout' import {ScreenHider} from '#/components/moderation/ScreenHider' import {ProfileStarterPacks} from '#/components/StarterPack/ProfileStarterPacks' @@ -56,7 +57,7 @@ interface SectionRef { type Props = NativeStackScreenProps<CommonNavigatorParams, 'Profile'> export function ProfileScreen(props: Props) { return ( - <Layout.Screen testID="profileScreen"> + <Layout.Screen testID="profileScreen" style={[a.pt_0]}> <ProfileScreenInner {...props} /> </Layout.Screen> ) @@ -329,7 +330,11 @@ function ProfileScreenLoaded({ // rendering // = - const renderHeader = () => { + const renderHeader = ({ + setMinimumHeight, + }: { + setMinimumHeight: (height: number) => void + }) => { return ( <ExpoScrollForwarderView scrollViewTag={scrollViewTag}> <ProfileHeader @@ -339,6 +344,7 @@ function ProfileScreenLoaded({ moderationOpts={moderationOpts} hideBackButton={hideBackButton} isPlaceholderProfile={showPlaceholder} + setMinimumHeight={setMinimumHeight} /> </ExpoScrollForwarderView> ) |