Kieran-McIntyre / react-native-section-alphabet-list

A simple React Native component that takes an array of data and renders a SectionList with alphabetically sorted data
MIT License
195 stars 55 forks source link

Unable control the index list height #25

Open JadenTheGiant opened 3 years ago

JadenTheGiant commented 3 years ago

I want to center the alphabet list to middle of the page, is it able to move the index list out of the section to follow the page height? I only can adjust the position within the section list using the indexLetterStyle

Screenshot_1636620047

PhanNN commented 2 years ago

@JadenTheGiant: you can override letterListContainerStyle with height value (example: based on you screen height)

letterListContainerStyle={{ height: _const.HEIGHT_SCREEN * 0.7 }} IMG_1775

RicardoBrito1938 commented 2 years ago

Hello, i can control the height, but still the onPress action is out of the screen, how did you fix it?

RicardoBrito1938 commented 2 years ago

just an updated, by setting a fixed height for the AlphabetList instead indexLetterStyle did the trick