simplify
This commit is contained in:
@@ -13,9 +13,8 @@ import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
|
|||||||
import {useScrollHandlers} from '#/lib/ScrollContext'
|
import {useScrollHandlers} from '#/lib/ScrollContext'
|
||||||
import {addStyle} from '#/lib/styles'
|
import {addStyle} from '#/lib/styles'
|
||||||
import {useShellLayout} from '#/state/shell/shell-layout'
|
import {useShellLayout} from '#/state/shell/shell-layout'
|
||||||
import {ios, useTheme} from '#/alf'
|
import {useTheme} from '#/alf'
|
||||||
import {useLightbox} from '#/components/Lightbox/state'
|
import {IS_IOS} from '#/env'
|
||||||
import {IS_ANDROID, IS_IOS} from '#/env'
|
|
||||||
import {FlatList_INTERNAL} from './Views'
|
import {FlatList_INTERNAL} from './Views'
|
||||||
|
|
||||||
export type ListMethods = FlatList_INTERNAL
|
export type ListMethods = FlatList_INTERNAL
|
||||||
@@ -165,7 +164,7 @@ let List = forwardRef<ListMethods, ListProps>(
|
|||||||
viewabilityConfig={viewabilityConfig}
|
viewabilityConfig={viewabilityConfig}
|
||||||
{...props}
|
{...props}
|
||||||
contentContainerStyle={[
|
contentContainerStyle={[
|
||||||
IS_ANDROID && {paddingBottom: footerHeight + footerExtensionHeight},
|
!IS_IOS && {paddingBottom: footerHeight + footerExtensionHeight},
|
||||||
contentContainerStyle,
|
contentContainerStyle,
|
||||||
]}
|
]}
|
||||||
automaticallyAdjustsScrollIndicatorInsets={
|
automaticallyAdjustsScrollIndicatorInsets={
|
||||||
@@ -177,13 +176,13 @@ let List = forwardRef<ListMethods, ListProps>(
|
|||||||
bottom: footerHeight + footerExtensionHeight,
|
bottom: footerHeight + footerExtensionHeight,
|
||||||
...props.scrollIndicatorInsets,
|
...props.scrollIndicatorInsets,
|
||||||
}}
|
}}
|
||||||
contentInset={ios({
|
contentInset={{
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
bottom: footerHeight + footerExtensionHeight,
|
bottom: footerHeight + footerExtensionHeight,
|
||||||
...props.contentInset,
|
...props.contentInset,
|
||||||
})}
|
}}
|
||||||
indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'}
|
indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'}
|
||||||
contentOffset={contentOffset}
|
contentOffset={contentOffset}
|
||||||
refreshControl={refreshControl}
|
refreshControl={refreshControl}
|
||||||
|
|||||||
Reference in New Issue
Block a user