set minheight of content container to screen height + header

This commit is contained in:
Samuel Newman
2025-08-29 11:22:55 +01:00
parent 9cf341fe46
commit 52425f842e
3 changed files with 12 additions and 1 deletions
@@ -3,6 +3,7 @@ import {
findNodeHandle,
type ListRenderItemInfo,
type StyleProp,
useWindowDimensions,
View,
type ViewStyle,
} from 'react-native'
@@ -65,6 +66,7 @@ export function ProfileStarterPacks({
}: ProfileFeedgensProps) {
const t = useTheme()
const bottomBarOffset = useBottomBarOffset(100)
const {height} = useWindowDimensions()
const [isPTRing, setIsPTRing] = useState(false)
const {
data,
@@ -135,7 +137,10 @@ export function ProfileStarterPacks({
refreshing={isPTRing}
headerOffset={headerOffset}
progressViewOffset={ios(0)}
contentContainerStyle={{paddingBottom: headerOffset + bottomBarOffset}}
contentContainerStyle={{
minHeight: height + headerOffset,
paddingBottom: bottomBarOffset,
}}
removeClippedSubviews={true}
desktopFixedHeight
onEndReached={onEndReached}
+3
View File
@@ -9,6 +9,7 @@ import {
findNodeHandle,
type ListRenderItemInfo,
type StyleProp,
useWindowDimensions,
View,
type ViewStyle,
} from 'react-native'
@@ -63,6 +64,7 @@ export function ProfileFeedgens({
const {_} = useLingui()
const t = useTheme()
const [isPTRing, setIsPTRing] = useState(false)
const {height} = useWindowDimensions()
const opts = useMemo(() => ({enabled}), [enabled])
const {
data,
@@ -227,6 +229,7 @@ export function ProfileFeedgens({
removeClippedSubviews={true}
desktopFixedHeight
onEndReached={onEndReached}
contentContainerStyle={{minHeight: height + headerOffset}}
/>
</View>
)
+3
View File
@@ -9,6 +9,7 @@ import {
findNodeHandle,
type ListRenderItemInfo,
type StyleProp,
useWindowDimensions,
View,
type ViewStyle,
} from 'react-native'
@@ -61,6 +62,7 @@ export function ProfileLists({
}: ProfileListsProps) {
const t = useTheme()
const {_} = useLingui()
const {height} = useWindowDimensions()
const [isPTRing, setIsPTRing] = useState(false)
const opts = useMemo(() => ({enabled}), [enabled])
const {
@@ -222,6 +224,7 @@ export function ProfileLists({
removeClippedSubviews={true}
desktopFixedHeight
onEndReached={onEndReached}
contentContainerStyle={{minHeight: height + headerOffset}}
/>
</View>
)