datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Custom font

Open corradio opened this issue 5 years ago • 5 comments

Is it possible to pass a style fontSize and fontFamily? It currently doesn't work.

corradio avatar Sep 10 '19 09:09 corradio

@corradio did you ever find a solution to this? I'm also having this problem and even more importantly, I need to be able to change the text color since I have a dark background

BenjErgizerBunny avatar Oct 28 '19 20:10 BenjErgizerBunny

Unfortunately I did not find a solution for this :/

On Mon 28 Oct 2019 at 21:29, Benji [email protected] wrote:

@corradio https://github.com/corradio did you ever find a solution to this? I'm also having this problem and even more importantly, I need to be able to change the text color since I have a dark background

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-native-community/react-native-datetimepicker/issues/24?email_source=notifications&email_token=AAMUIKFF4P4PY3QJE5LJMALQQ5DQ5A5CNFSM4IVFOHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOJDKA#issuecomment-547131816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMUIKFLPLWDPQVUFNXBSTLQQ5DQ5ANCNFSM4IVFOHLA .

corradio avatar Oct 29 '19 06:10 corradio

Any comment from the maintainers on this? I'd really like this feature as well.

bsbechtel avatar Dec 23 '19 10:12 bsbechtel

for changing font color, that seems kinda possible, but perhaps not the idiomatic way to do so, see SO

as for Android, some customization can probably be done by editing some theme-related xml files. I do not have plan to add this, feel free to contribute. Thank you.

vonovak avatar Jan 30 '20 22:01 vonovak

Hi, i run into the same error, i did use the customStyle dateText, and it did work fine for me customStyles={{

        dateIcon: {
          width:0,
          height:0,
          },
          dateInput:
          {
            borderWidth: 0, 
            position:'absolute',
            left: 0,
            
          },
          dateText:
          {
            fontFamily:'raleway',
            color: Colors.gray_light,
          }
      }}

elallaoui-m avatar May 14 '20 05:05 elallaoui-m