TypeScript
feat(mobile): map native hosts to the app theme (#18567)
Julius Marmingedf83cfa233a7
diff --git a/apps/mobile/package.json b/apps/mobile/package.jsonindex 34be386eec4..a6b16e23592 100644--- a/apps/mobile/package.json+++ b/apps/mobile/package.json@@ -50,7 +50,7 @@"@effect/atom-react": "catalog:","@expo-google-fonts/dm-sans": "^0.4.2","@expo/metro-runtime": "~58.0.10",- "@expo/ui": "~58.0.11",+ "@expo/ui": "58.0.11","@legendapp/list": "catalog:","@material/material-color-utilities": "0.3.0","@noble/curves": "catalog:",@@ -164,6 +164,7 @@},"autolinking": {"buildFromSource": [+ "expo-ui","expo-notifications","react-native-screens","react-native-reanimated",diff --git a/apps/mobile/src/components/NativeThemeHost.android.tsx b/apps/mobile/src/components/NativeThemeHost.android.tsxnew file mode 100644index 00000000000..679b08b88f9--- /dev/null+++ b/apps/mobile/src/components/NativeThemeHost.android.tsx@@ -0,0 +1,18 @@+import { Host } from "@expo/ui/jetpack-compose";+import type { ComponentProps } from "react";+import { createNativeThemeColors } from "../lib/nativeTheme";+import { useControlTheme } from "./useControlTheme";++/** One native island, using T3's resolved colors or the user's Material You palette. */+export function NativeThemeHost(+ props: Omit<ComponentProps<typeof Host>, "colorScheme" | "seedColor" | "colorOverrides">,+) {+ const { colors, colorScheme, systemColorsActive } = useControlTheme();+ return (+ <Host+ {...props}+ colorScheme={colorScheme}+ colorOverrides={systemColorsActive ? undefined : createNativeThemeColors(colors)}+ />+ );+}diff --git a/apps/mobile/src/components/NativeThemeHost.tsx b/apps/mobile/src/components/NativeThemeHost.tsxnew file mode 100644index 00000000000..36e96d0773d--- /dev/null+++ b/apps/mobile/src/components/NativeThemeHost.tsx@@ -0,0 +1,11 @@+import { Host } from "@expo/ui/swift-ui";+import type { ComponentProps } from "react";+import { useControlTheme } from "./useControlTheme";++/** SwiftUI shares the app's appearance and action tint. Row fills stay explicit. */+export function NativeThemeHost(+ props: Omit<ComponentProps<typeof Host>, "colorScheme" | "seedColor">,+) {+ const { colors, colorScheme } = useControlTheme();+ return <Host {...props} colorScheme={colorScheme} seedColor={colors["--color-primary"]} />;+}diff --git a/apps/mobile/src/components/NumberField.ios.tsx b/apps/mobile/src/components/NumberField.ios.tsxindex 958698b65a9..666af6e160d 100644--- a/apps/mobile/src/components/NumberField.ios.tsx+++ b/apps/mobile/src/components/NumberField.ios.tsx@@ -1,4 +1,4 @@-import { Button, Host, HStack, Picker, Popover, Text, VStack } from "@expo/ui/swift-ui";+import { Button, HStack, Picker, Popover, Text, VStack } from "@expo/ui/swift-ui";import {accessibilityLabel,buttonStyle,@@ -13,16 +13,17 @@ import {} from "@expo/ui/swift-ui/modifiers";import { useState } from "react";+import { NativeThemeHost } from "./NativeThemeHost";import { useControlTheme } from "./useControlTheme";import type { NumberFieldProps } from "./NumberField";export function NumberField(props: NumberFieldProps) {- const { colorScheme, colors, fontSize } = useControlTheme();+ const { colors, fontSize } = useControlTheme();const values = Array.from({ length: props.max - props.min + 1 }, (_, index) => props.min + index);const [open, setOpen] = useState(false);const [draft, setDraft] = useState(props.value);return (- <Host matchContents colorScheme={colorScheme} seedColor={colors["--color-primary"]}>+ <NativeThemeHost matchContents><Popover isPresented={open} onIsPresentedChange={setOpen}><Popover.Trigger><Button@@ -86,6 +87,6 @@ export function NumberField(props: NumberFieldProps) {</VStack></Popover.Content></Popover>- </Host>+ </NativeThemeHost>);}diff --git a/apps/mobile/src/components/SliderRow.android.tsx b/apps/mobile/src/components/SliderRow.android.tsxindex 5ca89ae94a4..34008e566e9 100644--- a/apps/mobile/src/components/SliderRow.android.tsx+++ b/apps/mobile/src/components/SliderRow.android.tsx@@ -1,4 +1,4 @@-import { Host, Slider } from "@expo/ui/jetpack-compose";+import { Slider } from "@expo/ui/jetpack-compose";import { fillMaxWidth } from "@expo/ui/jetpack-compose/modifiers";import * as Haptics from "expo-haptics";import { useRef, type ComponentProps } from "react";@@ -6,11 +6,12 @@ import { View } from "react-native";import { AppText as Text } from "./AppText";import { SymbolView } from "./AppSymbol";+import { NativeThemeHost } from "./NativeThemeHost";import { useControlTheme } from "./useControlTheme";import type { SliderRow as SharedSliderRow } from "./SliderRow";export function SliderRow(props: ComponentProps<typeof SharedSliderRow>) {- const { colorScheme, systemColorsActive, colors } = useControlTheme();+ const { colors } = useControlTheme();const draft = useRef(props.value);const commit = (value: number) => {if (props.disabled) return;@@ -47,11 +48,7 @@ export function SliderRow(props: ComponentProps<typeof SharedSliderRow>) {}}><View importantForAccessibility="no-hide-descendants">- <Host- colorScheme={colorScheme}- seedColor={systemColorsActive ? undefined : colors["--color-primary"]}- style={{ height: 48, width: "100%" }}- >+ <NativeThemeHost style={{ height: 48, width: "100%" }}><Slidermin={props.min}max={props.max}@@ -69,7 +66,7 @@ export function SliderRow(props: ComponentProps<typeof SharedSliderRow>) {}}onValueChangeFinished={() => commit(draft.current)}/>- </Host>+ </NativeThemeHost></View></View></View>diff --git a/apps/mobile/src/lib/nativeTheme.test.ts b/apps/mobile/src/lib/nativeTheme.test.tsnew file mode 100644index 00000000000..d0381f6669a--- /dev/null+++ b/apps/mobile/src/lib/nativeTheme.test.ts@@ -0,0 +1,45 @@+import { describe, expect, it } from "vite-plus/test";+import { getMobileThemeVariables, MOBILE_THEME_OPTIONS } from "./mobileTheme";+import { createNativeThemeColors } from "./nativeTheme";++function luminance(hex: string) {+ const channels = [1, 3, 5].map((offset) => {+ const value = Number.parseInt(hex.slice(offset, offset + 2), 16) / 255;+ return value <= 0.04045 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;+ });+ return channels[0]! * 0.2126 + channels[1]! * 0.7152 + channels[2]! * 0.0722;+}++function contrast(a: string, b: string) {+ const values = [luminance(a), luminance(b)].sort((x, y) => y - x);+ return (values[0]! + 0.05) / (values[1]! + 0.05);+}++const cases = MOBILE_THEME_OPTIONS.flatMap((theme) => {+ if (theme.id === "material-you") return [];+ const themeId = theme.id;+ return (["light", "dark"] as const).map((appearance) => ({+ label: theme.label,+ themeId,+ appearance,+ }));+});++describe("native theme colors", () => {+ it.each(cases)(+ "$label $appearance keeps native labels legible on every container",+ ({ themeId, appearance }) => {+ const colors = createNativeThemeColors(getMobileThemeVariables(themeId, appearance));+ for (const surface of [+ colors.surface,+ colors.surfaceContainer,+ colors.surfaceContainerHigh,+ colors.surfaceContainerHighest,+ ]) {+ expect(contrast(colors.onSurface, surface)).toBeGreaterThanOrEqual(4.5);+ }+ expect(contrast(colors.onPrimary, colors.primary)).toBeGreaterThanOrEqual(4.5);+ for (const color of Object.values(colors)) expect(color).toMatch(/^#[0-9a-f]{6}$/i);+ },+ );+});diff --git a/apps/mobile/src/lib/nativeTheme.ts b/apps/mobile/src/lib/nativeTheme.tsnew file mode 100644index 00000000000..9ba3123209f--- /dev/null+++ b/apps/mobile/src/lib/nativeTheme.ts@@ -0,0 +1,63 @@+import type { MaterialColors } from "@expo/ui/jetpack-compose";+import { flattenThemeColor, type MobileThemeVariables } from "./mobileTheme";++/** Native controls use the same resolved palette as RN, without generating new hues. */+export function createNativeThemeColors(colors: MobileThemeVariables): MaterialColors {+ const roles = {+ primary: colors["--color-primary"],+ onPrimary: colors["--color-primary-foreground"],+ primaryContainer: colors["--color-thread-selected"],+ onPrimaryContainer: colors["--color-thread-selected-foreground"],+ inversePrimary: colors["--color-primary-foreground"],+ secondary: colors["--color-secondary"],+ onSecondary: colors["--color-secondary-foreground"],+ secondaryContainer: colors["--color-subtle-strong"],+ onSecondaryContainer: colors["--color-secondary-foreground"],+ tertiary: colors["--color-primary"],+ onTertiary: colors["--color-primary-foreground"],+ tertiaryContainer: colors["--color-thread-selected"],+ onTertiaryContainer: colors["--color-thread-selected-foreground"],+ background: colors["--color-screen"],+ onBackground: colors["--color-foreground"],+ surface: colors["--color-screen"],+ onSurface: colors["--color-foreground"],+ surfaceVariant: colors["--color-card-alt"],+ onSurfaceVariant: colors["--color-foreground-muted"],+ surfaceTint: colors["--color-primary"],+ inverseSurface: colors["--color-foreground"],+ inverseOnSurface: colors["--color-screen"],+ error: colors["--color-danger-foreground"],+ onError: colors["--color-danger"],+ errorContainer: colors["--color-danger"],+ onErrorContainer: colors["--color-danger-foreground"],+ outline: colors["--color-input-border"],+ outlineVariant: colors["--color-separator"],+ scrim: "#000000",+ surfaceBright: colors["--color-card-alt"],+ surfaceDim: colors["--color-input"],+ surfaceContainer: colors["--color-grouped-card"],+ surfaceContainerHigh: colors["--color-card-alt"],+ surfaceContainerHighest: colors["--color-subtle-strong"],+ surfaceContainerLow: colors["--color-sheet-solid"],+ surfaceContainerLowest: colors["--color-input"],+ primaryFixed: colors["--color-primary"],+ primaryFixedDim: colors["--color-primary"],+ onPrimaryFixed: colors["--color-primary-foreground"],+ onPrimaryFixedVariant: colors["--color-primary-foreground"],+ secondaryFixed: colors["--color-secondary"],+ secondaryFixedDim: colors["--color-secondary"],+ onSecondaryFixed: colors["--color-secondary-foreground"],+ onSecondaryFixedVariant: colors["--color-secondary-foreground"],+ tertiaryFixed: colors["--color-primary"],+ tertiaryFixedDim: colors["--color-primary"],+ onTertiaryFixed: colors["--color-primary-foreground"],+ onTertiaryFixedVariant: colors["--color-primary-foreground"],+ } satisfies Record<keyof MaterialColors, string>;+ // Material scheme roles are opaque. Composite translucent RN fills onto the canvas.+ return Object.fromEntries(+ Object.entries(roles).map(([role, color]) => [+ role,+ flattenThemeColor(color, colors["--color-screen"]),+ ]),+ ) as MaterialColors;+}diff --git a/patches/@[email protected] b/patches/@[email protected]new file mode 100644index 00000000000..7d05496e32c--- /dev/null+++ b/patches/@[email protected]@@ -0,0 +1,180 @@+diff --git a/android/src/main/java/expo/modules/ui/HostView.kt b/android/src/main/java/expo/modules/ui/HostView.kt+index eac1903ae62f66081211101a0de408215fea6b44..1a3feb98cfb2e6bb38832ae96a22217b990ee888 100644+--- a/android/src/main/java/expo/modules/ui/HostView.kt++++ b/android/src/main/java/expo/modules/ui/HostView.kt+@@ -68,6 +68,7 @@ internal enum class ExpoLayoutDirection(val value: String) : Enumerable {+ internal data class HostProps(+ val colorScheme: MutableState<ExpoColorScheme?> = mutableStateOf(null),+ val seedColor: MutableState<android.graphics.Color?> = mutableStateOf(null),++ val colorOverrides: MutableState<Map<String, android.graphics.Color>?> = mutableStateOf(null),+ val layoutDirection: MutableState<ExpoLayoutDirection> = mutableStateOf(ExpoLayoutDirection.LeftToRight),+ val useViewportSizeMeasurement: MutableState<Boolean> = mutableStateOf(false),+ val ignoreSafeAreaKeyboardInsets: MutableState<Boolean> = mutableStateOf(false),+@@ -132,9 +133,60 @@ internal class HostView(context: Context, appContext: AppContext) :+ val seededScheme = remember(seedArgb, isDark) {+ seedArgb?.let { seedColorScheme(it, isDark) }+ }+- val colorScheme = seededScheme++ val baseColorScheme = seededScheme+ ?: props.colorScheme.value?.toColorScheme(context)+ ?: ExpoColorScheme.defaultColorScheme(context, isSystemInDarkTheme())++ val overrides = props.colorOverrides.value.orEmpty()++ val colorScheme = baseColorScheme.copy(++ primary = overrides["primary"]?.composeOrNull ?: baseColorScheme.primary,++ onPrimary = overrides["onPrimary"]?.composeOrNull ?: baseColorScheme.onPrimary,++ primaryContainer = overrides["primaryContainer"]?.composeOrNull ?: baseColorScheme.primaryContainer,++ onPrimaryContainer = overrides["onPrimaryContainer"]?.composeOrNull ?: baseColorScheme.onPrimaryContainer,++ inversePrimary = overrides["inversePrimary"]?.composeOrNull ?: baseColorScheme.inversePrimary,++ secondary = overrides["secondary"]?.composeOrNull ?: baseColorScheme.secondary,++ onSecondary = overrides["onSecondary"]?.composeOrNull ?: baseColorScheme.onSecondary,++ secondaryContainer = overrides["secondaryContainer"]?.composeOrNull ?: baseColorScheme.secondaryContainer,++ onSecondaryContainer = overrides["onSecondaryContainer"]?.composeOrNull ?: baseColorScheme.onSecondaryContainer,++ tertiary = overrides["tertiary"]?.composeOrNull ?: baseColorScheme.tertiary,++ onTertiary = overrides["onTertiary"]?.composeOrNull ?: baseColorScheme.onTertiary,++ tertiaryContainer = overrides["tertiaryContainer"]?.composeOrNull ?: baseColorScheme.tertiaryContainer,++ onTertiaryContainer = overrides["onTertiaryContainer"]?.composeOrNull ?: baseColorScheme.onTertiaryContainer,++ background = overrides["background"]?.composeOrNull ?: baseColorScheme.background,++ onBackground = overrides["onBackground"]?.composeOrNull ?: baseColorScheme.onBackground,++ surface = overrides["surface"]?.composeOrNull ?: baseColorScheme.surface,++ onSurface = overrides["onSurface"]?.composeOrNull ?: baseColorScheme.onSurface,++ surfaceVariant = overrides["surfaceVariant"]?.composeOrNull ?: baseColorScheme.surfaceVariant,++ onSurfaceVariant = overrides["onSurfaceVariant"]?.composeOrNull ?: baseColorScheme.onSurfaceVariant,++ surfaceTint = overrides["surfaceTint"]?.composeOrNull ?: baseColorScheme.surfaceTint,++ inverseSurface = overrides["inverseSurface"]?.composeOrNull ?: baseColorScheme.inverseSurface,++ inverseOnSurface = overrides["inverseOnSurface"]?.composeOrNull ?: baseColorScheme.inverseOnSurface,++ error = overrides["error"]?.composeOrNull ?: baseColorScheme.error,++ onError = overrides["onError"]?.composeOrNull ?: baseColorScheme.onError,++ errorContainer = overrides["errorContainer"]?.composeOrNull ?: baseColorScheme.errorContainer,++ onErrorContainer = overrides["onErrorContainer"]?.composeOrNull ?: baseColorScheme.onErrorContainer,++ outline = overrides["outline"]?.composeOrNull ?: baseColorScheme.outline,++ outlineVariant = overrides["outlineVariant"]?.composeOrNull ?: baseColorScheme.outlineVariant,++ scrim = overrides["scrim"]?.composeOrNull ?: baseColorScheme.scrim,++ surfaceBright = overrides["surfaceBright"]?.composeOrNull ?: baseColorScheme.surfaceBright,++ surfaceDim = overrides["surfaceDim"]?.composeOrNull ?: baseColorScheme.surfaceDim,++ surfaceContainer = overrides["surfaceContainer"]?.composeOrNull ?: baseColorScheme.surfaceContainer,++ surfaceContainerHigh = overrides["surfaceContainerHigh"]?.composeOrNull ?: baseColorScheme.surfaceContainerHigh,++ surfaceContainerHighest = overrides["surfaceContainerHighest"]?.composeOrNull ?: baseColorScheme.surfaceContainerHighest,++ surfaceContainerLow = overrides["surfaceContainerLow"]?.composeOrNull ?: baseColorScheme.surfaceContainerLow,++ surfaceContainerLowest = overrides["surfaceContainerLowest"]?.composeOrNull ?: baseColorScheme.surfaceContainerLowest,++ primaryFixed = overrides["primaryFixed"]?.composeOrNull ?: baseColorScheme.primaryFixed,++ primaryFixedDim = overrides["primaryFixedDim"]?.composeOrNull ?: baseColorScheme.primaryFixedDim,++ onPrimaryFixed = overrides["onPrimaryFixed"]?.composeOrNull ?: baseColorScheme.onPrimaryFixed,++ onPrimaryFixedVariant = overrides["onPrimaryFixedVariant"]?.composeOrNull ?: baseColorScheme.onPrimaryFixedVariant,++ secondaryFixed = overrides["secondaryFixed"]?.composeOrNull ?: baseColorScheme.secondaryFixed,++ secondaryFixedDim = overrides["secondaryFixedDim"]?.composeOrNull ?: baseColorScheme.secondaryFixedDim,++ onSecondaryFixed = overrides["onSecondaryFixed"]?.composeOrNull ?: baseColorScheme.onSecondaryFixed,++ onSecondaryFixedVariant = overrides["onSecondaryFixedVariant"]?.composeOrNull ?: baseColorScheme.onSecondaryFixedVariant,++ tertiaryFixed = overrides["tertiaryFixed"]?.composeOrNull ?: baseColorScheme.tertiaryFixed,++ tertiaryFixedDim = overrides["tertiaryFixedDim"]?.composeOrNull ?: baseColorScheme.tertiaryFixedDim,++ onTertiaryFixed = overrides["onTertiaryFixed"]?.composeOrNull ?: baseColorScheme.onTertiaryFixed,++ onTertiaryFixedVariant = overrides["onTertiaryFixedVariant"]?.composeOrNull ?: baseColorScheme.onTertiaryFixedVariant++ )+ val layoutDirection = props.layoutDirection.value.toLayoutDirection()++ // Material3's `MaterialTheme` does not provide `LocalContentColor` — only `Surface` does — so+diff --git a/build/jetpack-compose/Host/index.d.ts b/build/jetpack-compose/Host/index.d.ts+index b586b653a991ce8840b9994a6fe1e6af75480ece..e32f6e093fde22e9cfc9d7ff612cddb59e036945 100644+--- a/build/jetpack-compose/Host/index.d.ts++++ b/build/jetpack-compose/Host/index.d.ts+@@ -1,6 +1,7 @@+ import { type Ref } from 'react';+ import { type ColorSchemeName, type ColorValue, type StyleProp, type ViewStyle } from 'react-native';+ import { type PrimitiveBaseProps } from '../layout';++import type { MaterialColors } from '../colors';+ export interface HostProps extends PrimitiveBaseProps {+ /**+ * When true, the host view will update its size in the React Native view tree to match the content's layout from Jetpack Compose.+@@ -41,6 +42,7 @@ export interface HostProps extends PrimitiveBaseProps {+ * available to descendants via `useMaterialColors()`.+ */+ seedColor?: ColorValue;++ colorOverrides?: Partial<MaterialColors>;+ /**+ * The layout direction for the content.+ * Defaults to the current locale direction from I18nManager.+diff --git a/build/jetpack-compose/Host/index.js b/build/jetpack-compose/Host/index.js+index 3e785c1667bcba137c3369da15aa7b397aa0fb37..80dba6ac4dd6ac8caf53fb7839ff3ed38c27b7f3 100644+--- a/build/jetpack-compose/Host/index.js++++ b/build/jetpack-compose/Host/index.js+@@ -7,17 +7,14 @@ import { useMergeRefs } from '../../utils/useMergeRefs';+ import { getMaterialColors, HostPaletteContext } from '../colors';+ const HostNativeView = requireNativeView('ExpoUI', 'HostView');+ export function Host(props) {+- const { matchContents, modifiers, onLayoutContent, layoutDirection, colorScheme, seedColor, ref, ...restProps } = props;++ const { matchContents, modifiers, onLayoutContent, layoutDirection, colorScheme, seedColor, colorOverrides, ref, ...restProps } = props;+ const schemeString = colorScheme === 'light' || colorScheme === 'dark' ? colorScheme : undefined;+ const systemScheme = useRNColorScheme();+ const resolvedScheme = schemeString ?? (systemScheme === 'dark' ? 'dark' : 'light');+- const palette = useMemo(()=>getMaterialColors({+- scheme: resolvedScheme,+- seedColor+- }), [+- resolvedScheme,+- seedColor+- ]);++ const palette = useMemo(() => ({++ ...getMaterialColors({ scheme: resolvedScheme, seedColor }),++ ...colorOverrides++ }), [resolvedScheme, seedColor, colorOverrides]);+ const hostRef = useTextInputHostRef();+ const mergedRef = useMergeRefs(ref, hostRef);+ return /*#__PURE__*/ _jsx(HostPaletteContext.Provider, {+@@ -30,7 +27,7 @@ export function Host(props) {+ matchContentsVertical: typeof matchContents === 'object' ? matchContents.vertical : matchContents,+ matchContentsHorizontal: typeof matchContents === 'object' ? matchContents.horizontal : matchContents,+ colorScheme: schemeString,+- seedColor: seedColor,++ seedColor: seedColor, colorOverrides: colorOverrides,+ onLayoutContent: onLayoutContent,+ layoutDirection: layoutDirection ?? (I18nManager.getConstants().isRTL ? 'rightToLeft' : 'leftToRight'),+ ref: mergedRef+diff --git a/src/jetpack-compose/Host/index.tsx b/src/jetpack-compose/Host/index.tsx+index c38eb76691942ee8515776cb443cd3b003052db3..ca3b901fc7c31768cce9d7923070332ac0d79760 100644+--- a/src/jetpack-compose/Host/index.tsx++++ b/src/jetpack-compose/Host/index.tsx+@@ -11,7 +11,7 @@ import {++ import { TextInputHostProvider, useTextInputHostRef } from '../../keyboard';+ import { useMergeRefs } from '../../utils/useMergeRefs';+-import { getMaterialColors, HostPaletteContext } from '../colors';++import { getMaterialColors, HostPaletteContext, type MaterialColors } from '../colors';+ import { type PrimitiveBaseProps } from '../layout';++ export interface HostProps extends PrimitiveBaseProps {+@@ -51,6 +51,9 @@ export interface HostProps extends PrimitiveBaseProps {+ */+ seedColor?: ColorValue;+++ /** Explicit Material roles, applied after the seed or system palette. */++ colorOverrides?: Partial<MaterialColors>;+++ /**+ * The layout direction for the content.+ * Defaults to the current locale direction from I18nManager.+@@ -92,6 +95,7 @@ export function Host(props: HostProps) {+ layoutDirection,+ colorScheme,+ seedColor,++ colorOverrides,+ ref,+ ...restProps+ } = props;+@@ -100,8 +104,8 @@ export function Host(props: HostProps) {+ const systemScheme = useRNColorScheme();+ const resolvedScheme = schemeString ?? (systemScheme === 'dark' ? 'dark' : 'light');+ const palette = useMemo(+- () => getMaterialColors({ scheme: resolvedScheme, seedColor }),+- [resolvedScheme, seedColor]++ () => ({ ...getMaterialColors({ scheme: resolvedScheme, seedColor }), ...colorOverrides }),++ [resolvedScheme, seedColor, colorOverrides]+ );+ const hostRef = useTextInputHostRef();+ const mergedRef = useMergeRefs(ref, hostRef);+@@ -120,6 +124,7 @@ export function Host(props: HostProps) {+ }+ colorScheme={schemeString}+ seedColor={seedColor}++ colorOverrides={colorOverrides}+ onLayoutContent={onLayoutContent}+ layoutDirection={+ layoutDirection ?? (I18nManager.getConstants().isRTL ? 'rightToLeft' : 'leftToRight')diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1db31cbebab..7928a04d9d0 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -152,6 +152,7 @@ patchedDependencies:'@clerk/[email protected]': b8b22ab733de5bea846ad9e88046c10582352fe9ad86f314f368b2a823f0f281'@effect/[email protected]': 2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02'@expo/[email protected]': 90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760+ '@expo/[email protected]': d1efeb3611dec747fce7a526860697187e82ba87b5b75993d115f73e2ef0e1f7'@ff-labs/[email protected]': cc71fcec015f4d39bc96ae2e2bf6b0ca678124c722c66a7841efce9d34b5983c'@legendapp/[email protected]': 680cc6a5c5b4a4032e467e7b3fde22f89a84c0ee2e6eac6fda737d6277cc0806'@pierre/[email protected]': 298e94372dbd51846a4e26ece2ecc3e22eb1f94b0450b1f1a9c6fec127809be7@@ -321,8 +322,8 @@ importers:specifier: ~58.0.10version: 58.0.10(@expo/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])'@expo/ui':- specifier: ~58.0.11- version: 58.0.11(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ specifier: 58.0.11+ version: 58.0.11(patch_hash=d1efeb3611dec747fce7a526860697187e82ba87b5b75993d115f73e2ef0e1f7)(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])'@legendapp/list':specifier: 'catalog:'version: 3.3.5(patch_hash=680cc6a5c5b4a4032e467e7b3fde22f89a84c0ee2e6eac6fda737d6277cc0806)([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])@@ -14762,7 +14763,7 @@ snapshots:'@expo/[email protected]': {}- '@expo/[email protected](@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@expo/[email protected](patch_hash=d1efeb3611dec747fce7a526860697187e82ba87b5b75993d115f73e2ef0e1f7)(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:expo: 58.0.2(bd4444e61fed72e958d45f73733b7f54)react: 19.3.0@@ -19461,7 +19462,7 @@ snapshots:[email protected](patch_hash=d00838b5b215a4c45f89b8b7d34878d158528756fbcf281bae1cbd6f0752deed)(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]):dependencies:'@expo/plist': 0.10.1- '@expo/ui': 58.0.11(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ '@expo/ui': 58.0.11(patch_hash=d1efeb3611dec747fce7a526860697187e82ba87b5b75993d115f73e2ef0e1f7)(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])expo: 58.0.2(bd4444e61fed72e958d45f73733b7f54)react: 19.3.0react-native: 0.88.0-rc.3(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex db8835316be..03a9cd9c6ee 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -310,6 +310,7 @@ patchedDependencies:[email protected]: patches/[email protected]# Android: a nested WebView hands a vertical drag to its scrolling parent at the page's edge.[email protected]: patches/[email protected]+ "@expo/[email protected]": patches/@[email protected]peerDependencyRules:allowAny: