set minheight of content container to screen height + header
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user