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