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

Android: DatePicker androidVariant={'nativeAndroid'} does not work with API Level 23

Open Finneah opened this issue 3 years ago • 1 comments

Describe the bug The Picker isnt visible with androidVariant={'nativeAndroid'}. I tried it with modal and inline.

Its only visible with androidVariant={'iosClone'}

Expected behavior The Picker is visible in nativeAndroid VariantTo Reproduce Add example code that reproduces the behavior.

<DatePicker
        androidVariant={"nativeAndroid"}
        is24hourSource={'locale'}
        locale="de-DE"
        modal
        open={datePickerIsOpen}
        date={editTask.dueDate ? new Date(editTask.dueDate) : new Date()}
        onConfirm={(date: { toISOString: () => any }) => {
	        // do what you have to do
        }}
        onCancel={() => {
	        // setDatePickerIsOpen(false);
        }}
        onDateChange={(date) => {
        // this Function has to be set but it has no usability on modal
        }}
        confirmText={'CONFIRM'}
        cancelText={'CANCEL'}
/>

Smartphone (please complete the following information):

  • OS:Android Pixel 2 emulator and Samsung Galaxy A5 API Level 23 Real Device
  • React Native version 0.63.4
  • react-native-date-picker version 4.1.0

See Screenshot (sry, had to hide some stuff because of Data Privacy) Bildschirmfoto 2021-12-13 um 16 47 06

Finneah avatar Dec 13 '21 16:12 Finneah

Hi, did you get any error message in logcat when this happens?

henninghall avatar Dec 20 '21 17:12 henninghall