mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
small fix
This commit is contained in:
parent
a30ace14c9
commit
5ddf26af34
4 changed files with 7 additions and 3 deletions
|
|
@ -104,11 +104,12 @@ const CatalogSection = ({ catalog }: CatalogSectionProps) => {
|
|||
keyExtractor={keyExtractor}
|
||||
horizontal
|
||||
showsHorizontalScrollIndicator={false}
|
||||
contentContainerStyle={[styles.catalogList, { paddingRight: 16 - posterLayout.partialPosterWidth }]}
|
||||
contentContainerStyle={StyleSheet.flatten([styles.catalogList, { paddingRight: 16 - posterLayout.partialPosterWidth }])}
|
||||
ItemSeparatorComponent={ItemSeparator}
|
||||
onEndReachedThreshold={0.7}
|
||||
onEndReached={() => {}}
|
||||
scrollEventThrottle={16}
|
||||
estimatedItemSize={POSTER_WIDTH + 8}
|
||||
/>
|
||||
</Animated.View>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -631,6 +631,7 @@ const ContinueWatchingSection = React.forwardRef<ContinueWatchingRef>((props, re
|
|||
ItemSeparatorComponent={() => <View style={{ width: 16 }} />}
|
||||
onEndReachedThreshold={0.7}
|
||||
onEndReached={() => {}}
|
||||
estimatedItemSize={280 + 16}
|
||||
/>
|
||||
</Animated.View>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -708,6 +708,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
|
|||
}
|
||||
contentContainerStyle={styles.list}
|
||||
showsVerticalScrollIndicator={false}
|
||||
estimatedItemSize={effectiveItemWidth * 1.5 + SPACING.lg}
|
||||
/>
|
||||
) : renderEmptyState()}
|
||||
</SafeAreaView>
|
||||
|
|
|
|||
|
|
@ -756,10 +756,10 @@ const HomeScreen = () => {
|
|||
data={listData}
|
||||
renderItem={renderListItem}
|
||||
keyExtractor={item => item.key}
|
||||
contentContainerStyle={[
|
||||
contentContainerStyle={StyleSheet.flatten([
|
||||
styles.scrollContent,
|
||||
{ paddingTop: insets.top }
|
||||
]}
|
||||
])}
|
||||
showsVerticalScrollIndicator={false}
|
||||
ListHeaderComponent={memoizedHeader}
|
||||
ListFooterComponent={ListFooterComponent}
|
||||
|
|
@ -767,6 +767,7 @@ const HomeScreen = () => {
|
|||
onEndReached={handleLoadMoreCatalogs}
|
||||
onEndReachedThreshold={0.6}
|
||||
scrollEventThrottle={32}
|
||||
estimatedItemSize={220}
|
||||
onScroll={event => {
|
||||
const y = event.nativeEvent.contentOffset.y;
|
||||
const dy = y - lastScrollYRef.current;
|
||||
|
|
|
|||
Loading…
Reference in a new issue