Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text cut off in oneplus mobile #49

Closed
007vel opened this issue Jun 30, 2019 · 4 comments
Closed

Text cut off in oneplus mobile #49

007vel opened this issue Jun 30, 2019 · 4 comments

Comments

@007vel
Copy link

007vel commented Jun 30, 2019

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
Copy link

shahrajk commented Jul 4, 2019

share your code, please. @007vel

@chakkizza
Copy link

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
Copy link

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
Copy link

gogul-ct commented May 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants