Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphabet list cut in case of long alphabet #68

Open
valeriik opened this issue Aug 20, 2019 · 0 comments
Open

Alphabet list cut in case of long alphabet #68

valeriik opened this issue Aug 20, 2019 · 0 comments

Comments

@valeriik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant