diff options
author | Ryan McLeod <excitinglyboring@gmail.com> | 2024-12-02 21:25:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-03 02:25:10 +0000 |
commit | 147efb628a9eea755dd2901a82f39f14435f6629 (patch) | |
tree | 0e8e1c7a60041a4699375e19d48a16e255f6a66b /src/components/forms | |
parent | 84f4afd3d75eb50e96e4cee758f41b186f8a510d (diff) | |
download | voidsky-147efb628a9eea755dd2901a82f39f14435f6629.tar.zst |
Fix title/buttons in date picker not being visible on Android in dark mode (#6880)
Diffstat (limited to 'src/components/forms')
-rw-r--r-- | src/components/forms/DateField/index.android.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/forms/DateField/index.android.tsx b/src/components/forms/DateField/index.android.tsx index 1830ca4bf..0fd5bca01 100644 --- a/src/components/forms/DateField/index.android.tsx +++ b/src/components/forms/DateField/index.android.tsx @@ -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} |