@momo-kits/native-kits 0.160.1-scrolltotop.19-debug → 0.160.1-scrolltotop.20-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.160.1-scrolltotop.19-debug"
43
+ version = "0.160.1-scrolltotop.20-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -4,6 +4,8 @@ import androidx.compose.animation.*
4
4
  import androidx.compose.animation.core.tween
5
5
  import androidx.compose.runtime.*
6
6
  import androidx.compose.ui.unit.Dp
7
+ import androidx.lifecycle.Lifecycle
8
+ import androidx.lifecycle.compose.LifecycleEventEffect
7
9
  import androidx.navigation.compose.NavHost
8
10
  import androidx.navigation.compose.composable
9
11
  import androidx.navigation.compose.rememberNavController
@@ -38,8 +40,13 @@ fun NavigationContainer(
38
40
 
39
41
  val theme = remember { mutableStateOf(initialTheme) }
40
42
 
41
- LaunchedEffect(Unit) {
43
+
44
+ LifecycleEventEffect(Lifecycle.Event.ON_RESUME) {
45
+ // Code to run when the screen is resumed
42
46
  onNavigatorEntered(navigator)
47
+ }
48
+
49
+ LaunchedEffect(Unit) {
43
50
  val headerBar = config?.headerBar
44
51
  if (headerBar != null && theme.value.assets.headerBackground == null) {
45
52
  theme.value = theme.value.copy(
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.160.1-scrolltotop.19
21
+ version=0.160.1-scrolltotop.20
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.160.1-scrolltotop.19-debug",
3
+ "version": "0.160.1-scrolltotop.20-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},