Skip to content

Blank space still existsΒ #868

@lekbit

Description

@lekbit

Perhaps the FlashList developers expect us to set a limit on scrolling at once, or is there something I don't know?

Current behavior

screenrecorder-2023-07-04-13-55-53-302.mp4

Expected behavior

Don't see blank space.

To Reproduce

import React from "react";
import { View, Text, StatusBar } from "react-native";
import { FlashList } from "@shopify/flash-list";

const DATA = [
  {
    title: "First Item",
  },
  {
    title: "Second Item",
  },
];

export default function MyList() {
  for (let index = 0; index < 500; index++) {
    DATA.push({
      title: "First Item" + index,
    })
  }
  return (
    <FlashList
      data={DATA}
      renderItem={({ item }) => <Text>{item.title}</Text>}
      estimatedItemSize={200}
    />
  );
};

Platform:

  • Android

Environment

"@shopify/flash-list": "^1.4.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions