mmazzarolo / react-native-modal-datetime-picker

A React-Native datetime-picker for Android and iOS
MIT License
2.97k stars 398 forks source link

iOS 15.1.1 picker not showing the month field #617

Closed praveen-eci closed 2 years ago

praveen-eci commented 2 years ago

Environment

iOS - OS version 15.1.1 didn't get the error proper wheel picker response

Platforms

iOS

Versions

15.1.1

-- react-native- iOS:

Description

Please check the below-attached image below this is occurring on ios 15.1.1 device iphone 13 pro max only showing date and year month is not displaying in this picker and also the font color is dull. picker error

Reproducible Demo

praveen-eci commented 2 years ago

@mmazzarolo why are you closing this any solution on this issue..?

xaviserrag commented 2 years ago

I am having the same problem on iOS after version 15 release.

LukhiKartik commented 2 years ago

Why this is closed without any solution? I am facing same issue in iOS 15

vatsal-gadhiya-searce commented 2 years ago

@mmazzarolo To dig further It's not working in dark mode only.

iamalvisng commented 2 years ago

Reproducible when setting Appearance set to Dark in iOS Settings > Display & Brightness (iOS 15.1.1)

const colorScheme = Appearance.getColorScheme();
const isDarkModeEnabled = colorScheme === 'dark';
console.log(isDarkModeEnabled) // false

<DateTimePickerModal
    isVisible={isDatePickerVisible}
    mode="date"
    display="spinner"
    onConfirm={handleDateConfirm}
    onCancel={hideDatePicker}
    isDarkModeEnabled={isDarkModeEnabled}
/>

The issue is colorScheme will alway return 'light' in debugging mode.

The issue is not reproducible when I Stop Debugging from the React Native Debug Menu. I think it is related to these issues:

  1. https://github.com/facebook/react-native/issues/29144
  2. https://github.com/facebook/react-native/issues/31775

You may find solutions from there, but I did not check further as that is not a major blocker for me atm.