Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit 31beaf0

Browse files
committed
fix: add theme color to date and time picker
1 parent d0a88dc commit 31beaf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/PBSCDateTimePicker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const PBSCDateTimePicker = (props) => {
4444
helperTextStyle,
4545
hasHelperTextIcon = false,
4646
helperTextCustomIcon, // any svg icon component to show before helper text or error text goes here
47+
pickerTheme = 'light', // 'light' or 'dark'
4748
} = props;
4849

4950
const [selectingDate, setSelectingDate] = useState(value ? value : undefined);
@@ -176,6 +177,7 @@ const PBSCDateTimePicker = (props) => {
176177
is24hourSource={is24hour}
177178
date={selectingDate ? selectingDate : new Date()}
178179
onDateChange={handleDateChange}
180+
theme={pickerTheme}
179181
/>
180182
<View style={styles.modalDatePickerView}>
181183
<ModalButton

0 commit comments

Comments
 (0)