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

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,8 +163,7 @@ fun Header(
163
163
  titlePosition: TitlePosition,
164
164
  title: String,
165
165
  headerRight: @Composable (() -> Unit)? = null,
166
- isBack: Boolean = true,
167
- goBack: (() -> Unit) = { },
166
+ goBack: (() -> Unit)?,
168
167
  opacity: Float? = null,
169
168
  animatedHeader: AnimatedHeader? = null,
170
169
  useSearchInput: Boolean? = false,
@@ -207,7 +206,7 @@ fun Header(
207
206
  horizontalArrangement = Arrangement.SpaceBetween
208
207
  ) {
209
208
  Box {
210
- if (isBack) {
209
+ if (goBack !== null) {
211
210
  Box(
212
211
  modifier = Modifier
213
212
  .size(28.dp)
@@ -255,7 +254,7 @@ fun Header(
255
254
  .padding(horizontal = Spacing.M),
256
255
  verticalAlignment = Alignment.CenterVertically,
257
256
  ) {
258
- if (isBack) {
257
+ if (goBack !== null) {
259
258
  Spacer(Modifier.width(40.dp))
260
259
  }
261
260
  if (useSearchInput == true && inputSearchProps != null) {
@@ -118,7 +118,6 @@ fun Screen(
118
118
  titlePosition = titlePosition,
119
119
  headerRight = headerRight,
120
120
  goBack = goBack,
121
- isBack = isBack,
122
121
  opacity = opacity,
123
122
  animatedHeader = animatedHeader,
124
123
  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.2",
3
+ "version": "0.89.33",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},