Naxulanth / react-native-daterange-picker

A React Native component for picking date ranges or single dates.
MIT License
134 stars 89 forks source link

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

Open thooun opened 3 years ago

thooun commented 3 years ago

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
}