The initial scrollToLocation is somehow not invoking getItemLayout to find the right place in the list, and is instead just scrolling to the top. This happens only on initial mount, if the component is ever re-rendered (for example if a schedule item is updated) then it works properly (i think).
The initial scrollToLocation is somehow not invoking
getItemLayout
to find the right place in the list, and is instead just scrolling to the top. This happens only on initial mount, if the component is ever re-rendered (for example if a schedule item is updated) then it works properly (i think).https://stackoverflow.com/questions/67440618/react-native-flatlist-scrolltoindex-is-not-working-when-screen-loaded-for-the
I think we need to set the initialScrollIndex property, but not sure exactly how to calculate that. SectionLists are hard.