@momo-kits/native-kits 0.89.32-nav.13 → 0.89.32-nav.14

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.
@@ -162,9 +162,8 @@ fun Header(
162
162
  headerType: HeaderType = HeaderType.DEFAULT,
163
163
  titlePosition: TitlePosition,
164
164
  title: String,
165
- isBack: Boolean,
166
165
  headerRight: @Composable (() -> Unit)? = null,
167
- goBack: (() -> Unit) = { },
166
+ goBack: (() -> Unit)?,
168
167
  opacity: Float? = null,
169
168
  animatedHeader: AnimatedHeader? = null,
170
169
  useSearchInput: Boolean? = false,
@@ -215,7 +214,7 @@ fun Header(
215
214
  horizontalArrangement = Arrangement.SpaceBetween
216
215
  ) {
217
216
  Box {
218
- if (isBack) {
217
+ if (goBack !== null) {
219
218
  Box(
220
219
  modifier = Modifier
221
220
  .size(28.dp)
@@ -263,7 +262,7 @@ fun Header(
263
262
  .padding(horizontal = Spacing.M),
264
263
  verticalAlignment = Alignment.CenterVertically,
265
264
  ) {
266
- if (isBack) {
265
+ if (goBack !== null) {
267
266
  Spacer(Modifier.width(40.dp))
268
267
  }
269
268
  if (useSearchInput == true && inputSearchProps != null) {
@@ -50,7 +50,6 @@ enum class HeaderType {
50
50
  @Composable
51
51
  fun Screen(
52
52
  backgroundColor: Color? = null,
53
- isBack: Boolean = true,
54
53
  headerType: HeaderType = HeaderType.DEFAULT,
55
54
  verticalArrangement: Arrangement.Vertical = Arrangement.Top,
56
55
  horizontalAlignment: Alignment.Horizontal = Alignment.Start,
@@ -117,7 +116,6 @@ fun Screen(
117
116
  title = title,
118
117
  titlePosition = titlePosition,
119
118
  headerRight = headerRight,
120
- isBack = isBack,
121
119
  goBack = goBack,
122
120
  opacity = opacity,
123
121
  animatedHeader = animatedHeader,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.32-nav.13",
3
+ "version": "0.89.32-nav.14",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},