about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRyan McLeod <excitinglyboring@gmail.com>2024-12-02 21:25:10 -0500
committerGitHub <noreply@github.com>2024-12-03 02:25:10 +0000
commit147efb628a9eea755dd2901a82f39f14435f6629 (patch)
tree0e8e1c7a60041a4699375e19d48a16e255f6a66b /src
parent84f4afd3d75eb50e96e4cee758f41b186f8a510d (diff)
downloadvoidsky-147efb628a9eea755dd2901a82f39f14435f6629.tar.zst
Fix title/buttons in date picker not being visible on Android in dark mode (#6880)
Diffstat (limited to 'src')
-rw-r--r--src/components/forms/DateField/index.android.tsx3
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}