talalmajali / react-native-countdown-component

React Native CountDown
MIT License
272 stars 236 forks source link

Text cut off in oneplus mobile #49

Closed 007vel closed 5 years ago

007vel commented 5 years ago

Countdown text not properly showing, text cut off in onpluse mobile, view the screenshot, my timer countdown is 14 : 55 but it showing 1 : 5

Screenshot_20190630-130137

shahrajk commented 5 years ago

share your code, please. @007vel

chakkizza commented 5 years ago

Hi, this is also happening for me .. and only for one plus mobile. Here is the code:

import CountDown from 'react-native-countdown-component';

<CountDown until={30} size={14} onFinish={null} digitTxtStyle={{color: '#000'}} timeToShow={['S']} timeLabels={{s: ''}} />

Also, I have added: declare module 'react-native-bottomsheet'; declare module 'react-native-countdown-component';

to the .d.ts file to get rid of the types error.

Please suggest.. This is a great library and works really well on other devices.

chakkizza commented 5 years ago

I have fixed this issue by explicitly passing the fontfamily in the digitTxtStyle property. This is probably because internally the library uses normal Text component of React Native and renders default font.. Once we pass it the correct font that we are using across app, it works fine. @007vel : Hope this helps.

gogul-ct commented 3 years ago

I have fixed this issue by explicitly passing the fontfamily in the digitTxtStyle property. This is probably because internally the library uses normal Text component of React Native and renders default font.. Once we pass it the correct font that we are using across app, it works fine. @007vel : Hope this helps.

@chakkizza Is it 'fontfamily' or 'fontFamily' and is it a string? I passed the fontFamily used as a prop, but it is not reflected