Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

feat: split updating state to batches on long lists #1409

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

okwasniewski
Copy link
Collaborator

Motivation

As reported here: #1405, when using really long lists header wouldn't get all tab widths and therefore would stop rendering. If we have more than 10 routes we split rendering into multiple batches using onViewableItemsChanged.

Recording

CleanShot.2022-11-16.at.09.41.49.mp4

Test plan

Launch Scrollable tab bar example and scroll.

Code formatting

Look around. Match the style of the rest of the codebase. Run yarn lint --fix before committing.

@github-actions
Copy link

The Expo app for the example from this branch is ready!

expo.io/@satya164/react-native-tab-view-demos?release-channel=pr-1409

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant