@momo-kits/native-kits 0.89.11 → 0.89.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,27 +34,27 @@ fun getFont(font: String): FontFamily {
34
34
  "font:${font}",
35
35
  setOf(ResourceItem(setOf(), "font/${font}.ttf"))
36
36
  )
37
- if (getPlatformName() == "iOS") {
38
- return FontFamily.Default
39
- }
40
37
  return FontFamily(Font(fontResource))
41
38
  }
42
39
 
43
40
  @Composable
44
41
  fun getFontFamily(fontFamily: String, fontWeight: FontWeight? = FontWeight.Normal): FontFamily {
45
42
  val key = "$fontFamily-${fontWeight?.weight}"
43
+ if (getPlatformName() == "iOS") {
44
+ return FontFamily.Default
45
+ }
46
46
  val fontMap = mapOf(
47
- "SFProText-100" to getFont("SFProText-thin"),
48
- "SFProText-200" to getFont("SFProText-ultralight"),
49
- "SFProText-300" to getFont("SFProText-light"),
50
- "SFProText-400" to getFont("SFProText-regular"),
51
- "SFProText-500" to getFont("SFProText-medium"),
52
- "SFProText-600" to getFont("SFProText-semibold"),
53
- "SFProText-700" to getFont("SFProText-bold"),
54
- "SFProText-800" to getFont("SFProText-heavy"),
55
- "SFProText-900" to getFont("SFProText-black"),
47
+ "SFProText-100" to getFont("sfprotext_thin"),
48
+ "SFProText-200" to getFont("sfprotext_ultralight"),
49
+ "SFProText-300" to getFont("sfprotext_light"),
50
+ "SFProText-400" to getFont("sfprotext_regular"),
51
+ "SFProText-500" to getFont("sfprotext_medium"),
52
+ "SFProText-600" to getFont("sfprotext_medium"),
53
+ "SFProText-700" to getFont("sfprotext_semibold"),
54
+ "SFProText-800" to getFont("sfprotext_bold"),
55
+ "SFProText-900" to getFont("sfprotext_heavy"),
56
56
  )
57
- return fontMap[key] ?: getFont("SFProText-regular")
57
+ return fontMap[key] ?: getFont("sfprotext_regular")
58
58
  }
59
59
 
60
60
  @Immutable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.11",
3
+ "version": "0.89.12",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},