Skip to content

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

@Odyrac

Description

@Odyrac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions