i6mi6 / react-native-alphabetlistview

A Listview with a sidebar to jump to sections directly
MIT License
456 stars 163 forks source link

Fix scrollToSection() if not all cells have been rendered #63

Open haraldreingruber opened 5 years ago

haraldreingruber commented 5 years ago

It looks like the ListView component does not render all cells initially. Because of this, the ScrollToSection buttons don't work until all cells have been displayed once (e.g. scroll to bottom).

Looking forward to feedback and improvement suggestions.

Note: This is merely a quick&dirty workaround. It might cause some performance penalties, as all list items will be rendered from the start.