修复动态发布与互动问题

This commit is contained in:
2026-06-23 18:43:03 +08:00
parent 702b578e1e
commit cda8685956
151 changed files with 4993 additions and 914 deletions

View File

@@ -7,13 +7,17 @@ interface PageShellProps {
className?: string
scroll?: boolean
withTabBar?: boolean
lowerThreshold?: number
onScrollToLower?: () => void
}
export function PageShell({
children,
className = '',
scroll = true,
withTabBar = true
withTabBar = true,
lowerThreshold = 80,
onScrollToLower
}: PropsWithChildren<PageShellProps>) {
const { safeBottom } = useSystemLayout()
const content = (
@@ -28,7 +32,14 @@ export function PageShell({
return (
<View className='page-shell'>
{scroll ? (
<ScrollView scrollY className='page-shell__scroll' enhanced showScrollbar={false}>
<ScrollView
scrollY
className='page-shell__scroll'
enhanced
showScrollbar={false}
lowerThreshold={lowerThreshold}
onScrollToLower={onScrollToLower}
>
{content}
</ScrollView>
) : (
@@ -39,4 +50,3 @@ export function PageShell({
}
export default PageShell