Closed sweetcoco closed 5 years ago
@sweetcoco Sorry for the late reply, will check the PR as soon as possible Thanks :smile:
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: 'ثانیه'}}
>
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.
for anyone who wants to change the font of digits, have to add this along the fontFamily: fontWeight: 'normal'
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 💀
Any plans?