talalmajali / react-native-countdown-component

React Native CountDown
MIT License
271 stars 234 forks source link

Font support #18

Closed sweetcoco closed 5 years ago

sweetcoco commented 5 years ago

Any plans?

sweetcoco commented 5 years ago

PR opened: https://github.com/talalmajali/react-native-countdown-component/pull/19

talalmajali commented 5 years ago

@sweetcoco Sorry for the late reply, will check the PR as soon as possible Thanks :smile:

mojtabadarzi commented 5 years ago

i cant change font

<CountDown
    until={10000}
    onFinish={() => alert('finished')}
    onPress={() => alert('hello')}
    size={20}
    digitStyle={{
    backgroundColor:'#A52D53',
    borderRadius:50,
    fontFamily:'ISFBold'
   }}
    digitTxtStyle={{
             color:'#fff',
             fontFamily:'ISFBold'
    }}
    timeLabelStyle={{color: '#fff', fontWeight: 'bold' ,fontFamily:'ISFBold' }}
    timeToShow={['H', 'M ' , 'S']}
    timeLabels={{ h:'ساعت'  , m: 'دقیقه', s: 'ثانیه'}}
     >
hoangtrang1717 commented 4 years ago

i cant change font

<CountDown
    until={10000}
    onFinish={() => alert('finished')}
    onPress={() => alert('hello')}
    size={20}
    digitStyle={{
    backgroundColor:'#A52D53',
    borderRadius:50,
    fontFamily:'ISFBold'
   }}
    digitTxtStyle={{
             color:'#fff',
             fontFamily:'ISFBold'
    }}
    timeLabelStyle={{color: '#fff', fontWeight: 'bold' ,fontFamily:'ISFBold' }}
    timeToShow={['H', 'M ' , 'S']}
    timeLabels={{ h:'ساعت'  , m: 'دقیقه', s: 'ثانیه'}}
     >

In digitTxtStyle, change to digitTxtStyle={{ color:'#fff', fontFamily:'ISFBold', fontWeight: 'normal' }}, as same as timeLableStyle.

jamal-rahimzadegan commented 4 years ago

for anyone who wants to change the font of digits, have to add this along the fontFamily: fontWeight: 'normal'

rayyanekaputra commented 2 years ago

for anyone who wants to change the font of digits, have to add this along the fontFamily: fontWeight: 'normal'

This works, thank you!! i thought i was too stupid 💀