diff --git a/src/DateTimePickerModal.ios.js b/src/DateTimePickerModal.ios.js index 6ef0b0a..7adc98d 100644 --- a/src/DateTimePickerModal.ios.js +++ b/src/DateTimePickerModal.ios.js @@ -136,6 +136,10 @@ export class DateTimePickerModal extends React.PureComponent { isDarkModeEnabled === undefined && isAppearanceModuleAvailable ? Appearance.getColorScheme() === "dark" : isDarkModeEnabled || false; + // If not using a custom picker component, pass themeVariant to the DateTimePicker + if (!customPickerIOS) { + otherProps.themeVariant = _isDarkModeEnabled ? 'dark' : 'light'; + } const ConfirmButtonComponent = customConfirmButtonIOS || ConfirmButton; const CancelButtonComponent = customCancelButtonIOS || CancelButton;