DatePickerIOS doesn't have a editable style.
this pull resquest is 'merged'
https://github.com/facebook/react-native/pull/10356
but it isn't in the master
It would be good to be able to control the fontFamily, fontSize.. etc
In DatePickerIOS.ios.js maybe must have a stylePicker for a height control ...etc.
One solution would be to put a property like stylePicker:
style={[styles.datePickerIOS, props.stylePicker]}
Would any charitable, caring soul be able to implement this? Thanks! 馃憤
That pull request was closed because it used private APIs that would cause rejection in the app store. Do you know if it can be done with public UIKit APIs?
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
I vote to reopen this issue. My team now has to manually implement a date picker with different text color than the default using regular Picker components. We just need to be able to control simple styling aspects like text color, font size, font family, all that good stuff, thanks.
Is there any ability to replace standard RCDatePickerManager.m with my edited version via DI or something else?
It's not ok to edit files inside ReactNative lib directory.
There is really small documentation about DI that contains no explanation and use cases.
This really is a pain.
@hugoh1995
Make the changes manually
Most helpful comment
I vote to reopen this issue. My team now has to manually implement a date picker with different text color than the default using regular Picker components. We just need to be able to control simple styling aspects like text color, font size, font family, all that good stuff, thanks.