Skip to content
Discussion options

You must be logged in to vote

Hi @arnabJ,

You're not missing anything, they can't be nested right now, and the source shows why.

ScrollHeader takes the first child that isn't a Bar, Large or Cover as the scroller (splitChildren in scroll-header/index.tsx). It wraps that element's type with Animated.createAnimatedComponent and gives it onScroll, a ref, and contentContainerStyle={[..., { paddingTop: headerHeight }]}. When the child is <ScrollBlur>, all of that goes to ScrollBlur, which spreads its own props onto the outer View and creates its own animated version of the list inside with just its child's props. So:

  • the paddingTop inset never reaches the list → it starts at the very top
  • the header's scroll handler never …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@arnabJ
Comment options

@18w
Comment options

@arnabJ
Comment options

Answer selected by arnabJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants