React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
The function named getTextColor in index.js was returning undefined, updated it to 'black'. So that when we have light theme applied, the text color is set to black instead of undefined.
Previously, when we have light these the text was not shown because its color are background color were both white.
It must be set to black for white background
Changes Suggested in following function
const getTextColor = (props) => {
const darkTheme = getTheme(props) === 'dark'
if (darkTheme) return 'white'
return undefined // should be black
}
The function named getTextColor in index.js was returning undefined, updated it to 'black'. So that when we have light theme applied, the text color is set to black instead of undefined.
Previously, when we have light these the text was not shown because its color are background color were both white.
It must be set to black for white background