@momo-kits/native-kits 0.160.1-beta.15-debug → 0.160.1-beta.16-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-beta.15-debug"
43
+ version = "0.160.1-beta.16-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -234,7 +234,10 @@ fun ColumnScope.MainContent(content: @Composable ()-> Unit){
234
234
  val density = LocalDensity.current
235
235
  val scrollState = LocalScrollState.current
236
236
 
237
- Spacer(Modifier.height(if (options.headerType is HeaderType.Transparent || options.headerType is HeaderType.None) 0.dp else AppStatusBar.current + HEADER_HEIGHT.dp))
237
+ Spacer(Modifier.height(
238
+ if (options.headerType is HeaderType.DefaultOrExtended || (options.headerType is HeaderType.Transparent && !options.headerType.isFullScreenContent) || options.headerType is HeaderType.Animated)
239
+ AppStatusBar.current + HEADER_HEIGHT.dp else 0.dp)
240
+ )
238
241
 
239
242
  if (inputSearchType == InputSearchType.Animated){
240
243
  val scrollDp = with(density) { scrollState.value.toDp() }
@@ -230,7 +230,9 @@ sealed class HeaderType {
230
230
 
231
231
  data object None : HeaderType()
232
232
 
233
- data object Transparent : HeaderType()
233
+ data class Transparent(
234
+ val isFullScreenContent: Boolean = false
235
+ ) : HeaderType()
234
236
 
235
237
  data class Animated(
236
238
  val aspectRatio: AnimatedHeaderRatio = AnimatedHeaderRatio.RATIO_16_9,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.160.1-beta.15-debug",
3
+ "version": "0.160.1-beta.16-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},