@momo-kits/native-kits 0.89.8 → 0.89.9

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.
@@ -88,7 +88,6 @@ fun Header(
88
88
  headerType: HeaderType = HeaderType.DEFAULT,
89
89
  titlePosition: TitlePosition,
90
90
  title: String,
91
- backgroundColor: Color,
92
91
  isBack: Boolean,
93
92
  headerRight: @Composable (() -> Unit)? = null,
94
93
  goBack: (() -> Unit) = { },
@@ -108,7 +107,6 @@ fun Header(
108
107
  if (headerType != HeaderType.NONE) {
109
108
  BoxWithConstraints(
110
109
  Modifier.height(statusBarHeight + 52.dp)
111
- .background(backgroundColor)
112
110
  .fillMaxWidth()
113
111
  .bottomBorder(
114
112
  strokeWidth = if (headerType == HeaderType.SURFACE) 2.dp else 0.dp,
@@ -38,7 +38,7 @@ enum class HeaderType {
38
38
 
39
39
  @Composable
40
40
  fun Screen(
41
- backgroundColor: Color = Color.Unspecified,
41
+ backgroundColor: Color? = null,
42
42
  headerBackground: String? = null,
43
43
  isBack: Boolean = true,
44
44
  headerType: HeaderType = HeaderType.DEFAULT,
@@ -63,7 +63,7 @@ fun Screen(
63
63
  }
64
64
 
65
65
  Box(
66
- Modifier.fillMaxSize().background(AppTheme.current.colors.background.default)
66
+ Modifier.fillMaxSize().background(backgroundColor ?: AppTheme.current.colors.background.default)
67
67
  ) {
68
68
  HeaderImage(headerType, headerBackground ?: AppTheme.current.assets.headerBackground)
69
69
  Column(
@@ -77,7 +77,6 @@ fun Screen(
77
77
  headerType = headerType,
78
78
  title = title,
79
79
  titlePosition = titlePosition,
80
- backgroundColor = backgroundColor,
81
80
  headerRight = headerRight,
82
81
  isBack = isBack,
83
82
  goBack = goBack,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.8",
3
+ "version": "0.89.9",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},