Skip to content

fix: scroll StickySectionList tabs to measured section offsets - #194

Open
yerloveraaa wants to merge 1 commit into
feature/bottom-nav-tab-labelsfrom
fix/sticky-section-list-tab-scroll
Open

fix: scroll StickySectionList tabs to measured section offsets#194
yerloveraaa wants to merge 1 commit into
feature/bottom-nav-tab-labelsfrom
fix/sticky-section-list-tab-scroll

Conversation

@yerloveraaa

Copy link
Copy Markdown
Collaborator

Replace the SectionList + getItemLayout approach with an Animated.ScrollView that measures each section's real position via onLayout. Row heights were estimates, so tab presses landed in the wrong section and the render window left blank areas on screen.

Index updates are blocked while a tab press travels to its target and released on arrival, so the tab strip animates once per press instead of once per section crossed. Also corrects the no-description/no-photo row height estimate in getItemLayout to match what ProductListItem renders.

Replace the SectionList + getItemLayout approach with an Animated.ScrollView
that measures each section's real position via onLayout. Row heights were
estimates, so tab presses landed in the wrong section and the render window
left blank areas on screen.

Index updates are blocked while a tab press travels to its target and released
on arrival, so the tab strip animates once per press instead of once per
section crossed. Also corrects the no-description/no-photo row height estimate
in getItemLayout to match what ProductListItem renders.
@yerloveraaa
yerloveraaa requested a review from joelmsanto July 30, 2026 21:56
@yerloveraaa yerloveraaa self-assigned this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants