Open fortmarek opened 2 years ago
@fortmarek any plans on making contentContainerStyle
match react native View style props?
We do plan to make contentContainerStyle
more flexible but likely won't get to it in the short term.
Any plan to implement the following any time soon, or would I be better off rolling my own solution for something such as a stretchy header that re-appears when scrolling up?
StickyHeaderComponent
stickyHeaderHiddenOnScroll
We do plan to make
contentContainerStyle
more flexible but likely won't get to it in the short term.
We've just ran into this issue. Would definitely appreciate full View Style props for contentContainerStyle
.
Currently, an inability to set flex: 1
for the content container prevents from being able to center content vertically (lets say for an empty list component for example).
An example of what we're trying to achieve here.
@alexdobson you can use centerContent
prop to center a ListEmptyComponent but sadly it only works for iOS.
@alexdobson you can use
centerContent
prop to center a ListEmptyComponent but sadly it only works for iOS.
The prop centerContent
does not center the ListEmptyComponent
unfortunately (in runtime).
I think scrollTo
is such a useful prop to have. Weird it is not implemented.
Any plan to implement the following any time soon, or would I be better off rolling my own solution for something such as a stretchy header that re-appears when scrolling up?
StickyHeaderComponent
stickyHeaderHiddenOnScroll
hi, I am also interested in this question
@alexdobson you can use
centerContent
prop to center a ListEmptyComponent but sadly it only works for iOS.
Any update about this issue? I'm trying to center the ListEmptyComponent in both platforms
@fortmarek Will it be possible to use flexGrow: 1
in contentContainerStyle
? It seems like there isn't a simple way to center ListEmptyComponent
with FlashList
.
@fortmarek Will it be possible to use
flexGrow: 1
incontentContainerStyle
? It seems like there isn't a simple way to centerListEmptyComponent
withFlashList
.
faced with the same issue.
FlatList
supports allScrollView
props since it uses it under the hood.We do as well but we have not gone through all of them to verify they won't cause any issues. We should double check the props below:
Here is a list of all the props:
alwaysBounceHorizontal
alwaysBounceVertical
automaticallyAdjustContentInsets
automaticallyAdjustsScrollIndicatorInsets
bounces
bouncesZoom
canCancelContentTouches
centerContent
contentContainerStyle
-> we kind of support it viacontentStyle
contentInset
contentInsetAdjustmentBehavior
contentOffset
decelerationRate
directionalLockEnabled
disableIntervalMomentum
disableScrollViewResponder
endFillScroll
fadingEdgeLength
horizontal
indicatorStyle
keyboardDismissMode
keyboardShouldPersistTaps
maximumZoomScale
minimumZoomScale
nestedScrollEnabled
onContentSizeChange
onMomentumScrollBegin
onMomentumScrollEnd
onScroll
onScrollBeginDrag
onScrollEndDrag
onScrollToTop
overScrollMode
pagingEnabled
persistentScrollbar
pinchGestureEnabled
refreshControl
removeClippedSubviews
scrollEnabled
scrollEventThrottle
scrollIndicatorInsets
scrollPerfTag
scrollToOverflowEnabled
scrollsToTop
showsHorizontalScrollIndicator
showsVerticalScrollIndicator
snapToAlignment
snapToEnd
snapToInterval
snapToOffsets
snapToStart
zoomScale
stickyHeaderIndices
invertStickyHeaders
StickyHeaderComponent
stickyHeaderHiddenOnScroll
maintainVisibleContentPosition
Methods:
scrollToEnd()
flashScrollIndicators()
scrollTo()