From 2dcbc9079872f0d7ffaaa18da8ddf22aa316f6a5 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 13 Dec 2020 19:20:52 +0100 Subject: [PATCH] add childrenContainerStyle prop to be able to style the children container View --- src/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 03bf388..df00fa1 100644 --- a/src/index.js +++ b/src/index.js @@ -46,6 +46,7 @@ const DateRangePicker = ({ buttonStyle, buttonTextStyle, presetButtons, + childrenContainerStyle }) => { const [isOpen, setIsOpen] = useState(false); const [weeks, setWeeks] = useState([]); @@ -81,6 +82,11 @@ const DateRangePicker = ({ ...styles.monthButtons, ...monthButtonsStyle, }, + childrenContainer: + { + ...styles.childrenContainer, + ...childrenContainerStyle, + }, }; const onOpen = () => { @@ -294,7 +300,7 @@ const DateRangePicker = ({ ]); const node = ( - + {children ? ( children @@ -484,4 +490,6 @@ const styles = StyleSheet.create({ width: 32, height: 32, }, + childrenContainer: { + } });