i6mi6 / react-native-alphabetlistview

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

On Alphabet click , list does not scroll to that section as expected. Scroll Alignment is improper. #53

Open swati-kholiya opened 5 years ago

swati-kholiya commented 5 years ago

I have provided cellHeight, headerHeight too . Still I can see it does not scroll right. Am I missing something or doing wrong? <AlphabetListView data={data} cell={data => { return this.renderItem(data.item); }} cellHeight={50} sectionListItem={data => { return ( <View style={{ alignItems: "center", alignSelf: "center", justifyContent: "center" }}

{data.title}

); }} sectionHeader={data => { return this.renderSectionHeader(data); }} sectionHeaderHeight={22.5} updateScrollState={true} />

Kazn commented 5 years ago

any solution ?

haraldreingruber commented 5 years ago

I have submitted a PR which might be a workaround for this issue: #63