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

This is how I solved the white spaces / blank problem. #854

Open
bloggerklik opened this issue Jun 2, 2023 · 5 comments
Open

This is how I solved the white spaces / blank problem. #854

bloggerklik opened this issue Jun 2, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@bloggerklik
Copy link

Hi, there are a lot of questions and discussions about white spaces / blank. In my case I accidentally solved the problem with the following method. No matter how fast I scroll, the white space does not appear. I don't know why but my problem was solved with slice() . Can you confirm too?

Example:

    const data = myData.slice(0);

    <FlashList
        data={data}
@bloggerklik bloggerklik added the bug Something isn't working label Jun 2, 2023
@rishavnaskar-groww
Copy link

rishavnaskar-groww commented Jun 22, 2023

Hi, there are a lot of questions and discussions about white spaces / blank. In my case I accidentally solved the problem with the following method. No matter how fast I scroll, the white space does not appear. I don't know why but my problem was solved with slice() . Can you confirm too?

Example:

    const data = myData.slice(0);

    <FlashList
        data={data}

Worked for me too! Idk why though 😂 (It happened to me only in iOS)

@lekbit
Copy link

lekbit commented Jul 4, 2023

it now works much better. Mind-blowing 🤯 Video Before, After

Screenrecorder-2023-07-04-13-10-52-306.mp4

@damieng57
Copy link

damieng57 commented Jul 12, 2023

I have something weird too but resolve it by the .slice(0) trick.

I work with Realm and if I set my data directly with a realm collection, when I try to delete an element, I get an error [https://stackoverflow.com/questions/75532357/encountered-two-children-with-the-same-key-in-react-native](duplicate children). My key extractor is correctly set and I don't have this issue with a Flatlist/VirtualizedList.

However, that doesn't fix the blank issue on my app:
react-native 0.71.11
realm 11.9.0
flashlist 1.4.3

@vishal-nayak07
Copy link

vishal-nayak07 commented Dec 19, 2023

Blank.screen.issue.mp4

Still facing the blank screen issue even after updating with .slice(0) changes on data. I have a large amount of data to render.
I am also using Realm to get data, performing filtering on that data and storing into redux.

@dippathak1912
Copy link

Have the same issue.

"@shopify/flash-list": "^1.5.0",
"react-native": "^0.70.1",
"react": "18.1.0"

Is there any way out of this? Issue is closed but still facing it.

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

6 participants