Bluesky app fork with some witchin' additions 💫

Fix title/buttons in date picker not being visible on Android in dark mode (#6880)

authored by

Ryan McLeod and committed by
GitHub
147efb62 84f4afd3

+8 -5
+1 -1
package.json
··· 169 169 "react-keyed-flatten-children": "^3.0.0", 170 170 "react-native": "0.74.1", 171 171 "react-native-compressor": "^1.8.24", 172 - "react-native-date-picker": "^4.4.2", 172 + "react-native-date-picker": "^5.0.7", 173 173 "react-native-drawer-layout": "^4.0.1", 174 174 "react-native-gesture-handler": "2.20.0", 175 175 "react-native-get-random-values": "~1.11.0",
+3
src/components/forms/DateField/index.android.tsx
··· 50 50 /> 51 51 52 52 {open && ( 53 + // Android implementation of DatePicker currently does not change default button colors according to theme and only takes hex values for buttonColor 54 + // Can remove the buttonColor setting if/when this PR is merged: https://github.com/henninghall/react-native-date-picker/pull/871 53 55 <DatePicker 54 56 modal 55 57 open 56 58 timeZoneOffsetInMinutes={0} 57 59 theme={t.name === 'light' ? 'light' : 'dark'} 60 + buttonColor={t.name === 'light' ? '#000000' : '#ffffff'} 58 61 date={new Date(value)} 59 62 onConfirm={onChangeInternal} 60 63 onCancel={onCancel}
+4 -4
yarn.lock
··· 16105 16105 resolved "https://registry.yarnpkg.com/react-native-compressor/-/react-native-compressor-1.8.24.tgz#3cc481ad6dfe2787ec4385275dd24791f04d9e71" 16106 16106 integrity sha512-PdwOBdnyBnpOag1FRX9ks4cb0GiMLKFU9HSaFTHdb/uw6fVIrnCHpELASeliOxlabWb5rOyVPbc58QpGIfZQIQ== 16107 16107 16108 - react-native-date-picker@^4.4.2: 16109 - version "4.4.2" 16110 - resolved "https://registry.yarnpkg.com/react-native-date-picker/-/react-native-date-picker-4.4.2.tgz#f7bb9daa8559237e08bd30f907ee8487a6e2a6ec" 16111 - integrity sha512-wYKN8nYWhETVHJV/+Im30JOdzkFRwYRrDlEOyyYesOjt+1JTFJh9M7K5CqePLOIB4Nxlf2f2lRSI0VoUyFIovA== 16108 + react-native-date-picker@^5.0.7: 16109 + version "5.0.7" 16110 + resolved "https://registry.yarnpkg.com/react-native-date-picker/-/react-native-date-picker-5.0.7.tgz#24161d30c6dca8627afe1aa5a55a389421fdfba4" 16111 + integrity sha512-/RodyCZWjb+f3f4YHqKbWFYczGm+tNngwbVSB6MLGgt5Kl7LQXpv4QE6ybnHW+DM4LteTP8A6lj8LEkQ7+usLQ== 16112 16112 16113 16113 react-native-dotenv@^3.3.1: 16114 16114 version "3.4.9"