Skip to content

Commit

Permalink
Fix DarkMode for DatePickerDialogFragment
Browse files Browse the repository at this point in the history
Summary:
Fix DarkMode for DatePickerDialogFragment

changelog: [Android][Fixed] Fix DarkMode on Calendar DateTimePicker

Reviewed By: JoshuaGross

Differential Revision: D34092084

fbshipit-source-id: 4fbe3484bc7101c4b7d244671d7d46cae1c23bec
  • Loading branch information
mdvacca authored and facebook-github-bot committed Feb 9, 2022
1 parent e737270 commit 97064ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ReactAndroid/src/main/res/shell/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
<item name="android:datePickerMode">spinner</item>
</style>

<style name="CalendarDatePickerDialog" parent="Theme.AppCompat.Light.Dialog" tools:targetApi="lollipop">
<style name="CalendarDatePickerDialog" parent="android:Theme.Material.Dialog.Alert" tools:targetApi="lollipop">
<item name="android:datePickerStyle">@style/CalendarDatePickerStyle</item>
<item name="android:windowIsFloating">true</item>
</style>

<style name="CalendarDatePickerStyle" parent="android:Widget.Material.Light.DatePicker" tools:targetApi="lollipop">
<style name="CalendarDatePickerStyle" parent="android:Widget.Material.DatePicker" tools:targetApi="lollipop">
<item name="android:datePickerMode">calendar</item>
</style>

Expand Down

0 comments on commit 97064ae

Please sign in to comment.