Problem Statement
Can we have a way to adjust the spacing between items? At the moment, contentContainerStyle allows us to only adjust the padding and background color.
Proposed Solution
It would be helpful to have the ability to customize the layout in the recycler code.
Example Usage
Alternatives Considered
I can create some invisible gaps between items using ItemSeparatorComponent={renderGap}, or I can adjust the margins of each item.
Priority
Additional Context
Currently, this breaks the promise of a "drop-in replacement for FlatList", as FlashList does not support all the styling options available in React Native.
By the way, the TS misleads users by resolving styles as a full set of styles. Without referring to the documentation, it is difficult to determine what is going wrong and why.
Checklist
Problem Statement
Can we have a way to adjust the spacing between items? At the moment,
contentContainerStyleallows us to only adjust the padding and background color.Proposed Solution
It would be helpful to have the ability to customize the layout in the recycler code.
Example Usage
Alternatives Considered
I can create some invisible gaps between items using
ItemSeparatorComponent={renderGap}, or I can adjust the margins of each item.Priority
Additional Context
Currently, this breaks the promise of a "drop-in replacement for FlatList", as FlashList does not support all the styling options available in React Native.
By the way, the TS misleads users by resolving styles as a full set of styles. Without referring to the documentation, it is difficult to determine what is going wrong and why.
Checklist