react-native-date-picker
react-native-date-picker copied to clipboard
Add prop contentFont for android
I added contentFont for custom typeface in content text. It just work for android
Thanks for the PR! what do you mean by "content" in this context of "contentFont"?
The end objective is to call super.setContentTextTypeface()
so this 'content' is get from this word setContentTextTypeface(), Does it make sense?
Thanks once again, some questions:
- Can you give an example on how to use this?
- Should the prop be the name of the font, a path to a font or a font file?
- Where should the font file be placed?
- Does it support built in fonts and/or custom ones?
- Can we support the android native variant?
- Can we support iOS?
Thanks once again, some questions:
-
Can you give an example on how to use this?
<DatePicker ....... date={date} onDateChange={setDate} contentFont="fonts/NunitoSans-Italic.ttf" /> -
Should the prop be the name of the font, a path to a font or a font file? It should be location path like "fonts/NunitoSans-Italic.ttf"
-
Where should the font file be placed? fonts in assets android
-
Does it support built in fonts and/or custom ones? yes, as I show on fonts in assets android
-
Can we support the android native variant? just only for variant ios-clone
6, Can we support iOS?
As I checked, lib use ios native lib so we can not adjust font family, font size as well ...
iOS clone is no longer supported, this feature could still be useful for the nativeAndroid variant