@expo/ui 56.0.14 → 56.0.15
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 +4 -0
- package/android/build.gradle +2 -2
- package/build/community/bottom-sheet/BottomSheet.ios.d.ts.map +1 -1
- package/build/community/bottom-sheet/types.d.ts +2 -0
- package/build/community/bottom-sheet/types.d.ts.map +1 -1
- package/build/swift-ui/modifiers/presentationModifiers.d.ts +10 -0
- package/build/swift-ui/modifiers/presentationModifiers.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/Modifiers/PresentationModifiers.swift +14 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +4 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.module → 56.0.15/expo.modules.ui-56.0.15.module} +7 -7
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.pom → 56.0.15/expo.modules.ui-56.0.15.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
- package/package.json +3 -3
- package/src/community/bottom-sheet/BottomSheet.ios.tsx +25 -13
- package/src/community/bottom-sheet/types.ts +2 -0
- package/src/swift-ui/modifiers/presentationModifiers.ts +12 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14-sources.jar → 56.0.15/expo.modules.ui-56.0.15-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14-sources.jar.md5 → 56.0.15/expo.modules.ui-56.0.15-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14-sources.jar.sha1 → 56.0.15/expo.modules.ui-56.0.15-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14-sources.jar.sha256 → 56.0.15/expo.modules.ui-56.0.15-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14-sources.jar.sha512 → 56.0.15/expo.modules.ui-56.0.15-sources.jar.sha512} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.aar → 56.0.15/expo.modules.ui-56.0.15.aar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.aar.md5 → 56.0.15/expo.modules.ui-56.0.15.aar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.aar.sha1 → 56.0.15/expo.modules.ui-56.0.15.aar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.aar.sha256 → 56.0.15/expo.modules.ui-56.0.15.aar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.14/expo.modules.ui-56.0.14.aar.sha512 → 56.0.15/expo.modules.ui-56.0.15.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -12,13 +12,13 @@ apply plugin: 'expo-module-gradle-plugin'
|
|
|
12
12
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
13
13
|
|
|
14
14
|
group = 'expo.modules.ui'
|
|
15
|
-
version = '56.0.
|
|
15
|
+
version = '56.0.15'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "56.0.
|
|
21
|
+
versionName "56.0.15"
|
|
22
22
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
23
23
|
}
|
|
24
24
|
buildFeatures {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.ios.d.ts","sourceRoot":"","sources":["../../../src/community/bottom-sheet/BottomSheet.ios.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BottomSheet.ios.d.ts","sourceRoot":"","sources":["../../../src/community/bottom-sheet/BottomSheet.ios.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAsB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAcpE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAwD3C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAiLlD"}
|
|
@@ -272,6 +272,8 @@ export interface BottomSheetProps {
|
|
|
272
272
|
* Style for the sheet background.
|
|
273
273
|
*
|
|
274
274
|
* @remarks On Android, `backgroundColor` is extracted and applied as `containerColor`.
|
|
275
|
+
* On iOS, `backgroundColor` is extracted and applied via SwiftUI's
|
|
276
|
+
* `.presentationBackground(_:)` modifier.
|
|
275
277
|
* Other style properties may not take effect on native platforms.
|
|
276
278
|
* On web, the full style is applied.
|
|
277
279
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/community/bottom-sheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,KAAK,E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E,MAAM,GAAG,MAAM,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAQzE"}
|
|
@@ -48,6 +48,16 @@ export type PresentationBackgroundInteractionType = 'automatic' | 'enabled' | 'd
|
|
|
48
48
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/presentationbackgroundinteraction(_:)).
|
|
49
49
|
*/
|
|
50
50
|
export declare const presentationBackgroundInteraction: (interaction: PresentationBackgroundInteractionType) => ModifierConfig;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the background of a sheet presentation. Paints the entire sheet chrome
|
|
53
|
+
* including the drag-indicator zone and home-indicator safe-area inset, which
|
|
54
|
+
* a regular `background()` modifier cannot reach.
|
|
55
|
+
* @param color - The background color (hex string). For example, `#FF0000`.
|
|
56
|
+
* @platform ios 16.4+
|
|
57
|
+
* @see Official [SwiftUI
|
|
58
|
+
documentation](https://developer.apple.com/documentation/swiftui/view/presentationbackground(_:)).
|
|
59
|
+
*/
|
|
60
|
+
export declare const presentationBackground: (color: string) => ModifierConfig;
|
|
51
61
|
/**
|
|
52
62
|
* Disables interactive dismissal of a sheet.
|
|
53
63
|
* @param isDisabled - Whether interactive dismiss is disabled (default: true).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentationModifiers.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/presentationModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhG;;;;;;;;;GASG;AACH,eAAO,MAAM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AAC;AAE9D;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAC7C,WAAW,GACX,SAAS,GACT,UAAU,GACV;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,MAAM,EAAE,kBAAkB,CAAA;CAAE,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,GAC5C,aAAa,qCAAqC,mBASnD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,mBACC,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,aAAY,OAAc,mBACP,CAAC"}
|
package/expo-module.config.json
CHANGED
|
@@ -205,3 +205,17 @@ internal struct InteractiveDismissDisabledModifier: ViewModifier, Record {
|
|
|
205
205
|
content.interactiveDismissDisabled(isDisabled)
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
|
|
209
|
+
// MARK: - Presentation Background
|
|
210
|
+
|
|
211
|
+
internal struct PresentationBackgroundModifier: ViewModifier, Record {
|
|
212
|
+
@Field var color: Color?
|
|
213
|
+
|
|
214
|
+
func body(content: Content) -> some View {
|
|
215
|
+
if #available(iOS 16.4, tvOS 16.4, *), let color {
|
|
216
|
+
content.presentationBackground(color)
|
|
217
|
+
} else {
|
|
218
|
+
content
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -1806,6 +1806,10 @@ extension ViewModifierRegistry {
|
|
|
1806
1806
|
register("interactiveDismissDisabled") { params, appContext, _ in
|
|
1807
1807
|
return try InteractiveDismissDisabledModifier(from: params, appContext: appContext)
|
|
1808
1808
|
}
|
|
1809
|
+
|
|
1810
|
+
register("presentationBackground") { params, appContext, _ in
|
|
1811
|
+
return try PresentationBackgroundModifier(from: params, appContext: appContext)
|
|
1812
|
+
}
|
|
1809
1813
|
|
|
1810
1814
|
register("listStyle") { params, appContext, _ in
|
|
1811
1815
|
return try ListStyleModifier(from: params, appContext: appContext)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "56.0.
|
|
6
|
+
"version": "56.0.15",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-56.0.
|
|
28
|
-
"url": "expo.modules.ui-56.0.
|
|
27
|
+
"name": "expo.modules.ui-56.0.15.aar",
|
|
28
|
+
"url": "expo.modules.ui-56.0.15.aar",
|
|
29
29
|
"size": 1839545,
|
|
30
30
|
"sha512": "b0183591c16d8ba78c2d0e6aad2044b660811a5fb2126302a5f746dff169fc93fd4547d4c73ccf35bfefa083fde9819acbf3bb0fa4f6c80869e0d225880047a2",
|
|
31
31
|
"sha256": "27c02acb624ed6593fe2380e495a636970bc9033ae9cd00132029c7b8ecf899e",
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
],
|
|
142
142
|
"files": [
|
|
143
143
|
{
|
|
144
|
-
"name": "expo.modules.ui-56.0.
|
|
145
|
-
"url": "expo.modules.ui-56.0.
|
|
144
|
+
"name": "expo.modules.ui-56.0.15.aar",
|
|
145
|
+
"url": "expo.modules.ui-56.0.15.aar",
|
|
146
146
|
"size": 1839545,
|
|
147
147
|
"sha512": "b0183591c16d8ba78c2d0e6aad2044b660811a5fb2126302a5f746dff169fc93fd4547d4c73ccf35bfefa083fde9819acbf3bb0fa4f6c80869e0d225880047a2",
|
|
148
148
|
"sha256": "27c02acb624ed6593fe2380e495a636970bc9033ae9cd00132029c7b8ecf899e",
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
},
|
|
162
162
|
"files": [
|
|
163
163
|
{
|
|
164
|
-
"name": "expo.modules.ui-56.0.
|
|
165
|
-
"url": "expo.modules.ui-56.0.
|
|
164
|
+
"name": "expo.modules.ui-56.0.15-sources.jar",
|
|
165
|
+
"url": "expo.modules.ui-56.0.15-sources.jar",
|
|
166
166
|
"size": 87333,
|
|
167
167
|
"sha512": "ba1daa456b3e0d92466af0c58b5ddd0bdd0a4c5f06c727bf7d34acd69e78c42187295b575199cefa3b2098d59eeb1ab6fcf2463c339fd6af2a186224a14f505d",
|
|
168
168
|
"sha256": "01e5734d4e704ab1ff81ad1651eae63e0c5317dbba712328b1721270d303e0cf",
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e6bb09e9c4356f9c9879e24e1b133cba
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
31baeb0a70741592621ef9b3fe973a23610a563b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c3b3041adb593ed9fc7963db11fd0a71170dc9778d48f0aac09908b9374500b9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f91dfa09f2f467b5332f41b2232a9956d8a542f41568d9fe895fca36be7643fcd7c3f8f03e6410dde0abea53ad161499b23a208a5b5277d735b02bc60f4edfdb
|
|
@@ -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>56.0.
|
|
12
|
+
<version>56.0.15</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/56.0.15/expo.modules.ui-56.0.15.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
461d361330d6a24030016012aa6e920c
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0e241f8a0e32f5849c1879bd3bc73fcade47e375
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
473cf11bc355d074e0289ab7523931ed0868b056d0b0d3aa434d43524ac013f3
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
81d473db58273d5ed4738fe0c68a614d82590d7ef2c68dea746f40c93413f5e63f139faedb9d5afc9fc20dc5f21ae2103fd7933f2f10915fd05e96207681c242
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.ui</groupId>
|
|
4
4
|
<artifactId>expo.modules.ui</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>56.0.
|
|
7
|
-
<release>56.0.
|
|
6
|
+
<latest>56.0.15</latest>
|
|
7
|
+
<release>56.0.15</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>56.0.
|
|
9
|
+
<version>56.0.15</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260529100208</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b63599942a3f767839b2ab4661aa9f0b
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5ed1689c481832ae81351f3296fa74efa0ad8104
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
38ac5032a6f49787dcf8f493b77d9546a7d81a06288bac319a98bad6f79ec877
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7138619d0626a7b454da7b4ffed89dcdc169737955a85beae665e23c404dae52117ae7f1857bdc186018c782c44da47e73912e80e635f2edf60a40cef085a5a9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.15",
|
|
4
4
|
"description": "A collection of UI components",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.fx.js"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@types/react": "~19.2.0",
|
|
96
96
|
"react-native-reanimated": "4.3.1",
|
|
97
97
|
"react-native-worklets": "0.8.3",
|
|
98
|
-
"expo": "56.0.
|
|
98
|
+
"expo": "56.0.7",
|
|
99
99
|
"expo-module-scripts": "56.0.2"
|
|
100
100
|
},
|
|
101
101
|
"jest": {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"optional": true
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "a7adc95c1747db1e92655feba56d0e62660098db",
|
|
128
128
|
"scripts": {
|
|
129
129
|
"build": "expo-module build",
|
|
130
130
|
"clean": "expo-module clean",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import { useWindowDimensions, View } from 'react-native';
|
|
2
|
+
import { useWindowDimensions, View, StyleSheet } from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
4
|
|
|
4
5
|
import { BottomSheetContext, BottomSheetInternalContext } from './context';
|
|
5
6
|
import type { BottomSheetMethods, BottomSheetProps } from './types';
|
|
@@ -11,6 +12,7 @@ import { RNHostView } from '../../swift-ui/RNHostView';
|
|
|
11
12
|
import {
|
|
12
13
|
type PresentationDetent,
|
|
13
14
|
interactiveDismissDisabled,
|
|
15
|
+
presentationBackground,
|
|
14
16
|
presentationDetents,
|
|
15
17
|
presentationDragIndicator,
|
|
16
18
|
} from '../../swift-ui/modifiers/presentationModifiers';
|
|
@@ -19,6 +21,13 @@ export { useBottomSheet } from './context';
|
|
|
19
21
|
|
|
20
22
|
// #region Helpers
|
|
21
23
|
|
|
24
|
+
function extractBackgroundColor(style: StyleProp<ViewStyle>): string | undefined {
|
|
25
|
+
if (!style) return undefined;
|
|
26
|
+
const flat = StyleSheet.flatten(style) as ViewStyle | undefined;
|
|
27
|
+
const color = flat?.backgroundColor;
|
|
28
|
+
return typeof color === 'string' ? color : undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
function snapPointToDetent(point: string | number): PresentationDetent {
|
|
23
32
|
const parsed = parseSnapPoint(point);
|
|
24
33
|
return parsed.type === 'fraction' ? { fraction: parsed.value } : { height: parsed.value };
|
|
@@ -80,6 +89,7 @@ export function BottomSheet(props: BottomSheetProps) {
|
|
|
80
89
|
enablePanDownToClose = false,
|
|
81
90
|
enableDynamicSizing = true,
|
|
82
91
|
handleComponent,
|
|
92
|
+
backgroundStyle,
|
|
83
93
|
children,
|
|
84
94
|
} = props;
|
|
85
95
|
const { width } = useWindowDimensions();
|
|
@@ -192,8 +202,9 @@ export function BottomSheet(props: BottomSheetProps) {
|
|
|
192
202
|
|
|
193
203
|
useImperativeHandle(ref, () => methods, [methods]);
|
|
194
204
|
|
|
195
|
-
const modifiers = useMemo(
|
|
196
|
-
()
|
|
205
|
+
const modifiers = useMemo(() => {
|
|
206
|
+
const bg = extractBackgroundColor(backgroundStyle);
|
|
207
|
+
return [
|
|
197
208
|
...(fitToContents
|
|
198
209
|
? []
|
|
199
210
|
: [
|
|
@@ -204,16 +215,17 @@ export function BottomSheet(props: BottomSheetProps) {
|
|
|
204
215
|
]),
|
|
205
216
|
presentationDragIndicator(handleComponent === null ? 'hidden' : 'visible'),
|
|
206
217
|
interactiveDismissDisabled(!enablePanDownToClose),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
...(bg ? [presentationBackground(bg)] : []),
|
|
219
|
+
];
|
|
220
|
+
}, [
|
|
221
|
+
fitToContents,
|
|
222
|
+
detents,
|
|
223
|
+
selectedDetent,
|
|
224
|
+
handleDetentChange,
|
|
225
|
+
handleComponent,
|
|
226
|
+
enablePanDownToClose,
|
|
227
|
+
backgroundStyle,
|
|
228
|
+
]);
|
|
217
229
|
|
|
218
230
|
return (
|
|
219
231
|
<BottomSheetInternalContext.Provider value={internalContextValue}>
|
|
@@ -313,6 +313,8 @@ export interface BottomSheetProps {
|
|
|
313
313
|
* Style for the sheet background.
|
|
314
314
|
*
|
|
315
315
|
* @remarks On Android, `backgroundColor` is extracted and applied as `containerColor`.
|
|
316
|
+
* On iOS, `backgroundColor` is extracted and applied via SwiftUI's
|
|
317
|
+
* `.presentationBackground(_:)` modifier.
|
|
316
318
|
* Other style properties may not take effect on native platforms.
|
|
317
319
|
* On web, the full style is applied.
|
|
318
320
|
*/
|
|
@@ -84,6 +84,18 @@ export const presentationBackgroundInteraction = (
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
+
/**
|
|
88
|
+
* Sets the background of a sheet presentation. Paints the entire sheet chrome
|
|
89
|
+
* including the drag-indicator zone and home-indicator safe-area inset, which
|
|
90
|
+
* a regular `background()` modifier cannot reach.
|
|
91
|
+
* @param color - The background color (hex string). For example, `#FF0000`.
|
|
92
|
+
* @platform ios 16.4+
|
|
93
|
+
* @see Official [SwiftUI
|
|
94
|
+
documentation](https://developer.apple.com/documentation/swiftui/view/presentationbackground(_:)).
|
|
95
|
+
*/
|
|
96
|
+
export const presentationBackground = (color: string) =>
|
|
97
|
+
createModifier('presentationBackground', { color });
|
|
98
|
+
|
|
87
99
|
/**
|
|
88
100
|
* Disables interactive dismissal of a sheet.
|
|
89
101
|
* @param isDisabled - Whether interactive dismiss is disabled (default: true).
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.module.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0a721bf899f1bdd8a4aa077a61503718
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.module.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5ff8b4610fc4f797647ee63ab69d2b79c50dbe1a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b1290525991fc675f9a594aa80f72368959d61304f5aa977e0f39da91bce7e95
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
99d685ffb2acfcdfb4fb03f051e89d6d7970b36387e6dfabcc550dd3d4ee1d4a87551cdeb6f2f4261a3f1435ec3644b4336c5549d48845706ee2f3b4879bdd78
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7603c21466f9d38f372627cfce26eea9
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
79e84c416a01fc5e0e0e796da3c1c30cb700d378
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
11e03a5068e44ce3f2e08bef38b2671f6758173d56ea8224bdb503e1075818aa
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.14/expo.modules.ui-56.0.14.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d4c5b72aa81972d7a9bb6524ac50c429eb06e5ad9e777ebe597100f045af91f423f322e9408756607a610e97d4c846e515c641a0b58aa832fb4d5a868052de22
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|