React-native: [IOS] Improve DatePickerIOS style

Created on 22 Feb 2017  路  6Comments  路  Source: facebook/react-native

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! 馃憤

iOS Locked

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.

All 6 comments

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:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

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

Was this page helpful?
0 / 5 - 0 ratings