A lot of white space between items of a flat list in react native
I am trying to create a flat list in react native that displays an image as many times as the length of an array called "bools" (later, I will also display contents of bools in the flatlist). While I am able to create and display the flatlist, there is a lot of space between each item and above & below the first and last items, respectively. I can’t remove top and bottom margins completely because I want to add other elements above and below the flatlist. Other than this, I have tried every possible thing I could find online, but nothing is working. Flat List: <View style={{ marginTop: "10%",
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.