Current behavior
List with items
maintainVisibleContentPosition active
An item is aligned to the top edge of the list (ie. initialScrollIndex or user scrolled there)
A react update changes one of the items above the current top item to change its height
The item we were previously scrolled to doesn't stay in position, or it does but there is a flickering
Repro in fixture
In a production app
ScreenRecording_08-04-2025.21-54-59_1.MP4
CleanShot.2025-08-04.at.22.27.00.mp4
In the video from the production app we can see how:
We click on the image with the glass, however on the first frame we aren't scrolled to the right position
On the second frame the image with the glass is correctly positioned
On the third frame the item above the glass has changed its height and we can see how the glass image got pushed down
On the forth frame the glass image is back its correct position
Expected behavior
When using maintainVisibleContentPosition and initialScrollIndex there should be no erratic flickering.
To Reproduce
https://github.com/margelo/flash-list/tree/reproduction-scroll-mvcp-issue
Note: this is not reproducible with a plain React Native ScrollView.
Platform:
Environment
2.0.1
Current behavior
maintainVisibleContentPositionactiveinitialScrollIndexor user scrolled there)ScreenRecording_08-04-2025.21-54-59_1.MP4
CleanShot.2025-08-04.at.22.27.00.mp4
In the video from the production app we can see how:
Expected behavior
When using
maintainVisibleContentPositionandinitialScrollIndexthere should be no erratic flickering.To Reproduce
https://github.com/margelo/flash-list/tree/reproduction-scroll-mvcp-issue
Note: this is not reproducible with a plain React Native
ScrollView.Platform:
Environment
2.0.1