akveo / akveo/react-native-ui-kitten

Button text seems inconsistent between iOS and Android (OpenSans is configured)

オープン
#1,506 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
10.7k
フォーク
962
PR マージ指標
30日以内にマージされた PR はありません

説明

## 💬 Question

My Expo/RN app is setup to user OpenSans per instructions and after adding font-family info to my mapping file (for all text styles) everything is very consistent across iOS and Android -- **except for Button text**.

As mentioned, I do have OpenSans installed, loaded during startup, and configured with the following mapping:

```
"strict": {
"text-font-family": "OpenSans-Regular",
"text-heading-1-font-family": "OpenSans-Bold",
"text-heading-2-font-family": "OpenSans-Bold",
"text-heading-3-font-family": "OpenSans-Bold",
"text-heading-4-font-family": "OpenSans-Bold",
"text-heading-5-font-family": "OpenSans-Bold",
"text-heading-6-font-family": "OpenSans-Bold",
"text-subtitle-1-font-family": "OpenSans-SemiBold",
"text-subtitle-2-font-family": "OpenSans-SemiBold",
"text-paragraph-1-font-family": "OpenSans-Regular",
"text-paragraph-2-font-family": "OpenSans-Regular",
"text-caption-1-font-family": "OpenSans-Regular",
"text-caption-2-font-family": "OpenSans-Regular",
"text-label-font-family": "OpenSans-Bold"
},
```

However when doing a simple `Text` the results seem inconsistent across platforms. The following screenshot was taken with the following code:

```
Plain Text
Text Component
{() => Text Component Function}
```

I left a little "calendar event time" section from the app below it just to show that text is very consistent otherwise.

![ReactKittenUIButtonText](https://user-images.githubusercontent.com/386101/130841533-9534be15-fb44-44a2-aa31-dafc0dc1c29a.png)

From the sample you can see that I can make things consistent by using a function component wrapper, but am curious if I have something wrong before having to do that throughout ?

Thanks.. Kitten is awesome :)

## UI Kitten and Eva version

| Package | Version |
| ----------- | ----------- |
| @eva-design/eva | 2.1.1 |
| @ui-kitten/components | 5.1.1 |

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。