@momo-kits/native-kits 0.89.33-rc.1 → 0.89.33-rc.2

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.
@@ -163,7 +163,8 @@ fun Header(
163
163
  titlePosition: TitlePosition,
164
164
  title: String,
165
165
  headerRight: @Composable (() -> Unit)? = null,
166
- goBack: (() -> Unit)?,
166
+ isBack: Boolean = true,
167
+ goBack: (() -> Unit) = { },
167
168
  opacity: Float? = null,
168
169
  animatedHeader: AnimatedHeader? = null,
169
170
  useSearchInput: Boolean? = false,
@@ -206,7 +207,7 @@ fun Header(
206
207
  horizontalArrangement = Arrangement.SpaceBetween
207
208
  ) {
208
209
  Box {
209
- if (goBack !== null) {
210
+ if (isBack) {
210
211
  Box(
211
212
  modifier = Modifier
212
213
  .size(28.dp)
@@ -254,7 +255,7 @@ fun Header(
254
255
  .padding(horizontal = Spacing.M),
255
256
  verticalAlignment = Alignment.CenterVertically,
256
257
  ) {
257
- if (goBack !== null) {
258
+ if (isBack) {
258
259
  Spacer(Modifier.width(40.dp))
259
260
  }
260
261
  if (useSearchInput == true && inputSearchProps != null) {
@@ -56,7 +56,7 @@ fun Screen(
56
56
  horizontalAlignment: Alignment.Horizontal = Alignment.Start,
57
57
  title: String = "Stack",
58
58
  titlePosition: TitlePosition = TitlePosition.LEFT,
59
- goBack: (() -> Unit)?,
59
+ goBack: (() -> Unit) = { },
60
60
  scrollable: Boolean = true,
61
61
  scrollState: ScrollState = rememberScrollState(),
62
62
  onContentLayout: ((LayoutCoordinates) -> Unit)? = null,
@@ -118,6 +118,7 @@ fun Screen(
118
118
  titlePosition = titlePosition,
119
119
  headerRight = headerRight,
120
120
  goBack = goBack,
121
+ isBack = isBack,
121
122
  opacity = opacity,
122
123
  animatedHeader = animatedHeader,
123
124
  useSearchInput = useSearchInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.33-rc.1",
3
+ "version": "0.89.33-rc.2",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},