react-native-date-picker icon indicating copy to clipboard operation
react-native-date-picker copied to clipboard

Light theme prop not working with iOS

Open vxm5091 opened this issue 3 years ago • 0 comments

Describe the bug When setting the theme prop to light, I'm still seeing a dark background with black text (see screenshot). My only solution is to set text to white but that's not a good approach because I'm risking certain instances opening the modal with the light background and white text.

FYI I'm testing this in Metro, not sure if that has an impact.

Expected behavior For the modal background to be light

To Reproduce Add example code that reproduces the behavior.

<DatePicker
        theme="light"
        modal={true}
        open={openPickerModal}
        date={date}
        mode="date"
        onConfirm={(newDate) => onDateConfirm(newDate, field)}
        onCancel={onDatePickerCancel}
        locale="en-US"
/>

Smartphone:

  • OS: iOS
  • React Native version 0.66.1
  • react-native-date-picker version 4.2.5

IMG_C1C10163210E-1

vxm5091 avatar Aug 09 '22 00:08 vxm5091