small fix

This commit is contained in:
tapframe 2025-09-06 02:39:54 +05:30
parent a30ace14c9
commit 5ddf26af34
4 changed files with 7 additions and 3 deletions

View file

@ -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>
);

View file

@ -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>
);

View file

@ -708,6 +708,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
}
contentContainerStyle={styles.list}
showsVerticalScrollIndicator={false}
estimatedItemSize={effectiveItemWidth * 1.5 + SPACING.lg}
/>
) : renderEmptyState()}
</SafeAreaView>

View file

@ -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;