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

BaseLayout justifyContent prop access #549

Open
AntelaBrais opened this issue Feb 22, 2024 · 0 comments
Open

BaseLayout justifyContent prop access #549

AntelaBrais opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AntelaBrais
Copy link

Is your feature request related to a problem? Please describe.
It would be fine if we could modify the BaseLayout justifyContent style prop (or total access to style even though it may break some thing along the way 😅) so we could place rendered items precisely.

Here I've just modify BaseLayout to center rendered items on not having them always on start:

// src/layouts/BaseLayout.tsx
<Animated.View
      style={[
        {
          width: width || "100%",
          height: height || "100%",
          position: "absolute",
          backgroundColor: "blue",
          justifyContent: "center"
        },
        animatedStyle,
      ]}
...more code...
image

Describe the solution you'd like
Something like this could work

// Carousel
<Carousel
            baseLayoutStyle={{
              justifyContent: "center"
            }}

I can also help opening a PR!

@AntelaBrais AntelaBrais added the enhancement New feature or request label Feb 22, 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