@momo-kits/native-kits 0.164.1-beta.12-debug → 0.164.1-beta.13-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.
- package/compose/build.gradle.kts +1 -1
- package/compose/compose.podspec +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +20 -0
- package/gradle.properties +1 -1
- package/ios/native-kits.podspec +1 -1
- package/ios-demo/MoMoUIKitsDemo.podspec +1 -1
- package/package.json +1 -1
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -181,6 +181,26 @@ internal fun StackScreen(
|
|
|
181
181
|
|
|
182
182
|
BackHandler(hasCustomBackHandling) { navigator.onBackSafe() }
|
|
183
183
|
|
|
184
|
+
// TEMPORARY DIAGNOSTIC (DS-760) — remove once the swallowing term is known.
|
|
185
|
+
// While this handler is enabled it out-ranks NavHost's predictive-back handler, so the back
|
|
186
|
+
// still lands on release but nothing seeks: the pop works and the transition is missing,
|
|
187
|
+
// which is exactly what is being reported. The test device has no Xcode, so the one channel
|
|
188
|
+
// known to reach it reports which of the six terms is true. Distinct styles, felt on entering
|
|
189
|
+
// the screen; "medium" means the whole predicate is false and the seek should be running.
|
|
190
|
+
LaunchedEffect(hasCustomBackHandling, options, isBottomTabChild) {
|
|
191
|
+
val api = maxApi ?: return@LaunchedEffect
|
|
192
|
+
val style = when {
|
|
193
|
+
!SwipeBackConfig.enabled -> "heavy"
|
|
194
|
+
isBottomTabChild -> "heavy"
|
|
195
|
+
options.onBackHandler != null -> "rigid"
|
|
196
|
+
options.headerBackProps.preventBack != null -> "soft"
|
|
197
|
+
OverplayComponentRegistry.isOverplayShowing() -> "soft"
|
|
198
|
+
!navigator.canPop() -> "heavy"
|
|
199
|
+
else -> "medium"
|
|
200
|
+
}
|
|
201
|
+
runCatching { api.triggerEventVibration(style, callback = null) }
|
|
202
|
+
}
|
|
203
|
+
|
|
184
204
|
CompositionLocalProvider(
|
|
185
205
|
StackScreenScrollableState provides options.scrollData.scrollState,
|
|
186
206
|
LocalNavigation provides navigation,
|
package/gradle.properties
CHANGED
package/ios/native-kits.podspec
CHANGED