datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Android TimePickerDialog: Impossible to style text color (no available attributes in plugin)

Open Odyrac opened this issue 3 weeks ago • 3 comments

Hi, and thanks for the great work on the plugin.

While styling the Android TimePickerDialog through the Expo config plugin, I noticed that it is not possible to customize the text colors of the dialog (Android buttons). The DatePickerDialog exposes several attributes such as android:textColor, but the TimePickerDialog only supports the following properties:

  • background
  • headerBackground
  • numbersBackgroundColor
  • numbersSelectorColor
  • numbersTextColor

Any other property such as textColor is rejected by the plugin because it validates the allowed attributes. This makes it impossible to style the dialog’s text color.

The documentation seems to show that there is no possibilities to customize it : https://github.com/react-native-datetimepicker/datetimepicker/blob/master/docs/android-styling.md

Image

A few questions:

  • Is there any supported way to override the text colors of the TimePickerDialog via the plugin?
  • Is this restriction intentional, or just a missing feature?

Thanks in advance for any clarification.

Odyrac avatar Dec 04 '25 21:12 Odyrac