revert back to headerHeight

This commit is contained in:
Samuel Newman
2025-09-29 16:06:00 +03:00
parent 81cd7408c4
commit 779efd91de
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -29,7 +29,7 @@ interface LabelsSectionProps {
labelerError: Error | null
moderationOpts: ModerationOpts
scrollElRef: ListRef
headerOffset: number
headerHeight: number
isFocused: boolean
setScrollViewTag: (tag: number | null) => void
}
@@ -41,7 +41,7 @@ export function ProfileLabelsSection({
labelerError,
moderationOpts,
scrollElRef,
headerOffset,
headerHeight,
isFocused,
setScrollViewTag,
}: LabelsSectionProps) {
@@ -50,9 +50,9 @@ export function ProfileLabelsSection({
const onScrollToTop = useCallback(() => {
scrollElRef.current?.scrollToOffset({
animated: isNative,
offset: -headerOffset,
offset: -headerHeight,
})
}, [scrollElRef, headerOffset])
}, [scrollElRef, headerHeight])
useImperativeHandle(ref, () => ({
scrollToTop: onScrollToTop,
@@ -124,7 +124,7 @@ export function ProfileLabelsSection({
renderItem={renderItem}
keyExtractor={keyExtractor}
contentContainerStyle={a.px_xl}
headerOffset={headerOffset}
headerOffset={headerHeight}
progressViewOffset={ios(0)}
ListHeaderComponent={
<LabelerListHeader
@@ -137,7 +137,7 @@ export function ProfileLabelsSection({
}
ListFooterComponent={
<ListFooter
height={headerOffset + 180}
height={headerHeight + 180}
style={a.border_transparent}
/>
}
+1 -1
View File
@@ -380,7 +380,7 @@ function ProfileScreenLoaded({
isLabelerLoading={isLabelerLoading}
moderationOpts={moderationOpts}
scrollElRef={scrollElRef as ListRef}
headerOffset={headerHeight}
headerHeight={headerHeight}
isFocused={isFocused}
setScrollViewTag={setScrollViewTag}
/>