react-native-alphabetlistview icon indicating copy to clipboard operation
react-native-alphabetlistview copied to clipboard

Alphabet list cut in case of long alphabet

Open valeriik opened this issue 5 years ago • 0 comments

In case of long alphabet (i.e. long array in data prop.) and device small screen resolution the SectionList is cut at the bottom and there is no possibility to scroll it: Screen Shot 2019-08-20 at 5 46 35 PM

So it should be wrapped by ScrollView for example and also maybe with additional logic, for example do not wrap in ScrollView in case react-native-alphabetlistview height less then the screen or container height where the component was placed. Screen Shot 2019-08-20 at 5 47 17 PM

For all who need simplest and fastest solution (but not very elegant) for now is to wrap {sections} to ScrollView here: https://github.com/i6mi6/react-native-alphabetlistview/blob/master/components/SectionList.js#L147

Screen Shot 2019-08-20 at 5 58 59 PM

valeriik avatar Aug 20 '19 15:08 valeriik