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

Different item Height to the cause Item stretching #182

Open
HasanElfalt opened this issue Feb 11, 2024 · 1 comment
Open

Different item Height to the cause Item stretching #182

HasanElfalt opened this issue Feb 11, 2024 · 1 comment

Comments

@HasanElfalt
Copy link

HasanElfalt commented Feb 11, 2024

I am working with Swiper flatList with data, each item in the swipping flatList has diffrenet items and different heights, what happens is the Swiper flat list strict with the largest height item and apply it to the others items causing the other height stretching

image

is there a way to make each item fit its height

React Native version:
I am working with React native "0.73.4" and I am testing it on Android.

@JedrekDabrowski
Copy link

JedrekDabrowski commented May 15, 2024

@HasanElfalt
I have added alignSelf: 'flex-start', to SwiperFlatList item styles and every item takes space exactly how much it needs.

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

2 participants