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 Height Content in Carousel #997

Open
thisisashukla opened this issue Oct 29, 2023 · 0 comments
Open

Dynamic Height Content in Carousel #997

thisisashukla opened this issue Oct 29, 2023 · 0 comments

Comments

@thisisashukla
Copy link

Is this a bug report, a feature request, or a question?

Question

I need to render text of dynamic size in carousel elements. I am getting blank space under the text for different elements. How can I either

  1. Remove this blank space.
  2. Snap elements to the bottom of the view

What I am getting:

green background is part of carousel styling

IMG_6529

What i Want:

IMG_6530

Where my carousel code is

<Carousel
              loop
              width={rootstore.windowWidth}
              height={rootstore.windowHeight / 2}
              data={data}
              renderItem={renderFunction}
              inactiveSlideScale={1}
              style={{
                position: "absolute",
                bottom: 200,
                backgroundColor: "green"
              }}
            />

Please help with this

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