@expo/ui 58.0.9 → 58.0.11
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 +17 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/HostView.kt +7 -1
- package/android/src/main/java/expo/modules/ui/RNHostView.kt +65 -16
- package/build/community/picker/Picker.android.js +7 -0
- package/build/community/picker/Picker.android.js.map +1 -1
- package/build/jetpack-compose/RNHostView/index.d.ts +6 -1
- package/build/jetpack-compose/RNHostView/index.js +9 -4
- package/build/jetpack-compose/RNHostView/index.js.map +1 -1
- package/build/swift-ui/RNHostView.d.ts +7 -2
- package/build/swift-ui/RNHostView.js +7 -3
- package/build/swift-ui/RNHostView.js.map +1 -1
- package/build/swift-ui/modifiers/containerBackground.d.ts +2 -2
- package/build/swift-ui/modifiers/containerBackground.js +2 -2
- package/build/swift-ui/modifiers/index.d.ts +9 -1
- package/build/swift-ui/modifiers/index.js +9 -0
- package/build/swift-ui/modifiers/index.js.map +1 -1
- package/build/universal/ListItem/ListItem.js +11 -2
- package/build/universal/ListItem/ListItem.js.map +1 -1
- package/build/universal/RNHostView/index.js +12 -5
- package/build/universal/RNHostView/index.js.map +1 -1
- package/build/universal/RNHostView/types.d.ts +9 -4
- package/build/universal/RNHostView/types.js.map +1 -1
- package/build/utils/matchContents.d.ts +10 -0
- package/build/utils/matchContents.js +16 -0
- package/build/utils/matchContents.js.map +1 -0
- package/ios/ExpoUIModule.swift +0 -1
- package/ios/Modifiers/ContainerBackgroundModifier.swift +23 -16
- package/ios/Modifiers/PreferredColorSchemeModifier.swift +12 -0
- package/ios/Modifiers/View+ModifierArray.swift +3 -3
- package/ios/Modifiers/ViewModifierRegistry.swift +11 -9
- package/ios/Modifiers/WidgetKitModifiers.swift +13 -0
- package/ios/RNHostView.swift +55 -9
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.9/expo.modules.ui-58.0.9-sources.jar → 58.0.11/expo.modules.ui-58.0.11-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.9/expo.modules.ui-58.0.9.module → 58.0.11/expo.modules.ui-58.0.11.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.9/expo.modules.ui-58.0.9.pom → 58.0.11/expo.modules.ui-58.0.11.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.11/expo.modules.ui-58.0.11.pom.sha512 +1 -0
- package/package.json +3 -3
- package/prebuilds/output/debug/xcframeworks/ExpoUI.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoUI.tar.gz +0 -0
- package/src/community/picker/Picker.android.tsx +5 -0
- package/src/jetpack-compose/RNHostView/index.tsx +17 -6
- package/src/swift-ui/RNHostView.tsx +11 -4
- package/src/swift-ui/modifiers/containerBackground.ts +2 -2
- package/src/swift-ui/modifiers/index.ts +11 -0
- package/src/universal/ListItem/ListItem.tsx +10 -1
- package/src/universal/RNHostView/index.tsx +8 -3
- package/src/universal/RNHostView/types.ts +6 -4
- package/src/utils/matchContents.ts +14 -0
- package/ios/AccessoryWidgetBackgroundView.swift +0 -27
- package/ios/Modifiers/WidgetModifiers.swift +0 -70
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.9/expo.modules.ui-58.0.9.pom.sha512 +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 58.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump precompiled artifacts due to ABI breakage in expo-modules-jsi@58.0.6. ([#50881](https://github.com/expo/expo/pull/50881) by [@kitten](https://github.com/kitten))
|
|
8
|
+
- [Android] Fix an intermittent `performMeasureAndLayout called during measure layout` crash that tore down the ReactHost when a `Host` with `matchContents` was measured while react-native-reanimated was active. The `onLayoutContent` event is now posted after the measure pass instead of emitted inside it. ([#49933](https://github.com/expo/expo/pull/49933) by [@expo-bot](https://github.com/expo-bot))
|
|
9
|
+
|
|
10
|
+
## 58.0.10
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [android] Fix `community/picker` `Picker` not updating its displayed label after a selection or a `selectedValue` change. ([#50801](https://github.com/expo/expo/pull/50801) by [@RaddishIoW](https://github.com/RaddishIoW))
|
|
15
|
+
- [web] Fix `ListItem` always showing a pointer cursor, even without an `onPress`, because React Native Web's `Pressable` applies one unconditionally. A `ListItem` with no `onPress` now shows the default cursor instead of misleadingly looking clickable. ([#49986](https://github.com/expo/expo/pull/49986) by [@timheilman](https://github.com/timheilman))
|
|
16
|
+
- [iOS][Android] `RNHostView` `matchContents` accepts `{ horizontal, vertical }`, so hosted content can take its width from the parent and its height from the content. ([#50674](https://github.com/expo/expo/pull/50674) by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway))
|
|
17
|
+
- [iOS] Stop linking WidgetKit into apps that use `@expo/ui` without widgets. The `widgetURL`, `activityBackgroundTint`, `widgetAccentedRenderingMode`, and `containerBackground` (`widget` placement) modifiers and the `AccessoryWidgetBackground` view now take effect only inside `expo-widgets` widgets and Live Activities. ([#50786](https://github.com/expo/expo/pull/50786) by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway))
|
|
18
|
+
- [iOS] Added the `preferredColorScheme` modifier, which sets the color scheme of a presentation such as `BottomSheet`, including its background. ([#50851](https://github.com/expo/expo/pull/50851) by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway))
|
|
19
|
+
|
|
3
20
|
## 58.0.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
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 = '58.0.
|
|
15
|
+
version = '58.0.11'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "58.0.
|
|
21
|
+
versionName "58.0.11"
|
|
22
22
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
23
23
|
}
|
|
24
24
|
buildFeatures {
|
|
@@ -276,7 +276,13 @@ internal class HostView(context: Context, appContext: AppContext) :
|
|
|
276
276
|
shadowNodeProxy.setStyleSize(styleWidth?.toDouble(), styleHeight?.toDouble())
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
// `onSizeChanged` runs inside the Compose measure pass. Emitting the event here reaches
|
|
280
|
+
// Fabric event listeners synchronously (e.g. reanimated's `onEventDispatch` hook), which
|
|
281
|
+
// can flush mount items and re-enter `onMeasure` of a view that is mid-measure — Compose
|
|
282
|
+
// then throws "performMeasureAndLayout called during measure layout" and takes down the
|
|
283
|
+
// ReactHost. Post the dispatch so it runs after the measure pass completes.
|
|
284
|
+
// See https://github.com/expo/expo/issues/47625.
|
|
285
|
+
post { onLayoutContent(LayoutContentEvent(width.toDouble(), height.toDouble())) }
|
|
280
286
|
}
|
|
281
287
|
}
|
|
282
288
|
|
|
@@ -8,9 +8,15 @@ import android.view.View
|
|
|
8
8
|
import android.view.ViewGroup
|
|
9
9
|
import android.view.ViewParent
|
|
10
10
|
import android.widget.FrameLayout
|
|
11
|
+
import androidx.compose.foundation.layout.fillMaxHeight
|
|
11
12
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
13
|
+
import androidx.compose.foundation.layout.fillMaxWidth
|
|
14
|
+
import androidx.compose.foundation.layout.requiredHeight
|
|
12
15
|
import androidx.compose.foundation.layout.requiredSize
|
|
16
|
+
import androidx.compose.foundation.layout.requiredWidth
|
|
17
|
+
import androidx.compose.foundation.layout.wrapContentHeight
|
|
13
18
|
import androidx.compose.foundation.layout.wrapContentSize
|
|
19
|
+
import androidx.compose.foundation.layout.wrapContentWidth
|
|
14
20
|
import androidx.compose.runtime.Composable
|
|
15
21
|
import androidx.compose.runtime.MutableState
|
|
16
22
|
import androidx.compose.runtime.mutableStateOf
|
|
@@ -42,7 +48,8 @@ import expo.modules.kotlin.views.OptimizedComposeProps
|
|
|
42
48
|
|
|
43
49
|
@OptimizedComposeProps
|
|
44
50
|
internal data class RNHostViewProps(
|
|
45
|
-
val
|
|
51
|
+
val matchContentsHorizontal: MutableState<Boolean?> = mutableStateOf(null),
|
|
52
|
+
val matchContentsVertical: MutableState<Boolean?> = mutableStateOf(null),
|
|
46
53
|
// Adds LeafNode and MeasurableYogaNode trait in Shadow node
|
|
47
54
|
val expoInternalSizeFromChildren: MutableState<Boolean?> = mutableStateOf(null),
|
|
48
55
|
val modifiers: MutableState<ModifierList> = mutableStateOf(emptyList())
|
|
@@ -146,22 +153,33 @@ internal class RNHostView(context: Context, appContext: AppContext) :
|
|
|
146
153
|
|
|
147
154
|
@Composable
|
|
148
155
|
override fun ComposableScope.Content() {
|
|
149
|
-
val
|
|
156
|
+
val matchContentsHorizontal = props.matchContentsHorizontal.value ?: false
|
|
157
|
+
val matchContentsVertical = props.matchContentsVertical.value ?: false
|
|
150
158
|
val scope: ComposableScope = this
|
|
151
159
|
|
|
152
160
|
wrapperState.value?.let { wrapper ->
|
|
153
161
|
childViewState.value ?: return@let
|
|
154
|
-
val sizingModifier =
|
|
155
|
-
applySizeFromYogaNodeModifier()
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
val sizingModifier = when {
|
|
163
|
+
matchContentsHorizontal && matchContentsVertical -> applySizeFromYogaNodeModifier()
|
|
164
|
+
matchContentsVertical ->
|
|
165
|
+
Modifier
|
|
166
|
+
.fillMaxWidth()
|
|
167
|
+
.then(reportSizeToYogaNodeModifier(reportHeight = false))
|
|
168
|
+
.then(applyHeightFromYogaNodeModifier())
|
|
169
|
+
matchContentsHorizontal ->
|
|
170
|
+
Modifier
|
|
171
|
+
.fillMaxHeight()
|
|
172
|
+
.then(reportSizeToYogaNodeModifier(reportWidth = false))
|
|
173
|
+
.then(applyWidthFromYogaNodeModifier())
|
|
174
|
+
else ->
|
|
175
|
+
Modifier
|
|
176
|
+
.fillMaxSize()
|
|
177
|
+
.then(reportSizeToYogaNodeModifier())
|
|
160
178
|
}
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
val modifiers =
|
|
164
|
-
.then(
|
|
179
|
+
// A chain applies outside-in. Caller modifiers go first so a `padding` or `border` shrinks the
|
|
180
|
+
// box before its size is reported and its origin is read.
|
|
181
|
+
val modifiers = ModifierRegistry.applyModifiers(props.modifiers.value, appContext, scope, globalEventDispatcher)
|
|
182
|
+
.then(sizingModifier)
|
|
165
183
|
.then(publishContentOriginModifier())
|
|
166
184
|
|
|
167
185
|
AndroidView(
|
|
@@ -204,6 +222,28 @@ internal class RNHostView(context: Context, appContext: AppContext) :
|
|
|
204
222
|
}
|
|
205
223
|
}
|
|
206
224
|
|
|
225
|
+
@Composable
|
|
226
|
+
private fun applyHeightFromYogaNodeModifier(): Modifier {
|
|
227
|
+
val height = childSizeState.value.height
|
|
228
|
+
if (height <= 0) {
|
|
229
|
+
return Modifier
|
|
230
|
+
}
|
|
231
|
+
return Modifier
|
|
232
|
+
.wrapContentHeight(Alignment.Top, unbounded = true)
|
|
233
|
+
.requiredHeight(with(LocalDensity.current) { height.toDp() })
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@Composable
|
|
237
|
+
private fun applyWidthFromYogaNodeModifier(): Modifier {
|
|
238
|
+
val width = childSizeState.value.width
|
|
239
|
+
if (width <= 0) {
|
|
240
|
+
return Modifier
|
|
241
|
+
}
|
|
242
|
+
return Modifier
|
|
243
|
+
.wrapContentWidth(Alignment.CenterHorizontally, unbounded = true)
|
|
244
|
+
.requiredWidth(with(LocalDensity.current) { width.toDp() })
|
|
245
|
+
}
|
|
246
|
+
|
|
207
247
|
/**
|
|
208
248
|
* Publishes where Compose placed this view inside its `Host`, which Yoga has no way to know:
|
|
209
249
|
* Yoga puts the box at the `Host`'s origin while Compose may draw it anywhere inside. Without
|
|
@@ -233,13 +273,21 @@ internal class RNHostView(context: Context, appContext: AppContext) :
|
|
|
233
273
|
// Sets Yoga node size from Compose view size
|
|
234
274
|
// Listens to Compose view size changes and updates the Yoga node size
|
|
235
275
|
@Composable
|
|
236
|
-
private fun reportSizeToYogaNodeModifier(): Modifier {
|
|
276
|
+
private fun reportSizeToYogaNodeModifier(reportWidth: Boolean = true, reportHeight: Boolean = true): Modifier {
|
|
237
277
|
val density = LocalDensity.current
|
|
238
278
|
return Modifier.onSizeChanged { size ->
|
|
239
279
|
with(density) {
|
|
240
280
|
shadowNodeProxy.setViewSize(
|
|
241
|
-
|
|
242
|
-
|
|
281
|
+
if (reportWidth) {
|
|
282
|
+
size.width.toDp().value.toDouble()
|
|
283
|
+
} else {
|
|
284
|
+
Double.NaN
|
|
285
|
+
},
|
|
286
|
+
if (reportHeight) {
|
|
287
|
+
size.height.toDp().value.toDouble()
|
|
288
|
+
} else {
|
|
289
|
+
Double.NaN
|
|
290
|
+
}
|
|
243
291
|
)
|
|
244
292
|
}
|
|
245
293
|
}
|
|
@@ -318,7 +366,8 @@ private class TouchDispatchingRootViewGroup(
|
|
|
318
366
|
|
|
319
367
|
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
|
|
320
368
|
// Always gets called with EXACTLY mode
|
|
321
|
-
// because parent has
|
|
369
|
+
// because parent has fillMaxSize (matchContents = false), requiredSize (matchContents = true), or a
|
|
370
|
+
// fillMax* + required* pair (one matched axis) modifiers
|
|
322
371
|
setMeasuredDimension(
|
|
323
372
|
MeasureSpec.getSize(widthMeasureSpec),
|
|
324
373
|
MeasureSpec.getSize(heightMeasureSpec)
|
|
@@ -22,6 +22,13 @@ import { extractPickerItems, PickerItem } from './types';
|
|
|
22
22
|
const selectedItem = items.find((item)=>item.value === selectedValue);
|
|
23
23
|
const selectedLabel = selectedItem?.label ?? '';
|
|
24
24
|
const labelState = useNativeState(selectedLabel);
|
|
25
|
+
// `useNativeState` only captures its initial value, so push later changes to the field.
|
|
26
|
+
React.useEffect(()=>{
|
|
27
|
+
labelState.set(selectedLabel);
|
|
28
|
+
}, [
|
|
29
|
+
labelState,
|
|
30
|
+
selectedLabel
|
|
31
|
+
]);
|
|
25
32
|
return /*#__PURE__*/ _jsx(Host, {
|
|
26
33
|
style: style,
|
|
27
34
|
matchContents: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["community/picker/Picker.android.tsx"],"sourcesContent":[null],"names":["React","useNativeState","DropdownMenuItem","ExposedDropdownMenuBox","ExposedDropdownMenu","Host","Text","TextField","menuAnchor","extractPickerItems","PickerItem","Picker","props","selectedValue","onValueChange","enabled","style","children","ref","items","expanded","setExpanded","useState","useImperativeHandle","focus","blur","selectedItem","find","item","value","selectedLabel","label","labelState","matchContents","vertical","onExpandedChange","undefined","readOnly","modifiers","onDismissRequest","map","index","onClick","color","fontFamily","fontSize","background","backgroundColor","String","Item"],"mappings":";AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,cAAc,QAAQ,cAAc;AAC7C,SAASC,gBAAgB,QAAQ,sDAAsD;AACvF,SACEC,sBAAsB,EACtBC,mBAAmB,QACd,+CAA+C;AACtD,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SACEC,kBAAkB,EAClBC,UAAU,QAIL,UAAU;AAEjB;;;CAGC,GACD,OAAO,SAASC,OAAkCC,KAAqB;IACrE,MAAM,EAAEC,aAAa,EAAEC,aAAa,EAAEC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,GAAG,EAAE,GAAGN;IACxE,MAAMO,QAAQV,mBAAsBQ;IACpC,MAAM,CAACG,UAAUC,YAAY,GAAGrB,MAAMsB,QAAQ,CAAC;IAE/CtB,MAAMuB,mBAAmB,CAACL,KAAK,IAAO,CAAA;YACpCM,OAAO,IAAMH,YAAY;YACzBI,MAAM,IAAMJ,YAAY;QAC1B,CAAA;IAEA,MAAMK,eAAeP,MAAMQ,IAAI,CAAC,CAACC,OAASA,KAAKC,KAAK,KAAKhB;IACzD,MAAMiB,gBAAgBJ,cAAcK,SAAS;IAC7C,MAAMC,aAAa/B,eAAe6B;IAElC,qBACE,KAACzB;QAAKW,OAAOA;
|
|
1
|
+
{"version":3,"sources":["community/picker/Picker.android.tsx"],"sourcesContent":[null],"names":["React","useNativeState","DropdownMenuItem","ExposedDropdownMenuBox","ExposedDropdownMenu","Host","Text","TextField","menuAnchor","extractPickerItems","PickerItem","Picker","props","selectedValue","onValueChange","enabled","style","children","ref","items","expanded","setExpanded","useState","useImperativeHandle","focus","blur","selectedItem","find","item","value","selectedLabel","label","labelState","useEffect","set","matchContents","vertical","onExpandedChange","undefined","readOnly","modifiers","onDismissRequest","map","index","onClick","color","fontFamily","fontSize","background","backgroundColor","String","Item"],"mappings":";AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,cAAc,QAAQ,cAAc;AAC7C,SAASC,gBAAgB,QAAQ,sDAAsD;AACvF,SACEC,sBAAsB,EACtBC,mBAAmB,QACd,+CAA+C;AACtD,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SACEC,kBAAkB,EAClBC,UAAU,QAIL,UAAU;AAEjB;;;CAGC,GACD,OAAO,SAASC,OAAkCC,KAAqB;IACrE,MAAM,EAAEC,aAAa,EAAEC,aAAa,EAAEC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,GAAG,EAAE,GAAGN;IACxE,MAAMO,QAAQV,mBAAsBQ;IACpC,MAAM,CAACG,UAAUC,YAAY,GAAGrB,MAAMsB,QAAQ,CAAC;IAE/CtB,MAAMuB,mBAAmB,CAACL,KAAK,IAAO,CAAA;YACpCM,OAAO,IAAMH,YAAY;YACzBI,MAAM,IAAMJ,YAAY;QAC1B,CAAA;IAEA,MAAMK,eAAeP,MAAMQ,IAAI,CAAC,CAACC,OAASA,KAAKC,KAAK,KAAKhB;IACzD,MAAMiB,gBAAgBJ,cAAcK,SAAS;IAC7C,MAAMC,aAAa/B,eAAe6B;IAElC,wFAAwF;IACxF9B,MAAMiC,SAAS,CAAC;QACdD,WAAWE,GAAG,CAACJ;IACjB,GAAG;QAACE;QAAYF;KAAc;IAE9B,qBACE,KAACzB;QAAKW,OAAOA;QAAOmB,eAAe;YAAEC,UAAU;QAAK;kBAClD,cAAA,MAACjC;YACCiB,UAAUA;YACViB,kBAAkBtB,YAAY,QAAQuB,YAAYjB;;8BAClD,KAACd;oBAAUsB,OAAOG;oBAAYO,QAAQ;oBAACxB,SAASA;oBAASyB,WAAW;wBAAChC;qBAAa;;8BAClF,KAACJ;oBAAoBgB,UAAUA;oBAAUqB,kBAAkB,IAAMpB,YAAY;8BAC1EF,MAAMuB,GAAG,CAAC,CAACd,MAAMe,sBAChB,KAACzC;4BAECa,SAASa,KAAKb,OAAO;4BACrB6B,SAAS;gCACP9B,gBAAgBc,KAAKC,KAAK,EAAEc;gCAC5BtB,YAAY;4BACd;sCACA,cAAA,KAACnB,iBAAiBI,IAAI;0CACpB,cAAA,KAACA;oCACCuC,OAAOjB,KAAKiB,KAAK;oCACjB7B,OAAO;wCACL8B,YAAYlB,KAAKkB,UAAU;wCAC3BC,UAAUnB,KAAKmB,QAAQ;wCACvBC,YAAYpB,KAAKqB,eAAe;oCAClC;8CACCrB,KAAKG,KAAK;;;2BAdVmB,OAAOtB,KAAKC,KAAK,IAAIc;;;;;AAuBxC;AAEAhC,OAAOwC,IAAI,GAAGzC"}
|
|
@@ -6,10 +6,15 @@ export interface RNHostProps extends PrimitiveBaseProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* When `true`, the RNHost will update its size in the Jetpack Compose view tree to match the children's size.
|
|
8
8
|
* When `false`, the RNHost will use the size of the parent Jetpack Compose View.
|
|
9
|
+
* Pass an object to choose per axis. For example, `{ vertical: true }` takes the width from the
|
|
10
|
+
* parent and the height from the children, so text wraps and grows vertically.
|
|
9
11
|
* Can be only set once on mount.
|
|
10
12
|
* @default false
|
|
11
13
|
*/
|
|
12
|
-
matchContents?: boolean
|
|
14
|
+
matchContents?: boolean | {
|
|
15
|
+
vertical?: boolean;
|
|
16
|
+
horizontal?: boolean;
|
|
17
|
+
};
|
|
13
18
|
/**
|
|
14
19
|
* Called on mount and whenever this view's layout in the React Native view tree changes.
|
|
15
20
|
* With `matchContents`, the reported size is the one measured from the hosted view.
|
|
@@ -2,16 +2,20 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
3
|
import { requireNativeView } from 'expo';
|
|
4
4
|
import { PresentedContentContext, useIsPresentedInOwnWindow } from '../../PresentedContentContext';
|
|
5
|
+
import { resolveMatchContents } from '../../utils/matchContents';
|
|
5
6
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
6
7
|
const NativeRNHostView = requireNativeView('ExpoUI', 'RNHostView');
|
|
7
8
|
function transformProps(props, layoutRoot) {
|
|
8
|
-
const { modifiers, ...restProps } = props;
|
|
9
|
+
const { modifiers, matchContents, ...restProps } = props;
|
|
10
|
+
const { horizontal: matchContentsHorizontal, vertical: matchContentsVertical } = resolveMatchContents(matchContents);
|
|
9
11
|
return {
|
|
10
12
|
modifiers,
|
|
11
13
|
...modifiers ? createViewModifierEventListener(modifiers) : undefined,
|
|
12
14
|
...restProps,
|
|
13
15
|
layoutRoot,
|
|
14
|
-
|
|
16
|
+
matchContentsHorizontal,
|
|
17
|
+
matchContentsVertical,
|
|
18
|
+
expoInternalSizeFromChildren: matchContentsHorizontal || matchContentsVertical
|
|
15
19
|
};
|
|
16
20
|
}
|
|
17
21
|
export function RNHostView(props) {
|
|
@@ -20,11 +24,12 @@ export function RNHostView(props) {
|
|
|
20
24
|
// root already streams this subtree's touches, and a second stream in a second coordinate space
|
|
21
25
|
// is what makes a `Pressable` drop its press on the first finger movement.
|
|
22
26
|
const layoutRoot = useIsPresentedInOwnWindow();
|
|
27
|
+
const nativeProps = transformProps(props, layoutRoot);
|
|
23
28
|
return /*#__PURE__*/ _createElement(NativeRNHostView, {
|
|
24
|
-
...
|
|
29
|
+
...nativeProps,
|
|
25
30
|
// `matchContents` can only be used once on mount
|
|
26
31
|
// So we force unmount when it changes to prevent unexpected layout
|
|
27
|
-
key:
|
|
32
|
+
key: `${nativeProps.matchContentsHorizontal}-${nativeProps.matchContentsVertical}`
|
|
28
33
|
}, /*#__PURE__*/ _jsx(PresentedContentContext.Provider, {
|
|
29
34
|
value: false,
|
|
30
35
|
children: props.children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jetpack-compose/RNHostView/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContentContext","useIsPresentedInOwnWindow","createViewModifierEventListener","NativeRNHostView","transformProps","props","layoutRoot","modifiers","restProps","undefined","expoInternalSizeFromChildren","
|
|
1
|
+
{"version":3,"sources":["jetpack-compose/RNHostView/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContentContext","useIsPresentedInOwnWindow","resolveMatchContents","createViewModifierEventListener","NativeRNHostView","transformProps","props","layoutRoot","modifiers","matchContents","restProps","horizontal","matchContentsHorizontal","vertical","matchContentsVertical","undefined","expoInternalSizeFromChildren","RNHostView","nativeProps","key","Provider","value","children"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,gCAAgC;AAEnG,SAASC,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,+BAA+B,QAAQ,qBAAqB;AAqCrE,MAAMC,mBAAqDL,kBACzD,UACA;AAGF,SAASM,eAAeC,KAAkB,EAAEC,UAAmB;IAC7D,MAAM,EAAEC,SAAS,EAAEC,aAAa,EAAE,GAAGC,WAAW,GAAGJ;IACnD,MAAM,EAAEK,YAAYC,uBAAuB,EAAEC,UAAUC,qBAAqB,EAAE,GAC5EZ,qBAAqBO;IACvB,OAAO;QACLD;QACA,GAAIA,YAAYL,gCAAgCK,aAAaO,SAAS;QACtE,GAAGL,SAAS;QACZH;QACAK;QACAE;QACAE,8BAA8BJ,2BAA2BE;IAC3D;AACF;AAEA,OAAO,SAASG,WAAWX,KAAkB;IAC3C,iGAAiG;IACjG,gGAAgG;IAChG,gGAAgG;IAChG,2EAA2E;IAC3E,MAAMC,aAAaN;IAEnB,MAAMiB,cAAcb,eAAeC,OAAOC;IAE1C,qBACE,eAACH;QACE,GAAGc,WAAW;QACf,iDAAiD;QACjD,mEAAmE;QACnEC,KAAK,GAAGD,YAAYN,uBAAuB,CAAC,CAAC,EAAEM,YAAYJ,qBAAqB,EAAE;qBAElF,KAACd,wBAAwBoB,QAAQ;QAACC,OAAO;kBACtCf,MAAMgB,QAAQ;;AAIvB"}
|
|
@@ -4,14 +4,19 @@ export interface RNHostViewProps {
|
|
|
4
4
|
* When `true`, the RNHost will update its size in the React Native view tree to match the
|
|
5
5
|
* children's size.
|
|
6
6
|
* When `false`, the RNHost will use the size of the parent SwiftUI View.
|
|
7
|
+
* Pass an object to choose per axis. For example, `{ vertical: true }` takes the width from the
|
|
8
|
+
* parent and the height from the children, so text wraps and grows vertically.
|
|
7
9
|
* Can be only set once on mount.
|
|
8
10
|
* @default false
|
|
9
11
|
*/
|
|
10
|
-
matchContents?: boolean
|
|
12
|
+
matchContents?: boolean | {
|
|
13
|
+
vertical?: boolean;
|
|
14
|
+
horizontal?: boolean;
|
|
15
|
+
};
|
|
11
16
|
onLayout?: (event: LayoutChangeEvent) => void;
|
|
12
17
|
/**
|
|
13
18
|
* The RN View to be hosted.
|
|
14
19
|
*/
|
|
15
20
|
children: React.ReactElement;
|
|
16
21
|
}
|
|
17
|
-
export declare function RNHostView(props: RNHostViewProps): import("react").JSX.Element;
|
|
22
|
+
export declare function RNHostView({ matchContents, ...props }: RNHostViewProps): import("react").JSX.Element;
|
|
@@ -2,20 +2,24 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
3
|
import { requireNativeView } from 'expo';
|
|
4
4
|
import { PresentedContentContext, useIsPresentedInOwnWindow } from '../PresentedContentContext';
|
|
5
|
+
import { resolveMatchContents } from '../utils/matchContents';
|
|
5
6
|
const RNHostNativeView = requireNativeView('ExpoUI', 'RNHostView');
|
|
6
|
-
export function RNHostView(props) {
|
|
7
|
+
export function RNHostView({ matchContents, ...props }) {
|
|
7
8
|
// A sheet or popover presents its content in its own view controller, where the React Native
|
|
8
9
|
// surface root is not an ancestor and so touch dispatches don't work.
|
|
9
10
|
// Hosted content there owns its touches and is the origin it is measured from; native reads
|
|
10
11
|
// this one prop for both.
|
|
11
12
|
const layoutRoot = useIsPresentedInOwnWindow();
|
|
13
|
+
const { horizontal: matchContentsHorizontal, vertical: matchContentsVertical } = resolveMatchContents(matchContents);
|
|
12
14
|
return /*#__PURE__*/ _createElement(RNHostNativeView, {
|
|
13
15
|
...props,
|
|
14
16
|
layoutRoot: layoutRoot,
|
|
15
|
-
|
|
17
|
+
matchContentsHorizontal: matchContentsHorizontal,
|
|
18
|
+
matchContentsVertical: matchContentsVertical,
|
|
19
|
+
expoInternalSizeFromChildren: matchContentsHorizontal || matchContentsVertical,
|
|
16
20
|
// `matchContents` can only be used once on mount
|
|
17
21
|
// So we force unmount when it changes to prevent unexpected layout
|
|
18
|
-
key:
|
|
22
|
+
key: `${matchContentsHorizontal}-${matchContentsVertical}`
|
|
19
23
|
}, /*#__PURE__*/ _jsx(PresentedContentContext.Provider, {
|
|
20
24
|
value: false,
|
|
21
25
|
children: props.children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["swift-ui/RNHostView.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContentContext","useIsPresentedInOwnWindow","RNHostNativeView","RNHostView","props","layoutRoot","
|
|
1
|
+
{"version":3,"sources":["swift-ui/RNHostView.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContentContext","useIsPresentedInOwnWindow","resolveMatchContents","RNHostNativeView","RNHostView","matchContents","props","layoutRoot","horizontal","matchContentsHorizontal","vertical","matchContentsVertical","expoInternalSizeFromChildren","key","Provider","value","children"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,6BAA6B;AAChG,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D,MAAMC,mBAA6CJ,kBAAkB,UAAU;AAoB/E,OAAO,SAASK,WAAW,EAAEC,aAAa,EAAE,GAAGC,OAAwB;IACrE,6FAA6F;IAC7F,sEAAsE;IACtE,4FAA4F;IAC5F,0BAA0B;IAC1B,MAAMC,aAAaN;IACnB,MAAM,EAAEO,YAAYC,uBAAuB,EAAEC,UAAUC,qBAAqB,EAAE,GAC5ET,qBAAqBG;IAEvB,qBACE,eAACF;QACE,GAAGG,KAAK;QACTC,YAAYA;QACZE,yBAAyBA;QACzBE,uBAAuBA;QACvBC,8BAA8BH,2BAA2BE;QACzD,iDAAiD;QACjD,mEAAmE;QACnEE,KAAK,GAAGJ,wBAAwB,CAAC,EAAEE,uBAAuB;qBAE1D,KAACX,wBAAwBc,QAAQ;QAACC,OAAO;kBACtCT,MAAMU,QAAQ;;AAIvB"}
|
|
@@ -3,8 +3,8 @@ export type ContainerBackgroundPlacement = 'widget' | 'navigation' | 'navigation
|
|
|
3
3
|
/**
|
|
4
4
|
* Sets the container background of the enclosing container.
|
|
5
5
|
*
|
|
6
|
-
* > **Note:** `navigation` and `navigationSplitView` require iOS 18.
|
|
7
|
-
* >
|
|
6
|
+
* > **Note:** `navigation` and `navigationSplitView` require iOS 18. The `widget` placement works
|
|
7
|
+
* > only in `expo-widgets` widgets, where the other placements fall back to it on iOS 17.
|
|
8
8
|
*
|
|
9
9
|
* @param style - Any [`ShapeStyle`](#shapestyle): a color, a hierarchical style, a material, or a gradient.
|
|
10
10
|
* @param container - The type of container to apply the background to.
|
|
@@ -3,8 +3,8 @@ import { resolveShapeStyle } from './shapeStyle';
|
|
|
3
3
|
/**
|
|
4
4
|
* Sets the container background of the enclosing container.
|
|
5
5
|
*
|
|
6
|
-
* > **Note:** `navigation` and `navigationSplitView` require iOS 18.
|
|
7
|
-
* >
|
|
6
|
+
* > **Note:** `navigation` and `navigationSplitView` require iOS 18. The `widget` placement works
|
|
7
|
+
* > only in `expo-widgets` widgets, where the other placements fall back to it on iOS 17.
|
|
8
8
|
*
|
|
9
9
|
* @param style - Any [`ShapeStyle`](#shapestyle): a color, a hierarchical style, a material, or a gradient.
|
|
10
10
|
* @param container - The type of container to apply the background to.
|
|
@@ -624,6 +624,14 @@ export declare const scrollDismissesKeyboard: (mode: "automatic" | "never" | "in
|
|
|
624
624
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/scrolldisabled(_:)).
|
|
625
625
|
*/
|
|
626
626
|
export declare const scrollDisabled: (disabled?: boolean) => ModifierConfig;
|
|
627
|
+
/**
|
|
628
|
+
* Sets the preferred color scheme for the nearest enclosing presentation, such as a `BottomSheet`,
|
|
629
|
+
* including its background. The value overrides the device's light or dark appearance for that
|
|
630
|
+
* presentation.
|
|
631
|
+
* @param colorScheme - The preferred color scheme, or `null` to indicate no preference.
|
|
632
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/preferredcolorscheme(_:)).
|
|
633
|
+
*/
|
|
634
|
+
export declare const preferredColorScheme: (colorScheme: "light" | "dark" | null) => ModifierConfig;
|
|
627
635
|
/**
|
|
628
636
|
* Disables or enables clipping of a scrollable view's content to its bounds.
|
|
629
637
|
* Content drawn outside those bounds, such as a shadow or a view scaled up past the edge, is
|
|
@@ -1298,7 +1306,7 @@ export declare const navigationTitle: (title: string) => ModifierConfig;
|
|
|
1298
1306
|
* This provides type safety for the modifiers array.
|
|
1299
1307
|
* @hidden
|
|
1300
1308
|
*/
|
|
1301
|
-
export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof luminanceToAlpha> | ReturnType<typeof onDisappear> | ReturnType<typeof onGeometryChange> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof strokeBorder> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof rotation3DEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof redacted> | ReturnType<typeof unredacted> | ReturnType<typeof privacySensitive> | ReturnType<typeof invalidatableContent> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof buttonBorderShape> | ReturnType<typeof toggleStyle> | ReturnType<typeof menuStyle> | ReturnType<typeof menuIndicator> | ReturnType<typeof controlSize> | ReturnType<typeof imageScale> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof accessibilityInputLabels> | ReturnType<typeof accessibilityIdentifier> | ReturnType<typeof accessibilityHidden> | ReturnType<typeof accessibilityElement> | ReturnType<typeof accessibilityAddTraits> | ReturnType<typeof accessibilityRemoveTraits> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof geometryGroup> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof scrollClipDisabled> | ReturnType<typeof scrollIndicators> | ReturnType<typeof scrollEdgeEffectStyle> | ReturnType<typeof defaultScrollAnchor> | ReturnType<typeof defaultScrollAnchorForRole> | ReturnType<typeof scrollTargetBehavior> | ReturnType<typeof scrollTargetLayout> | ReturnType<typeof id> | ReturnType<typeof scrollPosition> | ReturnType<typeof onScrollPhaseChange> | NonNullable<ReturnType<typeof useScrollGeometryChange>> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof listRowSeparatorTint> | ReturnType<typeof listRowSpacing> | ReturnType<typeof alignmentGuide> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineHeight> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof dynamicTypeSize> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof keyboardType> | ReturnType<typeof autocorrectionDisabled> | ReturnType<typeof onSubmit> | ReturnType<typeof textInputAutocapitalization> | ReturnType<typeof textContentType> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition> | ReturnType<typeof resizable> | ReturnType<typeof symbolEffect> | ReturnType<typeof widgetAccentedRenderingMode> | ReturnType<typeof widgetURL> | ReturnType<typeof activityBackgroundTint> | ReturnType<typeof containerBackground> | ReturnType<typeof navigationTitle>;
|
|
1309
|
+
export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof luminanceToAlpha> | ReturnType<typeof onDisappear> | ReturnType<typeof onGeometryChange> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof strokeBorder> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof rotation3DEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof redacted> | ReturnType<typeof unredacted> | ReturnType<typeof privacySensitive> | ReturnType<typeof invalidatableContent> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof buttonBorderShape> | ReturnType<typeof toggleStyle> | ReturnType<typeof menuStyle> | ReturnType<typeof menuIndicator> | ReturnType<typeof controlSize> | ReturnType<typeof imageScale> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof accessibilityInputLabels> | ReturnType<typeof accessibilityIdentifier> | ReturnType<typeof accessibilityHidden> | ReturnType<typeof accessibilityElement> | ReturnType<typeof accessibilityAddTraits> | ReturnType<typeof accessibilityRemoveTraits> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof geometryGroup> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof preferredColorScheme> | ReturnType<typeof scrollClipDisabled> | ReturnType<typeof scrollIndicators> | ReturnType<typeof scrollEdgeEffectStyle> | ReturnType<typeof defaultScrollAnchor> | ReturnType<typeof defaultScrollAnchorForRole> | ReturnType<typeof scrollTargetBehavior> | ReturnType<typeof scrollTargetLayout> | ReturnType<typeof id> | ReturnType<typeof scrollPosition> | ReturnType<typeof onScrollPhaseChange> | NonNullable<ReturnType<typeof useScrollGeometryChange>> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof listRowSeparatorTint> | ReturnType<typeof listRowSpacing> | ReturnType<typeof alignmentGuide> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineHeight> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof dynamicTypeSize> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof keyboardType> | ReturnType<typeof autocorrectionDisabled> | ReturnType<typeof onSubmit> | ReturnType<typeof textInputAutocapitalization> | ReturnType<typeof textContentType> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition> | ReturnType<typeof resizable> | ReturnType<typeof symbolEffect> | ReturnType<typeof widgetAccentedRenderingMode> | ReturnType<typeof widgetURL> | ReturnType<typeof activityBackgroundTint> | ReturnType<typeof containerBackground> | ReturnType<typeof navigationTitle>;
|
|
1302
1310
|
/**
|
|
1303
1311
|
* Main ViewModifier type that supports both built-in and 3rd party modifiers.
|
|
1304
1312
|
* 3rd party modifiers should return ModifierConfig objects with their own type strings.
|
|
@@ -548,6 +548,15 @@ export function frame(params) {
|
|
|
548
548
|
*/ export const scrollDisabled = (disabled = true)=>createModifier('scrollDisabled', {
|
|
549
549
|
disabled
|
|
550
550
|
});
|
|
551
|
+
/**
|
|
552
|
+
* Sets the preferred color scheme for the nearest enclosing presentation, such as a `BottomSheet`,
|
|
553
|
+
* including its background. The value overrides the device's light or dark appearance for that
|
|
554
|
+
* presentation.
|
|
555
|
+
* @param colorScheme - The preferred color scheme, or `null` to indicate no preference.
|
|
556
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/preferredcolorscheme(_:)).
|
|
557
|
+
*/ export const preferredColorScheme = (colorScheme)=>createModifier('preferredColorScheme', {
|
|
558
|
+
colorScheme
|
|
559
|
+
});
|
|
551
560
|
/**
|
|
552
561
|
* Disables or enables clipping of a scrollable view's content to its bounds.
|
|
553
562
|
* Content drawn outside those bounds, such as a shadow or a view scaled up past the edge, is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["swift-ui/modifiers/index.ts"],"sourcesContent":[null],"names":["requireNativeModule","createModifier","createModifierWithEventListener","resolveShapeStyle","ExpoUI","listSectionSpacing","spacing","value","cornerRadius","radius","shadow","params","matchedGeometryEffect","id","namespaceId","options","geometryGroup","frame","__DEV__","width","height","alignment","_alignment","flexible","ignored","Object","keys","filter","key","undefined","length","console","warn","join","containerRelativeFrame","padding","fixedSize","ignoreSafeArea","onTapGesture","handler","onLongPressGesture","minimumDuration","onAppear","onDisappear","onGeometryChange","refreshable","args","completeRefresh","opacity","clipShape","shape","border","content","color","strokeBorder","rest","shapeStyle","scaleEffect","scale","x","y","rotationEffect","angle","rotation3DEffect","axisX","axis","axisY","axisZ","z","perspective","offset","foregroundColor","foregroundStyle","style","bold","italic","monospacedDigit","tint","hidden","disabled","redacted","reasons","Array","isArray","unredacted","privacySensitive","sensitive","invalidatableContent","invalidatable","zIndex","index","blur","brightness","amount","contrast","saturation","hueRotation","colorInvert","inverted","grayscale","buttonStyle","buttonBorderShape","toggleStyle","menuStyle","menuIndicator","visibility","controlSize","size","imageScale","labelStyle","labelsHidden","textFieldStyle","scrollDismissesKeyboard","mode","scrollDisabled","scrollClipDisabled","scrollIndicators","axes","scrollEdgeEffectStyle","edges","defaultScrollAnchor","anchor","defaultScrollAnchorForRole","role","scrollTargetBehavior","behavior","scrollTargetLayout","moveDisabled","deleteDisabled","menuActionDismissBehavior","accessibilityLabel","label","accessibilityHint","hint","accessibilityValue","accessibilityInputLabels","inputLabels","accessibilityIdentifier","identifier","accessibilityHidden","accessibilityElement","children","accessibilityAddTraits","traits","accessibilityRemoveTraits","layoutPriority","priority","mask","overlay","backgroundOverlay","aspectRatio","clipped","glassEffect","glassEffectId","scrollContentBackground","visible","listRowBackground","listRowSeparator","listRowSeparatorTint","listRowSpacing","alignmentGuide","guide","truncationMode","allowsTightening","minimumScaleFactor","factor","kerning","textCase","underline","strikethrough","multilineTextAlignment","textSelection","lineSpacing","lineHeight","lineLimit","limitOrRange","min","max","limit","reservesSpace","headerProminence","prominence","listRowInsets","badgeProminence","badgeType","badge","listSectionMargins","font","dynamicTypeSize","sizeOrRange","gridCellUnsizedAxes","gridCellColumns","count","gridColumnAlignment","gridCellAnchor","submitLabel","keyboardType","autocorrectionDisabled","onSubmit","textInputAutocapitalization","autocapitalization","textContentType","contentTransition","transitionType","countsDown","listStyle","luminanceToAlpha","resizable","capInsets","resizingMode","navigationTitle","title","isModifier","$type","filterModifiers","modifiers"],"mappings":"AAAA;;;CAGC,GAED,SAASA,mBAAmB,QAAQ,OAAO;AAO3C,SACEC,cAAc,EACdC,+BAA+B,QAE1B,mBAAmB;AAO1B,SAASC,iBAAiB,QAAyB,eAAe;AAKlE,MAAMC,SAASJ,oBAAoB;AAEnC,gFAAgF;AAChF,8BAA8B;AAC9B,gFAAgF;AAEhF;;;;CAIC,GACD,OAAO,MAAMK,qBAAqB,CAACC;IACjC,IAAI,OAAOA,YAAY,UAAU;QAC/B,OAAOL,eAAe,sBAAsB;YAC1CK,SAAS;YACTC,OAAOD;QACT;IACF;IAEA,OAAOL,eAAe,sBAAsB;QAAEK;IAAQ;AACxD,EAAE;AAEF;;;;CAIC,GACD,OAAO,MAAME,eAAe,CAACC,SAAmBR,eAAe,gBAAgB;QAAEQ;IAAO,GAAG;AAE3F;;;;CAIC,GACD,OAAO,MAAMC,SAAS,CAACC,SACrBV,eAAe,UAAUU,QAAQ;AAQnC;;;;;;;;;CASC,GACD,OAAO,MAAMC,wBAAwB,CACnCC,IACAC,aACAC,UAKGd,eAAe,yBAA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gBAAgB;AAE9B,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,sBAAsB;AACpC,cAAc,YAAY"}
|
|
1
|
+
{"version":3,"sources":["swift-ui/modifiers/index.ts"],"sourcesContent":[null],"names":["requireNativeModule","createModifier","createModifierWithEventListener","resolveShapeStyle","ExpoUI","listSectionSpacing","spacing","value","cornerRadius","radius","shadow","params","matchedGeometryEffect","id","namespaceId","options","geometryGroup","frame","__DEV__","width","height","alignment","_alignment","flexible","ignored","Object","keys","filter","key","undefined","length","console","warn","join","containerRelativeFrame","padding","fixedSize","ignoreSafeArea","onTapGesture","handler","onLongPressGesture","minimumDuration","onAppear","onDisappear","onGeometryChange","refreshable","args","completeRefresh","opacity","clipShape","shape","border","content","color","strokeBorder","rest","shapeStyle","scaleEffect","scale","x","y","rotationEffect","angle","rotation3DEffect","axisX","axis","axisY","axisZ","z","perspective","offset","foregroundColor","foregroundStyle","style","bold","italic","monospacedDigit","tint","hidden","disabled","redacted","reasons","Array","isArray","unredacted","privacySensitive","sensitive","invalidatableContent","invalidatable","zIndex","index","blur","brightness","amount","contrast","saturation","hueRotation","colorInvert","inverted","grayscale","buttonStyle","buttonBorderShape","toggleStyle","menuStyle","menuIndicator","visibility","controlSize","size","imageScale","labelStyle","labelsHidden","textFieldStyle","scrollDismissesKeyboard","mode","scrollDisabled","preferredColorScheme","colorScheme","scrollClipDisabled","scrollIndicators","axes","scrollEdgeEffectStyle","edges","defaultScrollAnchor","anchor","defaultScrollAnchorForRole","role","scrollTargetBehavior","behavior","scrollTargetLayout","moveDisabled","deleteDisabled","menuActionDismissBehavior","accessibilityLabel","label","accessibilityHint","hint","accessibilityValue","accessibilityInputLabels","inputLabels","accessibilityIdentifier","identifier","accessibilityHidden","accessibilityElement","children","accessibilityAddTraits","traits","accessibilityRemoveTraits","layoutPriority","priority","mask","overlay","backgroundOverlay","aspectRatio","clipped","glassEffect","glassEffectId","scrollContentBackground","visible","listRowBackground","listRowSeparator","listRowSeparatorTint","listRowSpacing","alignmentGuide","guide","truncationMode","allowsTightening","minimumScaleFactor","factor","kerning","textCase","underline","strikethrough","multilineTextAlignment","textSelection","lineSpacing","lineHeight","lineLimit","limitOrRange","min","max","limit","reservesSpace","headerProminence","prominence","listRowInsets","badgeProminence","badgeType","badge","listSectionMargins","font","dynamicTypeSize","sizeOrRange","gridCellUnsizedAxes","gridCellColumns","count","gridColumnAlignment","gridCellAnchor","submitLabel","keyboardType","autocorrectionDisabled","onSubmit","textInputAutocapitalization","autocapitalization","textContentType","contentTransition","transitionType","countsDown","listStyle","luminanceToAlpha","resizable","capInsets","resizingMode","navigationTitle","title","isModifier","$type","filterModifiers","modifiers"],"mappings":"AAAA;;;CAGC,GAED,SAASA,mBAAmB,QAAQ,OAAO;AAO3C,SACEC,cAAc,EACdC,+BAA+B,QAE1B,mBAAmB;AAO1B,SAASC,iBAAiB,QAAyB,eAAe;AAKlE,MAAMC,SAASJ,oBAAoB;AAEnC,gFAAgF;AAChF,8BAA8B;AAC9B,gFAAgF;AAEhF;;;;CAIC,GACD,OAAO,MAAMK,qBAAqB,CAACC;IACjC,IAAI,OAAOA,YAAY,UAAU;QAC/B,OAAOL,eAAe,sBAAsB;YAC1CK,SAAS;YACTC,OAAOD;QACT;IACF;IAEA,OAAOL,eAAe,sBAAsB;QAAEK;IAAQ;AACxD,EAAE;AAEF;;;;CAIC,GACD,OAAO,MAAME,eAAe,CAACC,SAAmBR,eAAe,gBAAgB;QAAEQ;IAAO,GAAG;AAE3F;;;;CAIC,GACD,OAAO,MAAMC,SAAS,CAACC,SACrBV,eAAe,UAAUU,QAAQ;AAQnC;;;;;;;;;CASC,GACD,OAAO,MAAMC,wBAAwB,CACnCC,IACAC,aACAC,UAKGd,eAAe,yBAAyB;QAAEY;QAAIC;QAAa,GAAGC,OAAO;IAAC,GAAG;AAE9E;;;;;;;;;;;;;;CAcC,GACD,OAAO,MAAMC,gBAAgB,IAAMf,eAAe,iBAAiB,CAAC,GAAG;AAyCvE,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AAiB;AAC/B,cAAc,sBAAsB;AACpC,cAAc,YAAY"}
|
|
@@ -23,7 +23,10 @@ function renderSupporting(node) {
|
|
|
23
23
|
const supporting = slots.supporting ?? supportingText;
|
|
24
24
|
return /*#__PURE__*/ _jsxs(Pressable, {
|
|
25
25
|
onPress: onPress,
|
|
26
|
-
style:
|
|
26
|
+
style: [
|
|
27
|
+
styles.row,
|
|
28
|
+
onPress != null ? styles.rowIsPressable : styles.rowIsStatic
|
|
29
|
+
],
|
|
27
30
|
testID: testID,
|
|
28
31
|
children: [
|
|
29
32
|
leading != null ? /*#__PURE__*/ _jsx(View, {
|
|
@@ -54,9 +57,15 @@ const styles = StyleSheet.create({
|
|
|
54
57
|
gap: 12,
|
|
55
58
|
width: '100%',
|
|
56
59
|
paddingVertical: 12,
|
|
57
|
-
paddingHorizontal: 16
|
|
60
|
+
paddingHorizontal: 16
|
|
61
|
+
},
|
|
62
|
+
// Pressable defaults to cursor: pointer; override it when not pressable.
|
|
63
|
+
rowIsPressable: {
|
|
58
64
|
cursor: 'pointer'
|
|
59
65
|
},
|
|
66
|
+
rowIsStatic: {
|
|
67
|
+
cursor: 'auto'
|
|
68
|
+
},
|
|
60
69
|
main: {
|
|
61
70
|
flexDirection: 'column',
|
|
62
71
|
gap: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/ListItem/ListItem.tsx"],"sourcesContent":[null],"names":["Pressable","StyleSheet","Text","useColorScheme","View","extractListItemSlots","renderSupporting","node","style","styles","supportingText","ListItem","props","children","onPress","leading","leadingProp","trailing","trailingProp","testID","isDark","slots","supporting","row","slot","main","darkText","headline","create","flexDirection","alignItems","gap","width","paddingVertical","paddingHorizontal","cursor","flex","minWidth","flexShrink","fontSize","color"],"mappings":";AACA,SAASA,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,cAAc,EAAEC,IAAI,QAAQ,eAAe;AAEjF,SAASC,oBAAoB,QAAQ,kBAAkB;AAGvD,SAASC,iBAAiBC,IAAe;IACvC,IAAI,OAAOA,SAAS,UAAU;QAC5B,qBAAO,KAACL;YAAKM,OAAOC,OAAOC,cAAc;sBAAGH;;IAC9C;IACA,OAAOA;AACT;AAEA;;;;CAIC,GACD,OAAO,SAASI,SAASC,KAAoB;IAC3C,MAAM,EACJC,QAAQ,EACRC,OAAO,EACPC,SAASC,WAAW,EACpBC,UAAUC,YAAY,EACtBR,cAAc,EACdS,MAAM,EACP,GAAGP;IAEJ,MAAMQ,SAASjB,qBAAqB;IACpC,MAAMkB,QAAQhB,qBAAqBQ;IACnC,MAAME,UAAUM,MAAMN,OAAO,IAAIC;IACjC,MAAMC,WAAWI,MAAMJ,QAAQ,IAAIC;IACnC,MAAMI,aAAaD,MAAMC,UAAU,IAAIZ;IAEvC,qBACE,MAACV;
|
|
1
|
+
{"version":3,"sources":["universal/ListItem/ListItem.tsx"],"sourcesContent":[null],"names":["Pressable","StyleSheet","Text","useColorScheme","View","extractListItemSlots","renderSupporting","node","style","styles","supportingText","ListItem","props","children","onPress","leading","leadingProp","trailing","trailingProp","testID","isDark","slots","supporting","row","rowIsPressable","rowIsStatic","slot","main","darkText","headline","create","flexDirection","alignItems","gap","width","paddingVertical","paddingHorizontal","cursor","flex","minWidth","flexShrink","fontSize","color"],"mappings":";AACA,SAASA,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,cAAc,EAAEC,IAAI,QAAQ,eAAe;AAEjF,SAASC,oBAAoB,QAAQ,kBAAkB;AAGvD,SAASC,iBAAiBC,IAAe;IACvC,IAAI,OAAOA,SAAS,UAAU;QAC5B,qBAAO,KAACL;YAAKM,OAAOC,OAAOC,cAAc;sBAAGH;;IAC9C;IACA,OAAOA;AACT;AAEA;;;;CAIC,GACD,OAAO,SAASI,SAASC,KAAoB;IAC3C,MAAM,EACJC,QAAQ,EACRC,OAAO,EACPC,SAASC,WAAW,EACpBC,UAAUC,YAAY,EACtBR,cAAc,EACdS,MAAM,EACP,GAAGP;IAEJ,MAAMQ,SAASjB,qBAAqB;IACpC,MAAMkB,QAAQhB,qBAAqBQ;IACnC,MAAME,UAAUM,MAAMN,OAAO,IAAIC;IACjC,MAAMC,WAAWI,MAAMJ,QAAQ,IAAIC;IACnC,MAAMI,aAAaD,MAAMC,UAAU,IAAIZ;IAEvC,qBACE,MAACV;QACCc,SAASA;QACTN,OAAO;YAACC,OAAOc,GAAG;YAAET,WAAW,OAAOL,OAAOe,cAAc,GAAGf,OAAOgB,WAAW;SAAC;QACjFN,QAAQA;;YACPJ,WAAW,qBAAO,KAACX;gBAAKI,OAAOC,OAAOiB,IAAI;0BAAGX;iBAAkB;0BAChE,MAACX;gBAAKI,OAAOC,OAAOkB,IAAI;;kCACtB,KAACzB;wBAAKM,OAAOY,UAAUX,OAAOmB,QAAQ;kCAAGP,MAAMQ,QAAQ;;oBACtDP,cAAc,OAAOhB,iBAAiBgB,cAAc;;;YAEtDL,YAAY,qBAAO,KAACb;gBAAKI,OAAOC,OAAOiB,IAAI;0BAAGT;iBAAmB;;;AAGxE;AAEA,MAAMR,SAASR,WAAW6B,MAAM,CAAC;IAC/BP,KAAK;QACHQ,eAAe;QACfC,YAAY;QACZC,KAAK;QACLC,OAAO;QACPC,iBAAiB;QACjBC,mBAAmB;IACrB;IACA,yEAAyE;IACzEZ,gBAAgB;QACda,QAAQ;IACV;IACAZ,aAAa;QACXY,QAAQ;IACV;IACAV,MAAM;QACJI,eAAe;QACfE,KAAK;QACLK,MAAM;QACNC,UAAU;IACZ;IACAb,MAAM;QACJK,eAAe;QACfC,YAAY;QACZQ,YAAY;IACd;IACA9B,gBAAgB;QACd+B,UAAU;QACVC,OAAO;IACT;IACAd,UAAU;QACRc,OAAO;IACT;AACF;AAEA,cAAc,UAAU"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { resolveMatchContents } from '../../utils/matchContents';
|
|
3
4
|
import { useUniversalLifecycle } from '../hooks';
|
|
4
5
|
const styles = StyleSheet.create({
|
|
5
|
-
|
|
6
|
-
width: '100%'
|
|
6
|
+
fillWidth: {
|
|
7
|
+
width: '100%'
|
|
8
|
+
},
|
|
9
|
+
fillHeight: {
|
|
7
10
|
height: '100%'
|
|
8
11
|
},
|
|
9
|
-
|
|
10
|
-
width: 'fit-content'
|
|
12
|
+
fitWidth: {
|
|
13
|
+
width: 'fit-content'
|
|
14
|
+
},
|
|
15
|
+
fitHeight: {
|
|
11
16
|
height: 'fit-content'
|
|
12
17
|
},
|
|
13
18
|
hidden: {
|
|
@@ -18,11 +23,13 @@ const styles = StyleSheet.create({
|
|
|
18
23
|
* Hosts React Native views inside Jetpack Compose or SwiftUI views.
|
|
19
24
|
*/ export function RNHostView({ children, style, onAppear, onDisappear, hidden = false, testID, matchContents = false, onLayout }) {
|
|
20
25
|
useUniversalLifecycle(onAppear, onDisappear);
|
|
26
|
+
const { horizontal, vertical } = resolveMatchContents(matchContents);
|
|
21
27
|
return /*#__PURE__*/ _jsx(View, {
|
|
22
28
|
testID: testID,
|
|
23
29
|
onLayout: onLayout,
|
|
24
30
|
style: [
|
|
25
|
-
|
|
31
|
+
horizontal ? styles.fitWidth : styles.fillWidth,
|
|
32
|
+
vertical ? styles.fitHeight : styles.fillHeight,
|
|
26
33
|
style,
|
|
27
34
|
hidden && styles.hidden
|
|
28
35
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/RNHostView/index.tsx"],"sourcesContent":[null],"names":["StyleSheet","View","useUniversalLifecycle","styles","create","
|
|
1
|
+
{"version":3,"sources":["universal/RNHostView/index.tsx"],"sourcesContent":[null],"names":["StyleSheet","View","resolveMatchContents","useUniversalLifecycle","styles","create","fillWidth","width","fillHeight","height","fitWidth","fitHeight","hidden","display","RNHostView","children","style","onAppear","onDisappear","testID","matchContents","onLayout","horizontal","vertical"],"mappings":";AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,eAAe;AAEhD,SAASC,oBAAoB,QAAQ,4BAA4B;AACjE,SAASC,qBAAqB,QAAQ,WAAW;AAGjD,MAAMC,SAASJ,WAAWK,MAAM,CAAC;IAC/BC,WAAW;QAAEC,OAAO;IAAO;IAC3BC,YAAY;QAAEC,QAAQ;IAAO;IAC7BC,UAAU;QAAEH,OAAO;IAAc;IACjCI,WAAW;QAAEF,QAAQ;IAAc;IACnCG,QAAQ;QAAEC,SAAS;IAAO;AAC5B;AAEA;;CAEC,GACD,OAAO,SAASC,WAAW,EACzBC,QAAQ,EACRC,KAAK,EACLC,QAAQ,EACRC,WAAW,EACXN,SAAS,KAAK,EACdO,MAAM,EACNC,gBAAgB,KAAK,EACrBC,QAAQ,EACQ;IAChBlB,sBAAsBc,UAAUC;IAChC,MAAM,EAAEI,UAAU,EAAEC,QAAQ,EAAE,GAAGrB,qBAAqBkB;IAEtD,qBACE,KAACnB;QACCkB,QAAQA;QACRE,UAAUA;QACVL,OAAO;YACLM,aAAalB,OAAOM,QAAQ,GAAGN,OAAOE,SAAS;YAC/CiB,WAAWnB,OAAOO,SAAS,GAAGP,OAAOI,UAAU;YAC/CQ;YACAJ,UAAUR,OAAOQ,MAAM;SACxB;kBACAG;;AAGP;AAEA,cAAc,UAAU"}
|