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

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) {
@@ -117,7 +117,6 @@ fun Screen(
117
117
  title = title,
118
118
  titlePosition = titlePosition,
119
119
  headerRight = headerRight,
120
- isBack = isBack,
121
120
  goBack = goBack,
122
121
  opacity = opacity,
123
122
  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.15",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},