Open okwasniewski opened 1 year ago
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.
onViewableItemsChanged
https://user-images.githubusercontent.com/52801365/202131182-cae0c891-f502-4f34-b790-461cb7faad2a.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.
yarn lint --fix
The Expo app for the example from this branch is ready!
expo.io/@satya164/react-native-tab-view-demos?release-channel=pr-1409
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
https://user-images.githubusercontent.com/52801365/202131182-cae0c891-f502-4f34-b790-461cb7faad2a.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.