@momo-kits/native-kits 0.112.1-beta.13 → 0.112.1-beta.14

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.
@@ -68,7 +68,7 @@ val ApplicationContext = staticCompositionLocalOf<MiniAppContext?> {
68
68
  fun ApplicationContainer(
69
69
  theme: Theme = defaultTheme,
70
70
  composeApi: ComposeApi? = null,
71
- statusBarHeight: Dp? = AppStatusBar.current ?: getStatusBarHeight(),
71
+ statusBarHeight: Dp?,
72
72
  applicationContext: MiniAppContext? = null,
73
73
  content: @Composable () -> Unit,
74
74
  ) {
@@ -100,12 +100,14 @@ fun ApplicationContainer(
100
100
  }
101
101
  }
102
102
 
103
+ val appStatusBarHeight = statusBarHeight ?: getStatusBarHeight()
104
+
103
105
  disableOverscroll()
104
106
  CompositionLocalProvider(
105
107
  AppTheme provides appTheme,
106
108
  PlatformApi provides composeApi,
107
109
  AppNavigator provides Navigator(),
108
- AppStatusBar provides statusBarHeight,
110
+ AppStatusBar provides appStatusBarHeight,
109
111
  ApplicationContext provides applicationContext,
110
112
  ) {
111
113
  content()
@@ -116,8 +116,6 @@ struct ToolkitHeaderRight: View {
116
116
  funcName: "showHelpCenter",
117
117
  params: paramMap
118
118
  ) { _ in }
119
-
120
- print("Press help center")
121
119
  }
122
120
 
123
121
  private func onPressClose() {
@@ -43,11 +43,11 @@ public struct Icon: View {
43
43
  }
44
44
 
45
45
  public var body: some View {
46
- // if let uri = iconSources[source]?.uri {
47
- ImageView(source)
46
+ if let uri = iconSources[source]?.uri {
47
+ ImageView(uri)
48
48
  .frame(width: size, height: size)
49
49
  .foregroundColor(color)
50
- // }
50
+ }
51
51
  }
52
52
  }
53
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.112.1-beta.13",
3
+ "version": "0.112.1-beta.14",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},