Skip to content

add childrenContainerStyle prop to be able to style the children container View#10

Open
thoounn wants to merge 1 commit into
Naxulanth:masterfrom
thoounn:fix-children-container-styling
Open

add childrenContainerStyle prop to be able to style the children container View#10
thoounn wants to merge 1 commit into
Naxulanth:masterfrom
thoounn:fix-children-container-styling

Conversation

@thoounn

@thoounn thoounn commented Dec 13, 2020

Copy link
Copy Markdown

To be able to place the "Click me" button where ever you want without breaking the popup position.

Ex:

<DateRangePicker
    ...
    backdropStyle={styles.datePickerBackdropStyle}
    childrenContainerStyle={styles.datePickerChildrenContainerStyle}
>
    <Text>Click Me</Text>
</ DateRangePicker>

And for the styles:

datePickerBackdropStyle: {
    width: "100%",
    height: "100%"
},
datePickerChildrenContainerStyle: {
    position: "absolute",
    top: 0,
    left: 0
}

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

Successfully merging this pull request may close these issues.

1 participant