Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces between items #1347

Open
1 of 2 tasks
agathe-lighthouse opened this issue Sep 5, 2024 · 2 comments
Open
1 of 2 tasks

Spaces between items #1347

agathe-lighthouse opened this issue Sep 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@agathe-lighthouse
Copy link

Current behavior

For some reason, there are sometimes spaces between items. There are no items missing in the list. It's pretty random, so I didn't find a way to always reproduce the bug. I got that bug on iOS and web, but it could also be on Android.

As you can see in the video, the blank spaces always stay, so it doesn't seem to be related to the scrolling.

    <FlashList
      ref={listRef}
      data={products}
      renderItem={renderProduct}
      keyExtractor={item => ("collab" in item ? item.collab.collabId : item.collabId)}
      ListHeaderComponent={(emptyStateVisible ? undefined : listHeader) ?? ListHeaderComponent}
      ListFooterComponent={isFetchingMore ? <ActivityIndicator size="small" /> : ListFooterComponent}
      ListEmptyComponent={listEmpty}
      scrollEnabled
      onEndReached={handleFetchMore}
      onEndReachedThreshold={0.1}
      refreshing={refreshing}
      onRefresh={() => void handleRefreshing()}
      numColumns={nbColumns}
      contentContainerStyle={{ padding: listPadding }}
      showsVerticalScrollIndicator={false}
      estimatedItemSize={itemWidth + estimatedUnderImageContentHeight}
      getItemType={() => undefined}
  />
Screen.Recording.2024-08-28.at.1.02.55.PM.mov

Expected behavior

To Reproduce

Platform:

  • iOS
  • Android

Environment

1.6.3

@agathe-lighthouse agathe-lighthouse added the bug Something isn't working label Sep 5, 2024
@rbouziane
Copy link

Same +1

@ZaharGusyatin
Copy link

sure same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants