修复动态发布与互动问题
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user