@momo-kits/native-kits 0.169.15-beta.3-debug → 0.169.15-beta.4-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/bottomtab/BottomTab.kt +2 -1
- package/gradle.properties +1 -1
- package/ios/Navigation/BottomTab/BottomTab.swift +2 -1
- package/ios/native-kits.podspec +1 -1
- package/ios-demo/MoMoUIKitsDemo.podspec +1 -1
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BottomTabDemo.swift +1 -1
- package/package.json +1 -1
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -86,7 +86,8 @@ fun BottomTab(
|
|
|
86
86
|
backToInitialTab: Boolean = true,
|
|
87
87
|
// phone only: the pre-redesign docked bar (64dp, top indicator, curved center button) and its content
|
|
88
88
|
// inset; floatingTabBarContentPadding() is then 0 and content keeps reserving the bar. Duo is unchanged.
|
|
89
|
-
|
|
89
|
+
// On by default until the redesign rolls out; pass false for the floating bar.
|
|
90
|
+
useLegacy: Boolean = true,
|
|
90
91
|
) {
|
|
91
92
|
val navigation = LocalNavigation.current
|
|
92
93
|
val navigator = LocalNavigator.current
|
package/gradle.properties
CHANGED
|
@@ -28,6 +28,7 @@ public struct BottomTab: View {
|
|
|
28
28
|
/// `compressionBehavior`: iPhone Duo bar that starts compressed when the side bar can't hold both (a tap swaps).
|
|
29
29
|
/// `onTabPress` gets the switch to run, e.g. after a login gate. `backToInitialTab`: back goes to it first.
|
|
30
30
|
/// `useLegacy`: the pre-redesign phone bar (full width, content kept above it; edge to edge ignored).
|
|
31
|
+
/// On by default until the redesign rolls out; pass false for the floating bar.
|
|
31
32
|
public init(
|
|
32
33
|
items: [BottomTabItem],
|
|
33
34
|
floatingButton: BottomTabFloatingButton? = nil,
|
|
@@ -35,7 +36,7 @@ public struct BottomTab: View {
|
|
|
35
36
|
initialRouteName: String? = nil,
|
|
36
37
|
onTabPress: ((_ index: Int, _ switchTab: @escaping () -> Void) -> Void)? = nil,
|
|
37
38
|
backToInitialTab: Bool = true,
|
|
38
|
-
useLegacy: Bool =
|
|
39
|
+
useLegacy: Bool = true
|
|
39
40
|
) {
|
|
40
41
|
self.items = items
|
|
41
42
|
self.floatingButton = floatingButton
|
package/ios/native-kits.podspec
CHANGED
|
@@ -38,7 +38,7 @@ private struct DemoConfig: Hashable {
|
|
|
38
38
|
var ctaLottie = false
|
|
39
39
|
var initialRouteName = "Momo"
|
|
40
40
|
var compressionBehavior: DuoBarCompressionBehavior = .toolbar
|
|
41
|
-
var useLegacy =
|
|
41
|
+
var useLegacy = true
|
|
42
42
|
var backToInitialTab = true
|
|
43
43
|
// a sticky footer in the tab's content body, to check it clears the floating bar
|
|
44
44
|
var footer = false
|