-
Notifications
You must be signed in to change notification settings - Fork 992
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
Fix text font on Android #182
Comments
Maybe, this is react native issue and I have some information about this, why this is happing.. If Text component has bold CSS property without any default font family and view flex direction row then this is happy because some Android phones forcefully applying your phone UI default theme like OOPO and Vivo. I have to face the same issue with my app. Check this time 53:06 link |
Thank you for the video @iamabhishektomar 👍 |
This means it should be fixed soon 😄 |
Anyone found any temp fix for this issue? |
In context of Kitten Tricks app, you can modify text styles with following code {
headline: {
fontFamily: 'opensans-bold',
fontWeight: 'normal',
},
subtitle: {
fontFamily: 'opensans-semibold',
fontWeight: 'normal',
},
paragraph: {
fontFamily: 'opensans-regular',
fontWeight: 'normal',
},
caption1: {
fontFamily: 'opensans-regular',
fontWeight: 'normal',
},
caption2: {
fontFamily: 'opensans-semibold',
fontWeight: 'normal',
},
label: {
fontFamily: 'opensans-bold',
fontWeight: 'normal',
},
} This will explicitly set |
@artyorsh if there's no special features (used by kitten) only exist in expo sdk 33.0.0 just downgrade to 31.0.6 This error related to react-native itself (react-native > 0.57.8) now I'm using 0.57.8 every thing work 100% expo sdk 31.0.6 --> uses react-native 0.57.1 so it should work 100% |
Thanks for the details @deounix |
@artyorsh I also install expo sdk 31 u must also downgrade some expo library
will after testing every thing work except buttons and tabs text inside got padding. but simple texts now fixed! showed correctly. I don't know what is the problem. I also test ui kitten with latest react-native version and these problems showed to me. Also tested ui kitten with react-native 0.57.8 and every thing work 100%. even if I use opensans font (here I'm not using any expo lib (camera, font load, .... etc)) Please re structure kitten tricks (make it simple cuz we love simplicity) (use same structure that used before) now when I opening the project I lost between files and don't know from where should I start. |
What do you dislike with the structure? |
@artyorsh I understand the structure now 😂. Also this bug has been fixed in the new android release (20/06/2019) You can close this issue. |
@deounix Thanks for the notice! Unfortunately, we can't close this while there is no Expo SDK built on top of the latest RN. Hope we can do this till the next Kitten Tricks app update 🤞 |
Reported in #181
The text was updated successfully, but these errors were encountered: