@momo-kits/native-kits 0.162.2-test.24-debug → 0.162.2-test.25-debug

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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.162.2-test.24-debug"
43
+ version = "0.162.2-test.25-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -24,7 +24,6 @@ import androidx.compose.foundation.shape.RoundedCornerShape
24
24
  import androidx.compose.runtime.Composable
25
25
  import androidx.compose.runtime.DisposableEffect
26
26
  import androidx.compose.runtime.LaunchedEffect
27
- import androidx.compose.runtime.mutableStateOf
28
27
  import androidx.compose.runtime.remember
29
28
  import androidx.compose.runtime.rememberCoroutineScope
30
29
  import androidx.compose.ui.Alignment
@@ -102,11 +101,7 @@ internal fun BottomSheet(
102
101
  )
103
102
  }
104
103
 
105
- val isClosing = remember { mutableStateOf(false) }
106
-
107
104
  fun closeEvent(){
108
- if (isClosing.value) return
109
- isClosing.value = true
110
105
  coroutineScope.launch {
111
106
  sheetOffset.animateTo(
112
107
  targetValue = screenHeightPx,
@@ -122,7 +117,7 @@ internal fun BottomSheet(
122
117
  easing = CubicBezierEasing(0.3f, 0.0f, 0.8f, 0.15f)
123
118
  )
124
119
  )
125
- navigator.pop()
120
+ OverplayComponentRegistry.hardClearAfterDismiss()
126
121
  }
127
122
  }
128
123
 
@@ -71,11 +71,7 @@ internal fun ModalScreen(
71
71
  }
72
72
  }
73
73
 
74
- val isClosing = remember { mutableStateOf(false) }
75
-
76
74
  fun closeEvent() {
77
- if (isClosing.value) return
78
- isClosing.value = true
79
75
  coroutineScope.launch {
80
76
  alpha.animateTo(
81
77
  targetValue = 0f,
@@ -85,7 +81,7 @@ internal fun ModalScreen(
85
81
  targetValue = 0.8f,
86
82
  animationSpec = tween(durationMillis = 200)
87
83
  )
88
- navigator.pop()
84
+ OverplayComponentRegistry.hardClearAfterDismiss()
89
85
  }
90
86
  }
91
87
 
package/gradle.properties CHANGED
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.162.2-test.24
21
+ version=0.162.2-test.25
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.162.2-test.24-debug",
3
+ "version": "0.162.2-test.25-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},