-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dates and months not visible #296
Comments
I am pretty sure that this is caused by the new ios 13 update and the dark mode. Have you found a workaround for it yet? |
@schumannd Yes, you are right it is a problem with the new "Dark" mode in iOS. I changed to "Light" mode and the picker is looking fine. The problem is that some of the users(as I was) could be using "Dark" mode. I don't have a workaround for now. Hope that the guys from this repo could help us. |
This happens for me as well when testing on iPhone Xs Max with iOS 13 and Dark mode. Any solution / workaround for it yet? |
I found a solution (see my SO article) Add this to your Info.plist
|
This works for me also! This is a dirty workaround but at least for now - it is something. |
@alexstoyanov @schumannd hi! 👋 This is related to the iOS dark mode support. |
Any solution for Expo? |
@spyshower I would strongly suggest ejecting |
I get your point but I am literally one step before my app's official release :( |
@spyshower can’t you detect if the dark mode is enabled from Expo and update the UI accordingly (like is suggested in the README)? |
Yep.. yep.. you right. Fixed. Thank you 🍡 |
Is it currently explained in Readme? couldn't find it |
Fix:
<DateTimePickerModal |
iOS 13.1.2
Description
I have been using react-native-modal-datetime-picker for a long time without any problem. But now I got a problem with the date picker. The dates and months are not visible. I am attaching a screenshot of the issue.
Reproducible Demo
`
import React, {Component} from "react";
import {StyleSheet, TouchableOpacity, View} from "react-native";
import {connect} from "react-redux";
import {Text} from "native-base";
import * as Strings from "../../utils/Strings";
import DateTimePicker from 'react-native-modal-datetime-picker';
class DatePickerField extends Component {
constructor(props) {
super(props);
this.state = {
isDateTimePickerVisible: false,
};
}
}
const styles = StyleSheet.create({
containerStyle: {
flex: 1,
flexDirection: 'column',
},
labelStyle: {
fontSize: 12,
alignSelf: 'flex-start',
},
dateContainerStyle: {
borderRadius: 12,
backgroundColor: '#FFFFFF29',
height: 38,
alignItems: 'center',
paddingLeft: 8,
paddingRight: 8,
flexDirection: 'row',
alignSelf: 'flex-start',
marginTop: 4
},
dropDownIconStyle: {
justifyContent: 'flex-end'
},
dateTextStyle: {
color: '#FFFFFF70',
flex: 1
}
});
function convertDate(inputFormat) {
function pad(s) {
return (s < 10) ? '0' + s : s;
}
}
const mapStateToProps = state => ({});
export default connect(mapStateToProps, {})(DatePickerField);
`
The text was updated successfully, but these errors were encountered: