Closed praveen-eci closed 2 years ago
@mmazzarolo why are you closing this any solution on this issue..?
I am having the same problem on iOS after version 15 release.
Why this is closed without any solution? I am facing same issue in iOS 15
@mmazzarolo To dig further It's not working in dark mode only.
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:
You may find solutions from there, but I did not check further as that is not a major blocker for me atm.
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.
Reproducible Demo