@expo/ui 58.0.22 → 58.0.23
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/CHANGELOG.md +12 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/ComposeViews.kt +53 -29
- package/android/src/main/java/expo/modules/ui/HostView.kt +52 -8
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +40 -12
- package/android/src/main/java/expo/modules/ui/UniversalLayout.kt +610 -0
- package/android/src/main/java/expo/modules/ui/state/ObservableState.kt +2 -0
- package/android/src/main/java/expo/modules/ui/state/WorkletCallback.kt +2 -0
- package/build/jetpack-compose/Column/index.d.ts +5 -0
- package/build/jetpack-compose/Column/index.js.map +1 -1
- package/build/jetpack-compose/Row/index.d.ts +5 -0
- package/build/jetpack-compose/Row/index.js.map +1 -1
- package/build/recycling/useRecycledRows.d.ts +2 -0
- package/build/recycling/useRecycledRows.js +1 -0
- package/build/recycling/useRecycledRows.js.map +1 -1
- package/build/swift-ui/HStack/index.d.ts +6 -0
- package/build/swift-ui/HStack/index.js.map +1 -1
- package/build/swift-ui/VStack/index.d.ts +6 -0
- package/build/swift-ui/VStack/index.js.map +1 -1
- package/build/universal/Button/index.android.js +3 -1
- package/build/universal/Button/index.android.js.map +1 -1
- package/build/universal/Button/index.ios.js +3 -1
- package/build/universal/Button/index.ios.js.map +1 -1
- package/build/universal/Collapsible/index.ios.js +1 -0
- package/build/universal/Collapsible/index.ios.js.map +1 -1
- package/build/universal/Column/index.android.js +4 -1
- package/build/universal/Column/index.android.js.map +1 -1
- package/build/universal/Column/index.ios.js +2 -0
- package/build/universal/Column/index.ios.js.map +1 -1
- package/build/universal/Column/index.js +13 -4
- package/build/universal/Column/index.js.map +1 -1
- package/build/universal/FieldGroup/FieldGroup.android.js +3 -1
- package/build/universal/FieldGroup/FieldGroup.android.js.map +1 -1
- package/build/universal/FieldGroup/FieldGroup.ios.js +3 -1
- package/build/universal/FieldGroup/FieldGroup.ios.js.map +1 -1
- package/build/universal/FieldGroup/FieldSection.android.js +13 -4
- package/build/universal/FieldGroup/FieldSection.android.js.map +1 -1
- package/build/universal/FieldGroup/FieldSection.ios.js +3 -1
- package/build/universal/FieldGroup/FieldSection.ios.js.map +1 -1
- package/build/universal/Icon/index.android.js +3 -1
- package/build/universal/Icon/index.android.js.map +1 -1
- package/build/universal/Icon/index.ios.js +3 -1
- package/build/universal/Icon/index.ios.js.map +1 -1
- package/build/universal/List/ListForEach.android.d.ts +7 -0
- package/build/universal/List/ListForEach.android.js +6 -0
- package/build/universal/List/ListForEach.android.js.map +1 -0
- package/build/universal/List/ListForEach.d.ts +5 -0
- package/build/universal/List/ListForEach.ios.d.ts +5 -0
- package/build/universal/List/ListForEach.ios.js +11 -0
- package/build/universal/List/ListForEach.ios.js.map +1 -0
- package/build/universal/List/ListForEach.js +263 -0
- package/build/universal/List/ListForEach.js.map +1 -0
- package/build/universal/List/ListScrollContext.d.ts +5 -0
- package/build/universal/List/ListScrollContext.js +6 -0
- package/build/universal/List/ListScrollContext.js.map +1 -0
- package/build/universal/List/index.android.d.ts +5 -0
- package/build/universal/List/index.android.js +3 -0
- package/build/universal/List/index.android.js.map +1 -1
- package/build/universal/List/index.d.ts +5 -0
- package/build/universal/List/index.ios.d.ts +5 -0
- package/build/universal/List/index.ios.js +3 -0
- package/build/universal/List/index.ios.js.map +1 -1
- package/build/universal/List/index.js +12 -1
- package/build/universal/List/index.js.map +1 -1
- package/build/universal/List/types.d.ts +42 -1
- package/build/universal/List/types.js +1 -3
- package/build/universal/List/types.js.map +1 -1
- package/build/universal/RNHostView/index.android.js +3 -1
- package/build/universal/RNHostView/index.android.js.map +1 -1
- package/build/universal/Row/index.android.js +4 -1
- package/build/universal/Row/index.android.js.map +1 -1
- package/build/universal/Row/index.ios.js +2 -0
- package/build/universal/Row/index.ios.js.map +1 -1
- package/build/universal/Row/index.js +13 -7
- package/build/universal/Row/index.js.map +1 -1
- package/build/universal/ScrollView/index.android.js +8 -1
- package/build/universal/ScrollView/index.android.js.map +1 -1
- package/build/universal/ScrollView/index.ios.js +3 -1
- package/build/universal/ScrollView/index.ios.js.map +1 -1
- package/build/universal/Spacer/index.android.js +3 -1
- package/build/universal/Spacer/index.android.js.map +1 -1
- package/build/universal/Spacer/index.ios.js +3 -1
- package/build/universal/Spacer/index.ios.js.map +1 -1
- package/build/universal/Text/index.android.js +3 -1
- package/build/universal/Text/index.android.js.map +1 -1
- package/build/universal/Text/index.ios.js +3 -1
- package/build/universal/Text/index.ios.js.map +1 -1
- package/build/universal/TextInput/index.android.js +22 -7
- package/build/universal/TextInput/index.android.js.map +1 -1
- package/build/universal/TextInput/index.ios.js +1 -0
- package/build/universal/TextInput/index.ios.js.map +1 -1
- package/build/universal/index.d.ts +1 -1
- package/build/universal/modifierUtils.d.ts +34 -1
- package/build/universal/modifierUtils.js +98 -2
- package/build/universal/modifierUtils.js.map +1 -1
- package/build/universal/stackAxis.d.ts +9 -0
- package/build/universal/stackAxis.js +11 -0
- package/build/universal/stackAxis.js.map +1 -0
- package/build/universal/transformStyle.android.d.ts +6 -2
- package/build/universal/transformStyle.android.js +18 -11
- package/build/universal/transformStyle.android.js.map +1 -1
- package/build/universal/transformStyle.ios.d.ts +5 -1
- package/build/universal/transformStyle.ios.js +29 -11
- package/build/universal/transformStyle.ios.js.map +1 -1
- package/build/universal/types.d.ts +26 -1
- package/build/universal/types.js.map +1 -1
- package/ios/GroupView.swift +3 -0
- package/ios/HStackView.swift +26 -2
- package/ios/HostView.swift +21 -12
- package/ios/Modifiers/ViewModifierRegistry.swift +4 -0
- package/ios/ScrollViewComponent.swift +20 -0
- package/ios/UIBaseView.swift +4 -1
- package/ios/UniversalLayout.swift +691 -0
- package/ios/VStackView.swift +26 -2
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.22/expo.modules.ui-58.0.22-sources.jar → 58.0.23/expo.modules.ui-58.0.23-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.22/expo.modules.ui-58.0.22.module → 58.0.23/expo.modules.ui-58.0.23.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.22/expo.modules.ui-58.0.22.pom → 58.0.23/expo.modules.ui-58.0.23.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha512 +1 -0
- package/package.json +1 -1
- package/src/jetpack-compose/Column/index.tsx +5 -0
- package/src/jetpack-compose/Row/index.tsx +5 -0
- package/src/recycling/useRecycledRows.tsx +3 -0
- package/src/swift-ui/HStack/index.tsx +6 -0
- package/src/swift-ui/VStack/index.tsx +6 -0
- package/src/universal/Button/index.android.tsx +3 -1
- package/src/universal/Button/index.ios.tsx +2 -1
- package/src/universal/Collapsible/index.ios.tsx +4 -1
- package/src/universal/Column/index.android.tsx +3 -1
- package/src/universal/Column/index.ios.tsx +2 -1
- package/src/universal/Column/index.tsx +9 -4
- package/src/universal/FieldGroup/FieldGroup.android.tsx +8 -1
- package/src/universal/FieldGroup/FieldGroup.ios.tsx +2 -1
- package/src/universal/FieldGroup/FieldSection.android.tsx +17 -4
- package/src/universal/FieldGroup/FieldSection.ios.tsx +2 -1
- package/src/universal/Icon/index.android.tsx +2 -1
- package/src/universal/Icon/index.ios.tsx +2 -1
- package/src/universal/List/ListForEach.android.tsx +6 -0
- package/src/universal/List/ListForEach.ios.tsx +9 -0
- package/src/universal/List/ListForEach.tsx +246 -0
- package/src/universal/List/ListScrollContext.ts +6 -0
- package/src/universal/List/index.android.tsx +5 -0
- package/src/universal/List/index.ios.tsx +5 -0
- package/src/universal/List/index.tsx +11 -2
- package/src/universal/List/types.ts +45 -1
- package/src/universal/RNHostView/index.android.tsx +2 -1
- package/src/universal/Row/index.android.tsx +3 -1
- package/src/universal/Row/index.ios.tsx +2 -1
- package/src/universal/Row/index.tsx +9 -10
- package/src/universal/ScrollView/index.android.tsx +15 -3
- package/src/universal/ScrollView/index.ios.tsx +2 -1
- package/src/universal/Spacer/index.android.tsx +6 -4
- package/src/universal/Spacer/index.ios.tsx +2 -1
- package/src/universal/Text/index.android.tsx +2 -1
- package/src/universal/Text/index.ios.tsx +2 -1
- package/src/universal/TextInput/index.android.tsx +26 -5
- package/src/universal/TextInput/index.ios.tsx +1 -1
- package/src/universal/index.ts +6 -1
- package/src/universal/modifierUtils.ts +159 -2
- package/src/universal/stackAxis.ts +17 -0
- package/src/universal/transformStyle.android.ts +30 -12
- package/src/universal/transformStyle.ios.ts +41 -13
- package/src/universal/types.ts +27 -3
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.22/expo.modules.ui-58.0.22.pom.sha512 +0 -1
package/ios/VStackView.swift
CHANGED
|
@@ -23,20 +23,44 @@ internal enum HorizontalAlignmentOptions: String, Enumerable {
|
|
|
23
23
|
public final class VStackViewProps: UIBaseViewProps {
|
|
24
24
|
@Field var spacing: Double?
|
|
25
25
|
@Field var alignment: HorizontalAlignmentOptions?
|
|
26
|
+
// Universal `Column` sets this so a child percentage is a fraction of this stack.
|
|
27
|
+
// A SwiftUI `VStack` leaves it off and keeps the platform layout.
|
|
28
|
+
@Field var resolvesChildPercentages: Bool = false
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
public struct VStackView: ExpoSwiftUI.View {
|
|
29
32
|
@ObservedObject public var props: VStackViewProps
|
|
33
|
+
// A fraction on this stack is a real size only when the parent opted in.
|
|
34
|
+
@Environment(\.resolvesOwnPercentage) private var resolvesOwnPercentage
|
|
30
35
|
|
|
31
36
|
public init(props: VStackViewProps) {
|
|
32
37
|
self.props = props
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
public var body: some View {
|
|
41
|
+
if props.resolvesChildPercentages {
|
|
42
|
+
ParentAwareVStackLayout(
|
|
43
|
+
alignment: props.alignment ?? .center,
|
|
44
|
+
spacing: props.spacing.map { CGFloat($0) },
|
|
45
|
+
ownDimensions: universalLayoutDimensions(from: props.modifiers),
|
|
46
|
+
resolvesOwnPercentage: resolvesOwnPercentage
|
|
47
|
+
) {
|
|
48
|
+
Children()
|
|
49
|
+
}
|
|
50
|
+
.environment(\.universalPercentageParent, true)
|
|
51
|
+
} else {
|
|
52
|
+
platformStack
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private var platformStack: some View {
|
|
36
57
|
VStack(
|
|
37
58
|
alignment: props.alignment?.toHorizontalAlignment() ?? .center,
|
|
38
|
-
spacing: props.spacing.map { CGFloat($0) }
|
|
39
|
-
|
|
59
|
+
spacing: props.spacing.map { CGFloat($0) }
|
|
60
|
+
) {
|
|
61
|
+
Children()
|
|
40
62
|
}
|
|
63
|
+
// Overrides a Host, so a percentage inside a SwiftUI stack keeps the child's own size.
|
|
64
|
+
.environment(\.universalPercentageParent, false)
|
|
41
65
|
}
|
|
42
66
|
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4363fa4b990255ed9fb723cae45368cf
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ab9fe4d79b8ab44c10f285cdc817c2772b1628be
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4ee2c0ad4fd1bd658bdb798f98175ff9e2aa611111d7903ecf08100e6a30993b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b26a89fb05660b23803476e429d601d1748e326174f8e14f1cf41b81136ee433430b89e6f8ff8a0416fe395849622e90460ace881524eb25ee7535e9e8145349
|
|
Binary file
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e67ac71a9fce6fac7aecbd8d681af3b9
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cacbac944e97aa2e56e6e7095d5ab64bff82fe73
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f671f187a74250ba996b92e17f0c80993c0d8108de7bdd9acd90d7b489025e97
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
af535bbaf8b95e60596de23f669fba4cdd80bdc7a0348baea99c16ce43bcc01cc5ffa1e7b84a5b90c5dc4e63be193ad6b91ce972d114e353f38b3e9605d3f37b
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "58.0.
|
|
6
|
+
"version": "58.0.23",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-58.0.
|
|
28
|
-
"url": "expo.modules.ui-58.0.
|
|
29
|
-
"size":
|
|
30
|
-
"sha512": "
|
|
31
|
-
"sha256": "
|
|
32
|
-
"sha1": "
|
|
33
|
-
"md5": "
|
|
27
|
+
"name": "expo.modules.ui-58.0.23.aar",
|
|
28
|
+
"url": "expo.modules.ui-58.0.23.aar",
|
|
29
|
+
"size": 1926373,
|
|
30
|
+
"sha512": "af535bbaf8b95e60596de23f669fba4cdd80bdc7a0348baea99c16ce43bcc01cc5ffa1e7b84a5b90c5dc4e63be193ad6b91ce972d114e353f38b3e9605d3f37b",
|
|
31
|
+
"sha256": "f671f187a74250ba996b92e17f0c80993c0d8108de7bdd9acd90d7b489025e97",
|
|
32
|
+
"sha1": "cacbac944e97aa2e56e6e7095d5ab64bff82fe73",
|
|
33
|
+
"md5": "e67ac71a9fce6fac7aecbd8d681af3b9"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
@@ -141,13 +141,13 @@
|
|
|
141
141
|
],
|
|
142
142
|
"files": [
|
|
143
143
|
{
|
|
144
|
-
"name": "expo.modules.ui-58.0.
|
|
145
|
-
"url": "expo.modules.ui-58.0.
|
|
146
|
-
"size":
|
|
147
|
-
"sha512": "
|
|
148
|
-
"sha256": "
|
|
149
|
-
"sha1": "
|
|
150
|
-
"md5": "
|
|
144
|
+
"name": "expo.modules.ui-58.0.23.aar",
|
|
145
|
+
"url": "expo.modules.ui-58.0.23.aar",
|
|
146
|
+
"size": 1926373,
|
|
147
|
+
"sha512": "af535bbaf8b95e60596de23f669fba4cdd80bdc7a0348baea99c16ce43bcc01cc5ffa1e7b84a5b90c5dc4e63be193ad6b91ce972d114e353f38b3e9605d3f37b",
|
|
148
|
+
"sha256": "f671f187a74250ba996b92e17f0c80993c0d8108de7bdd9acd90d7b489025e97",
|
|
149
|
+
"sha1": "cacbac944e97aa2e56e6e7095d5ab64bff82fe73",
|
|
150
|
+
"md5": "e67ac71a9fce6fac7aecbd8d681af3b9"
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
},
|
|
@@ -161,13 +161,13 @@
|
|
|
161
161
|
},
|
|
162
162
|
"files": [
|
|
163
163
|
{
|
|
164
|
-
"name": "expo.modules.ui-58.0.
|
|
165
|
-
"url": "expo.modules.ui-58.0.
|
|
166
|
-
"size":
|
|
167
|
-
"sha512": "
|
|
168
|
-
"sha256": "
|
|
169
|
-
"sha1": "
|
|
170
|
-
"md5": "
|
|
164
|
+
"name": "expo.modules.ui-58.0.23-sources.jar",
|
|
165
|
+
"url": "expo.modules.ui-58.0.23-sources.jar",
|
|
166
|
+
"size": 120740,
|
|
167
|
+
"sha512": "b26a89fb05660b23803476e429d601d1748e326174f8e14f1cf41b81136ee433430b89e6f8ff8a0416fe395849622e90460ace881524eb25ee7535e9e8145349",
|
|
168
|
+
"sha256": "4ee2c0ad4fd1bd658bdb798f98175ff9e2aa611111d7903ecf08100e6a30993b",
|
|
169
|
+
"sha1": "ab9fe4d79b8ab44c10f285cdc817c2772b1628be",
|
|
170
|
+
"md5": "4363fa4b990255ed9fb723cae45368cf"
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
}
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1f7365033b3d90d1a6c159539e4873ee
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ac6c7e9eb38f62047ab9db03a8e2d95e3fe6b0a1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
418e45206f42efb489f42ed18e5b723cc3f1f9fb1abbf3f32d17033b7119049d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b80563b657625ec8904ed747a0050cf9e9d5a07d616ec2d96aa1857dd88b3bcbe7152aade79b0d4766b1b31546b24adf6acc05ec77a11b082bd8a03db2265071
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>expo.modules.ui</groupId>
|
|
11
11
|
<artifactId>expo.modules.ui</artifactId>
|
|
12
|
-
<version>58.0.
|
|
12
|
+
<version>58.0.23</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.ui</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
33803d7b5efb8d4960860cb0afd385b7
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
084a07045eafbc0189dba01de4090f037c9e0877
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f8dba5118733f8693617b5734eded16d6561fb4b99a775f24474d5a0cae715c4
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
346a85307de71e2c04a7d8de5d73695d9fbe064b6363bd6bbe24819c477a9b737b2173358ae0c2a7377a55c4644cc22f0489095cd93a7cfb052e7a35b83d2324
|
package/package.json
CHANGED
|
@@ -27,6 +27,11 @@ export interface ColumnProps extends PrimitiveBaseProps {
|
|
|
27
27
|
* Vertical alignment of children.
|
|
28
28
|
*/
|
|
29
29
|
verticalAlignment?: VerticalAlignment;
|
|
30
|
+
/**
|
|
31
|
+
* When `true`, a child percentage is a fraction of this column.
|
|
32
|
+
* Universal `Column` sets this. Leave it unset to keep the Compose `Column`.
|
|
33
|
+
*/
|
|
34
|
+
resolvesChildPercentages?: boolean;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
const ColumnNativeView: React.ComponentType<ColumnProps> = requireNativeView(
|
|
@@ -27,6 +27,11 @@ export interface RowProps extends PrimitiveBaseProps {
|
|
|
27
27
|
* Vertical alignment of children.
|
|
28
28
|
*/
|
|
29
29
|
verticalAlignment?: VerticalAlignment;
|
|
30
|
+
/**
|
|
31
|
+
* When `true`, a child percentage is a fraction of this row.
|
|
32
|
+
* Universal `Row` sets this. Leave it unset to keep the Compose `Row`.
|
|
33
|
+
*/
|
|
34
|
+
resolvesChildPercentages?: boolean;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
const RowNativeView: React.ComponentType<RowProps> = requireNativeView('ExpoUI', 'RowView');
|
|
@@ -53,6 +53,8 @@ export type RecycledRows = {
|
|
|
53
53
|
revision: number;
|
|
54
54
|
/** The pooled rows to mount, one per slot. */
|
|
55
55
|
rows: ReactElement[];
|
|
56
|
+
/** Index of the first item in the pool. */
|
|
57
|
+
start: number;
|
|
56
58
|
/** Applies a native window request. */
|
|
57
59
|
onWindowChange: (event: WindowChangeEvent) => void;
|
|
58
60
|
/** Whether a native event was sent for the data currently committed to native. */
|
|
@@ -169,6 +171,7 @@ export function useRecycledRows<ItemT>({
|
|
|
169
171
|
itemKeys,
|
|
170
172
|
revision: current.revision,
|
|
171
173
|
rows,
|
|
174
|
+
start,
|
|
172
175
|
isCurrentRevision: (revision) => revision === committedRevision.current,
|
|
173
176
|
onWindowChange: (event) => {
|
|
174
177
|
if (
|
|
@@ -13,6 +13,12 @@ export interface HStackProps extends CommonViewModifierProps {
|
|
|
13
13
|
* The vertical alignment of children within the stack.
|
|
14
14
|
*/
|
|
15
15
|
alignment?: 'top' | 'center' | 'bottom' | 'firstTextBaseline' | 'lastTextBaseline';
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, a child percentage is a fraction of this stack.
|
|
18
|
+
* Universal `Row` sets this. Leave it unset to keep the SwiftUI `HStack`.
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
resolvesChildPercentages?: boolean;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
const HStackNativeView: React.ComponentType<HStackProps> = requireNativeView(
|
|
@@ -13,6 +13,12 @@ export interface VStackProps extends CommonViewModifierProps {
|
|
|
13
13
|
* The spacing between children.
|
|
14
14
|
*/
|
|
15
15
|
spacing?: number;
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, a child percentage is a fraction of this stack.
|
|
18
|
+
* Universal `Column` sets this. Leave it unset to keep the SwiftUI `VStack`.
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
resolvesChildPercentages?: boolean;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
const VStackNativeView: React.ComponentType<VStackProps> = requireNativeView(
|
|
@@ -26,7 +26,9 @@ export function Button({
|
|
|
26
26
|
|
|
27
27
|
if (hidden) return null;
|
|
28
28
|
|
|
29
|
-
const modifiers = transformToModifiers(style, { disabled, hidden, testID }, extraModifiers
|
|
29
|
+
const modifiers = transformToModifiers(style, { disabled, hidden, testID }, extraModifiers, {
|
|
30
|
+
componentName: 'Button',
|
|
31
|
+
});
|
|
30
32
|
|
|
31
33
|
const content = children ?? <Text>{label ?? ''}</Text>;
|
|
32
34
|
const commonProps = {
|
|
@@ -34,7 +34,8 @@ export function Button({
|
|
|
34
34
|
const universalModifiers = transformToModifiers(
|
|
35
35
|
style,
|
|
36
36
|
{ onAppear, onDisappear, disabled, hidden, testID },
|
|
37
|
-
extraModifiers
|
|
37
|
+
extraModifiers,
|
|
38
|
+
{ componentName: 'Button' }
|
|
38
39
|
);
|
|
39
40
|
|
|
40
41
|
const modifiers = [...buttonSpecificModifiers, ...universalModifiers];
|
|
@@ -14,7 +14,10 @@ export function Collapsible({
|
|
|
14
14
|
children,
|
|
15
15
|
}: CollapsibleProps) {
|
|
16
16
|
const labelTextModifiers = labelStyle
|
|
17
|
-
? transformToModifiers(undefined, {}, undefined, {
|
|
17
|
+
? transformToModifiers(undefined, {}, undefined, {
|
|
18
|
+
componentName: 'Collapsible',
|
|
19
|
+
textStyle: labelStyle,
|
|
20
|
+
})
|
|
18
21
|
: undefined;
|
|
19
22
|
|
|
20
23
|
return (
|
|
@@ -31,13 +31,15 @@ export function Column({
|
|
|
31
31
|
const modifiers = transformToModifiers(
|
|
32
32
|
style,
|
|
33
33
|
{ onPress: disabled ? undefined : onPress, disabled, hidden, testID },
|
|
34
|
-
extraModifiers
|
|
34
|
+
extraModifiers,
|
|
35
|
+
{ componentName: 'Column' }
|
|
35
36
|
);
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
39
|
<ComposeColumn
|
|
39
40
|
horizontalAlignment={alignmentMap[alignment]}
|
|
40
41
|
verticalArrangement={spacing != null ? { spacedBy: spacing } : undefined}
|
|
42
|
+
resolvesChildPercentages
|
|
41
43
|
modifiers={modifiers}>
|
|
42
44
|
{children}
|
|
43
45
|
</ComposeColumn>
|
|
@@ -33,7 +33,7 @@ export function Column({
|
|
|
33
33
|
style,
|
|
34
34
|
{ onPress, onAppear, onDisappear, disabled, hidden, testID },
|
|
35
35
|
extraModifiers,
|
|
36
|
-
{ frameAlignment: frameAlignmentMap[alignment] }
|
|
36
|
+
{ componentName: 'Column', frameAlignment: frameAlignmentMap[alignment] }
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
return (
|
|
@@ -41,6 +41,7 @@ export function Column({
|
|
|
41
41
|
alignment={alignmentMap[alignment]}
|
|
42
42
|
spacing={spacing}
|
|
43
43
|
modifiers={modifiers}
|
|
44
|
+
resolvesChildPercentages
|
|
44
45
|
testID={testID}>
|
|
45
46
|
{children}
|
|
46
47
|
</VStack>
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Pressable, StyleSheet, View, type ViewStyle } from 'react-native';
|
|
2
2
|
|
|
3
3
|
import { useUniversalLifecycle } from '../hooks';
|
|
4
|
+
import { StackAxisContext, useCrossAxisSize } from '../stackAxis';
|
|
4
5
|
import type { UniversalAlignment } from '../types';
|
|
5
6
|
import type { ColumnProps } from './types';
|
|
6
7
|
|
|
7
8
|
const styles = StyleSheet.create({
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
|
|
9
|
+
column: { flexDirection: 'column' },
|
|
10
|
+
// Fill the parent's cross axis when this column has no size of its own on that axis.
|
|
11
|
+
// A set size must not use stretch: that overrides the parent's `alignItems`,
|
|
12
|
+
// and the column then sits at the start.
|
|
13
|
+
stretch: { alignSelf: 'stretch' },
|
|
11
14
|
hidden: { display: 'none' },
|
|
12
15
|
disabled: {
|
|
13
16
|
opacity: 0.5,
|
|
@@ -37,6 +40,7 @@ export function Column({
|
|
|
37
40
|
testID,
|
|
38
41
|
}: ColumnProps) {
|
|
39
42
|
useUniversalLifecycle(onAppear, onDisappear);
|
|
43
|
+
const crossAxisSize = useCrossAxisSize(style);
|
|
40
44
|
|
|
41
45
|
const Container = onPress ? Pressable : View;
|
|
42
46
|
|
|
@@ -47,13 +51,14 @@ export function Column({
|
|
|
47
51
|
testID={testID}
|
|
48
52
|
style={[
|
|
49
53
|
styles.column,
|
|
54
|
+
crossAxisSize == null && styles.stretch,
|
|
50
55
|
alignmentStyles[alignment],
|
|
51
56
|
spacing != null && { gap: spacing },
|
|
52
57
|
style,
|
|
53
58
|
hidden && styles.hidden,
|
|
54
59
|
disabled && styles.disabled,
|
|
55
60
|
]}>
|
|
56
|
-
{children}
|
|
61
|
+
<StackAxisContext.Provider value="vertical">{children}</StackAxisContext.Provider>
|
|
57
62
|
</Container>
|
|
58
63
|
);
|
|
59
64
|
}
|
|
@@ -27,7 +27,14 @@ export function FieldGroup({
|
|
|
27
27
|
if (hidden) return null;
|
|
28
28
|
|
|
29
29
|
const mergedStyle = { backgroundColor: colors.surface, ...style };
|
|
30
|
-
const modifiers = transformToModifiers(
|
|
30
|
+
const modifiers = transformToModifiers(
|
|
31
|
+
mergedStyle,
|
|
32
|
+
{ disabled, hidden, testID },
|
|
33
|
+
extraModifiers,
|
|
34
|
+
{
|
|
35
|
+
componentName: 'FieldGroup',
|
|
36
|
+
}
|
|
37
|
+
);
|
|
31
38
|
|
|
32
39
|
return (
|
|
33
40
|
<LazyColumn
|
|
@@ -20,7 +20,8 @@ export function FieldGroup({
|
|
|
20
20
|
const modifiers = transformToModifiers(
|
|
21
21
|
style,
|
|
22
22
|
{ onAppear, onDisappear, disabled, hidden, testID },
|
|
23
|
-
extraModifiers
|
|
23
|
+
extraModifiers,
|
|
24
|
+
{ componentName: 'FieldGroup' }
|
|
24
25
|
);
|
|
25
26
|
|
|
26
27
|
return <Form modifiers={modifiers}>{children}</Form>;
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
import { clip, fillMaxWidth, padding, Shapes } from '@expo/ui/jetpack-compose/modifiers';
|
|
8
8
|
|
|
9
9
|
import { useUniversalLifecycle } from '../hooks';
|
|
10
|
+
import { getUserSizingOverrides } from '../modifierUtils';
|
|
10
11
|
import { transformToModifiers } from '../transformStyle';
|
|
11
12
|
import { extractFieldSectionSlots } from './FieldSectionSlots';
|
|
12
13
|
import { getFieldItemPosition, type FieldItemPosition, type FieldSectionProps } from './types';
|
|
@@ -37,10 +38,22 @@ export function FieldSection({
|
|
|
37
38
|
|
|
38
39
|
const { header, footer, rows } = extractFieldSectionSlots(children);
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
// A numeric width owns the axis, so fillMaxWidth stays off.
|
|
42
|
+
// A percentage is only parent data. This LazyColumn does not read it.
|
|
43
|
+
// Stretch in that case, unless a user modifier already owns the width.
|
|
44
|
+
const widthIsPercentage = typeof style?.width === 'string';
|
|
45
|
+
const userOwnsWidth = getUserSizingOverrides(extraModifiers, 'android').width;
|
|
46
|
+
const sectionModifiers =
|
|
47
|
+
!userOwnsWidth && (style?.width == null || widthIsPercentage)
|
|
48
|
+
? [fillMaxWidth(), ...(extraModifiers ?? [])]
|
|
49
|
+
: extraModifiers;
|
|
50
|
+
|
|
51
|
+
const outerModifiers = transformToModifiers(
|
|
52
|
+
style,
|
|
53
|
+
{ disabled, hidden, testID },
|
|
54
|
+
sectionModifiers,
|
|
55
|
+
{ componentName: 'FieldSection' }
|
|
56
|
+
);
|
|
44
57
|
|
|
45
58
|
const headerNode =
|
|
46
59
|
header ??
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ListForEach as SwiftUIListForEach } from '../../swift-ui/List/ListForEach';
|
|
2
|
+
import type { ListForEachProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* iOS implementation of `List.ForEach`. Delegates to SwiftUI `List.ForEach`.
|
|
6
|
+
*/
|
|
7
|
+
export function ListForEach<T>(props: ListForEachProps<T>) {
|
|
8
|
+
return <SwiftUIListForEach {...props} />;
|
|
9
|
+
}
|