Skip to content

Commit

Permalink
Merge branch 'main' into hailey/upgrade-clean
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Dec 3, 2024
2 parents d4e5dc4 + 147efb6 commit e8cfb64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/forms/DateField/index.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ export function DateField({
/>

{open && (
// Android implementation of DatePicker currently does not change default button colors according to theme and only takes hex values for buttonColor
// Can remove the buttonColor setting if/when this PR is merged: https://github.com/henninghall/react-native-date-picker/pull/871
<DatePicker
modal
open
timeZoneOffsetInMinutes={0}
theme={t.name === 'light' ? 'light' : 'dark'}
buttonColor={t.name === 'light' ? '#000000' : '#ffffff'}
date={new Date(value)}
onConfirm={onChangeInternal}
onCancel={onCancel}
Expand Down

0 comments on commit e8cfb64

Please sign in to comment.