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

Dynamic Sizing of the Carousel #744

Open
emreer94 opened this issue Dec 17, 2024 · 0 comments
Open

Dynamic Sizing of the Carousel #744

emreer94 opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@emreer94
Copy link

emreer94 commented Dec 17, 2024

Is your feature request related to a problem? Please describe.
Problem: We have to give carousel width or height based on scroll direction and we cannot give the size as percentage (%) value, it requires number. Once the orientation is changed, the width changes but carousels width remains the same causing problems and extra calculations to handle orientation.
In my use case, i scroll among grids of 9 frames with contents making it extremely hard and crowded to calculate each frame.

Describe the solution you'd like
It would be perfect if the carousel could be sized with % values instead of static numbers. In this case, we would not require use of Dimensions API and related methods and side effects. We would give 100% width and a height my choosing which would enable me to focus on my job only without thinking of fitting the carousel in oriented use cases

Describe alternatives you've considered
I tried to measure the wrapper length with onLayout but it does not resolve the problem. I tried to alter the library source codes with Dimensions but could not get it done.
Additional context
The carousel when orientation changed into landscape
image

@emreer94 emreer94 added the enhancement New feature or request label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants