@expo/ui 0.2.0-alpha.8 → 0.2.0-beta.0

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.
Files changed (172) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/android/build.gradle +2 -2
  3. package/build/swift-ui/GlassEffectContainer/index.d.ts +15 -0
  4. package/build/swift-ui/GlassEffectContainer/index.d.ts.map +1 -0
  5. package/build/swift-ui/Layout/index.d.ts +4 -0
  6. package/build/swift-ui/Layout/index.d.ts.map +1 -1
  7. package/build/swift-ui/Namespace.d.ts +34 -0
  8. package/build/swift-ui/Namespace.d.ts.map +1 -0
  9. package/build/swift-ui/index.d.ts +2 -0
  10. package/build/swift-ui/index.d.ts.map +1 -1
  11. package/build/swift-ui/modifiers/index.d.ts +126 -1
  12. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  13. package/expo-module.config.json +1 -1
  14. package/ios/ExpoUIModule.swift +9 -0
  15. package/ios/GlassEffectContainerView.swift +32 -0
  16. package/ios/Modifiers/ViewModifierRegistry.swift +200 -37
  17. package/ios/NamespaceRegistry.swift +26 -0
  18. package/ios/NamespaceView.swift +28 -0
  19. package/ios/ZStackView.swift +29 -0
  20. package/jetpack-compose-primitives.js +1 -1
  21. package/jetpack-compose.js +1 -1
  22. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.aar +0 -0
  23. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.aar.md5 +1 -0
  24. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.aar.sha1 +1 -0
  25. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.aar.sha256 +1 -0
  26. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.aar.sha512 +1 -0
  27. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.module → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.module} +17 -17
  28. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.module.md5 +1 -0
  29. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.module.sha1 +1 -0
  30. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.module.sha256 +1 -0
  31. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.module.sha512 +1 -0
  32. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.pom → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.pom} +1 -1
  33. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.pom.md5 +1 -0
  34. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.pom.sha1 +1 -0
  35. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.pom.sha256 +1 -0
  36. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0.pom.sha512 +1 -0
  37. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  38. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  39. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  40. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  41. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  42. package/package.json +26 -4
  43. package/src/swift-ui/GlassEffectContainer/index.tsx +27 -0
  44. package/src/swift-ui/Layout/index.tsx +30 -0
  45. package/src/swift-ui/Namespace.tsx +46 -0
  46. package/src/swift-ui/index.tsx +2 -0
  47. package/src/swift-ui/modifiers/index.ts +133 -0
  48. package/swift-ui/index.js +1 -1
  49. package/swift-ui/modifiers.js +1 -1
  50. package/tsconfig.json +1 -1
  51. package/build/jetpack-compose/AlertDialog/index.js +0 -11
  52. package/build/jetpack-compose/AlertDialog/index.js.map +0 -1
  53. package/build/jetpack-compose/Button/index.js +0 -33
  54. package/build/jetpack-compose/Button/index.js.map +0 -1
  55. package/build/jetpack-compose/Button/types.js +0 -2
  56. package/build/jetpack-compose/Button/types.js.map +0 -1
  57. package/build/jetpack-compose/ContextMenu/index.js +0 -38
  58. package/build/jetpack-compose/ContextMenu/index.js.map +0 -1
  59. package/build/jetpack-compose/ContextMenu/utils.js +0 -79
  60. package/build/jetpack-compose/ContextMenu/utils.js.map +0 -1
  61. package/build/jetpack-compose/DatePicker/index.js +0 -33
  62. package/build/jetpack-compose/DatePicker/index.js.map +0 -1
  63. package/build/jetpack-compose/Picker/index.js +0 -30
  64. package/build/jetpack-compose/Picker/index.js.map +0 -1
  65. package/build/jetpack-compose/Progress/index.js +0 -17
  66. package/build/jetpack-compose/Progress/index.js.map +0 -1
  67. package/build/jetpack-compose/Shape/index.js +0 -31
  68. package/build/jetpack-compose/Shape/index.js.map +0 -1
  69. package/build/jetpack-compose/Slider/index.js +0 -33
  70. package/build/jetpack-compose/Slider/index.js.map +0 -1
  71. package/build/jetpack-compose/Switch/index.js +0 -40
  72. package/build/jetpack-compose/Switch/index.js.map +0 -1
  73. package/build/jetpack-compose/TextInput/index.js +0 -23
  74. package/build/jetpack-compose/TextInput/index.js.map +0 -1
  75. package/build/jetpack-compose/index.js +0 -12
  76. package/build/jetpack-compose/index.js.map +0 -1
  77. package/build/jetpack-compose/modifiers.js +0 -15
  78. package/build/jetpack-compose/modifiers.js.map +0 -1
  79. package/build/jetpack-compose-primitives/index.js +0 -39
  80. package/build/jetpack-compose-primitives/index.js.map +0 -1
  81. package/build/swift-ui/BottomSheet/index.js +0 -18
  82. package/build/swift-ui/BottomSheet/index.js.map +0 -1
  83. package/build/swift-ui/Button/index.js +0 -38
  84. package/build/swift-ui/Button/index.js.map +0 -1
  85. package/build/swift-ui/Chart/index.js +0 -11
  86. package/build/swift-ui/Chart/index.js.map +0 -1
  87. package/build/swift-ui/ColorPicker/index.js +0 -16
  88. package/build/swift-ui/ColorPicker/index.js.map +0 -1
  89. package/build/swift-ui/ContentUnavailableView/index.js +0 -19
  90. package/build/swift-ui/ContentUnavailableView/index.js.map +0 -1
  91. package/build/swift-ui/ContextMenu/Submenu.js +0 -8
  92. package/build/swift-ui/ContextMenu/Submenu.js.map +0 -1
  93. package/build/swift-ui/ContextMenu/index.js +0 -57
  94. package/build/swift-ui/ContextMenu/index.js.map +0 -1
  95. package/build/swift-ui/ContextMenu/types.js +0 -2
  96. package/build/swift-ui/ContextMenu/types.js.map +0 -1
  97. package/build/swift-ui/ContextMenu/utils.js +0 -85
  98. package/build/swift-ui/ContextMenu/utils.js.map +0 -1
  99. package/build/swift-ui/DatePicker/index.js +0 -22
  100. package/build/swift-ui/DatePicker/index.js.map +0 -1
  101. package/build/swift-ui/DisclosureGroup/index.js +0 -16
  102. package/build/swift-ui/DisclosureGroup/index.js.map +0 -1
  103. package/build/swift-ui/Form/index.js +0 -15
  104. package/build/swift-ui/Form/index.js.map +0 -1
  105. package/build/swift-ui/Gauge/index.js +0 -11
  106. package/build/swift-ui/Gauge/index.js.map +0 -1
  107. package/build/swift-ui/Host/index.js +0 -27
  108. package/build/swift-ui/Host/index.js.map +0 -1
  109. package/build/swift-ui/Image/index.js +0 -16
  110. package/build/swift-ui/Image/index.js.map +0 -1
  111. package/build/swift-ui/Label/index.js +0 -15
  112. package/build/swift-ui/Label/index.js.map +0 -1
  113. package/build/swift-ui/Layout/index.js +0 -34
  114. package/build/swift-ui/Layout/index.js.map +0 -1
  115. package/build/swift-ui/List/index.js +0 -25
  116. package/build/swift-ui/List/index.js.map +0 -1
  117. package/build/swift-ui/Picker/index.js +0 -20
  118. package/build/swift-ui/Picker/index.js.map +0 -1
  119. package/build/swift-ui/Progress/index.js +0 -18
  120. package/build/swift-ui/Progress/index.js.map +0 -1
  121. package/build/swift-ui/Section/index.js +0 -13
  122. package/build/swift-ui/Section/index.js.map +0 -1
  123. package/build/swift-ui/SecureField/index.js +0 -22
  124. package/build/swift-ui/SecureField/index.js.map +0 -1
  125. package/build/swift-ui/ShareLink/index.js +0 -15
  126. package/build/swift-ui/ShareLink/index.js.map +0 -1
  127. package/build/swift-ui/Slider/index.js +0 -23
  128. package/build/swift-ui/Slider/index.js.map +0 -1
  129. package/build/swift-ui/Spacer/index.js +0 -15
  130. package/build/swift-ui/Spacer/index.js.map +0 -1
  131. package/build/swift-ui/Switch/index.js +0 -23
  132. package/build/swift-ui/Switch/index.js.map +0 -1
  133. package/build/swift-ui/Text/index.js +0 -16
  134. package/build/swift-ui/Text/index.js.map +0 -1
  135. package/build/swift-ui/TextField/index.js +0 -22
  136. package/build/swift-ui/TextField/index.js.map +0 -1
  137. package/build/swift-ui/index.js +0 -26
  138. package/build/swift-ui/index.js.map +0 -1
  139. package/build/swift-ui/modifiers/animation/constants.js +0 -2
  140. package/build/swift-ui/modifiers/animation/constants.js.map +0 -1
  141. package/build/swift-ui/modifiers/animation/index.js +0 -58
  142. package/build/swift-ui/modifiers/animation/index.js.map +0 -1
  143. package/build/swift-ui/modifiers/animation/types.js +0 -2
  144. package/build/swift-ui/modifiers/animation/types.js.map +0 -1
  145. package/build/swift-ui/modifiers/createModifier.js +0 -8
  146. package/build/swift-ui/modifiers/createModifier.js.map +0 -1
  147. package/build/swift-ui/modifiers/index.js +0 -223
  148. package/build/swift-ui/modifiers/index.js.map +0 -1
  149. package/build/swift-ui/modifiers/utils.js +0 -23
  150. package/build/swift-ui/modifiers/utils.js.map +0 -1
  151. package/build/swift-ui/types.js +0 -2
  152. package/build/swift-ui/types.js.map +0 -1
  153. package/build/types.js +0 -2
  154. package/build/types.js.map +0 -1
  155. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.aar +0 -0
  156. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.aar.md5 +0 -1
  157. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.aar.sha1 +0 -1
  158. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.aar.sha256 +0 -1
  159. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.aar.sha512 +0 -1
  160. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.module.md5 +0 -1
  161. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.module.sha1 +0 -1
  162. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.module.sha256 +0 -1
  163. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.module.sha512 +0 -1
  164. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.pom.md5 +0 -1
  165. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.pom.sha1 +0 -1
  166. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.pom.sha256 +0 -1
  167. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8.pom.sha512 +0 -1
  168. /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8-sources.jar → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0-sources.jar} +0 -0
  169. /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8-sources.jar.md5 → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0-sources.jar.md5} +0 -0
  170. /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8-sources.jar.sha1 → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0-sources.jar.sha1} +0 -0
  171. /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8-sources.jar.sha256 → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0-sources.jar.sha256} +0 -0
  172. /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.8/expo.modules.ui-0.2.0-alpha.8-sources.jar.sha512 → 0.2.0-beta.0/expo.modules.ui-0.2.0-beta.0-sources.jar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,11 +10,27 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.2.0-beta.0 — 2025-09-10
14
+
15
+ ### 🎉 New features
16
+
17
+ - [iOS] Add `foregroundStyle` modifier, deprecated `foregroundColor` ([#39183](https://github.com/expo/expo/pull/39183) by [@hirbod](https://github.com/hirbod))
18
+ - [iOS] Add `matchedGeometryEffect` modifier and `ZStack` ([#39463](https://github.com/expo/expo/pull/39463) by [@nishan](https://github.com/intergalacticspacehighway))
19
+
20
+ ### 💡 Others
21
+
22
+ - Use typescript files as source and add `packages:exports`. ([#39377](https://github.com/expo/expo/pull/39377) by [@kudo](https://github.com/kudo))
23
+
24
+ ## 0.2.0-alpha.9 — 2025-09-03
25
+
26
+ _This version does not introduce any user-facing changes._
27
+
13
28
  ## 0.2.0-alpha.8 — 2025-09-02
14
29
 
15
30
  ### 💡 Others
16
31
 
17
32
  - Used convertibles to process modifiers' parameters. ([#39231](https://github.com/expo/expo/pull/39231) by [@kudo](https://github.com/kudo))
33
+ - Migrated `AnimationModifier` to convertibles. ([#39326](https://github.com/expo/expo/pull/39326) by [@kudo](https://github.com/kudo))
18
34
 
19
35
  ## 0.2.0-alpha.7 — 2025-08-31
20
36
 
@@ -29,6 +45,7 @@ _This version does not introduce any user-facing changes._
29
45
  ### 🎉 New features
30
46
 
31
47
  - [iOS] Add `animation` modifier. ([#38954](https://github.com/expo/expo/pull/38954) by [@nishan](https://github.com/intergalacticspacehighway))
48
+ - [iOS] Add `GlassEffectContainer`, `glassEffectId` and `Namespaces` support. ([#39070](https://github.com/expo/expo/pull/39070) by [@nishan](https://github.com/intergalacticspacehighway))
32
49
 
33
50
  ### 🐛 Bug fixes
34
51
 
@@ -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 = '0.2.0-alpha.8'
15
+ version = '0.2.0-beta.0'
16
16
 
17
17
  android {
18
18
  namespace "expo.modules.ui"
19
19
  defaultConfig {
20
20
  versionCode 1
21
- versionName "0.2.0-alpha.8"
21
+ versionName "0.2.0-beta.0"
22
22
  }
23
23
  buildFeatures {
24
24
  compose true
@@ -0,0 +1,15 @@
1
+ import { type CommonViewModifierProps } from '../types';
2
+ export type GlassEffectContainerProps = {
3
+ /**
4
+ * The children of the `GlassEffectContainer` component.
5
+ * These should be views with `.glassEffect()` modifiers applied.
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * The spacing between glass elements in the container.
10
+ * This controls how close elements need to be to start blending together.
11
+ */
12
+ spacing?: number;
13
+ } & CommonViewModifierProps;
14
+ export declare function GlassEffectContainer(props: GlassEffectContainerProps): import("react").JSX.Element;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/GlassEffectContainer/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,uBAAuB,CAAC;AAO5B,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BAGpE"}
@@ -29,5 +29,9 @@ export interface GroupProps extends CommonViewModifierProps {
29
29
  onPress?: () => void;
30
30
  }
31
31
  export declare function Group(props: GroupProps): import("react").JSX.Element;
32
+ export interface ZStackProps extends StackBaseProps {
33
+ alignment?: 'center' | 'leading' | 'trailing' | 'top' | 'bottom' | 'topLeading' | 'topTrailing' | 'bottomLeading' | 'bottomTrailing' | 'centerFirstTextBaseline' | 'centerLastTextBaseline' | 'leadingFirstTextBaseline' | 'leadingLastTextBaseline' | 'trailingFirstTextBaseline' | 'trailingLastTextBaseline';
34
+ }
35
+ export declare function ZStack(props: ZStackProps): import("react").JSX.Element;
32
36
  export {};
33
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Layout/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,KAAK,QAAQ,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,GAA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AuB;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AACD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC;AAa1E,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;CACpF;AAOD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC;AAID,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC/C;AAOD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC;AAID,MAAM,WAAW,UAAW,SAAQ,uBAAuB;IACzD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAkBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAEtC;AAID,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,SAAS,CAAC,EACN,QAAQ,GACR,SAAS,GACT,UAAU,GACV,KAAK,GACL,QAAQ,GACR,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,yBAAyB,GACzB,wBAAwB,GACxB,0BAA0B,GAC1B,yBAAyB,GACzB,2BAA2B,GAC3B,0BAA0B,CAAC;CAChC;AAOD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
@@ -0,0 +1,34 @@
1
+ export type NamespaceProps = {
2
+ /**
3
+ * The ID of the namespace. You can generate one with the `useId` react hook.
4
+ */
5
+ id: string;
6
+ children: React.ReactNode;
7
+ };
8
+ /**
9
+ * A component that provides a SwiftUI [`Namespace`](https://developer.apple.com/documentation/swiftui/namespace) to its children.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * const namespaceId = React.useId();
14
+ * return (
15
+ * <Namespace id={namespaceId}>
16
+ * <GlassEffectContainer>
17
+ * <Image
18
+ * systemName="paintbrush.fill"
19
+ * modifiers={[
20
+ * glassEffect({
21
+ * glass: {
22
+ * variant: 'clear',
23
+ * },
24
+ * }),
25
+ * glassEffectId('paintbrush', namespaceId),
26
+ * ]}
27
+ * />
28
+ * </GlassEffectContainer>
29
+ * </Namespace>
30
+ * );
31
+ * ```
32
+ */
33
+ export declare function Namespace(props: NamespaceProps): import("react").JSX.Element;
34
+ //# sourceMappingURL=Namespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Namespace.d.ts","sourceRoot":"","sources":["../../src/swift-ui/Namespace.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AASF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAE9C"}
@@ -23,4 +23,6 @@ export * from './Switch';
23
23
  export * from './Text';
24
24
  export * from './TextField';
25
25
  export * from './SecureField';
26
+ export * from './Namespace';
27
+ export * from './GlassEffectContainer';
26
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC"}
@@ -23,6 +23,10 @@ export declare const shadow: (params: {
23
23
  y?: number;
24
24
  color?: string;
25
25
  }) => ModifierConfig;
26
+ /**
27
+ * Adds a matched geometry effect to a view.
28
+ */
29
+ export declare const matchedGeometryEffect: (id: string, namespaceId: string) => ModifierConfig;
26
30
  /**
27
31
  * Sets the frame properties of a view.
28
32
  */
@@ -104,8 +108,125 @@ export declare const offset: (params: {
104
108
  /**
105
109
  * Sets the foreground color/tint of a view.
106
110
  * @param color - The foreground color (hex string)
111
+ * @deprecated Use foregroundStyle instead
107
112
  */
108
113
  export declare const foregroundColor: (color: string) => ModifierConfig;
114
+ /**
115
+ * Sets the foreground style of a view with comprehensive styling options.
116
+ *
117
+ * Replaces the deprecated `foregroundColor` modifier with enhanced capabilities including
118
+ * colors, gradients, and semantic hierarchical styles that adapt to system appearance.
119
+ *
120
+ * @param style - The foreground style configuration. Can be:
121
+ *
122
+ * **Simple Color (string):**
123
+ * - Hex colors: `'#FF0000'`, `'#RGB'`, `'#RRGGBB'`, `'#AARRGGBB'`
124
+ * - Named colors: `'red'`, `'blue'`, `'green'`, etc.
125
+ *
126
+ * **Explicit Color Object:**
127
+ * ```typescript
128
+ * { type: 'color', color: '#FF0000' }
129
+ * ```
130
+ *
131
+ * **Hierarchical Styles (Semantic):**
132
+ * Auto-adapting semantic styles that respond to light/dark mode and accessibility settings:
133
+ * ```typescript
134
+ * { type: 'hierarchical', style: 'primary' } // Most prominent (main content, headlines)
135
+ * { type: 'hierarchical', style: 'secondary' } // Supporting text, subheadlines
136
+ * { type: 'hierarchical', style: 'tertiary' } // Less important text, captions
137
+ * { type: 'hierarchical', style: 'quaternary' } // Subtle text, disabled states
138
+ * { type: 'hierarchical', style: 'quinary' } // Most subtle (iOS 16+, fallback to quaternary)
139
+ * ```
140
+ *
141
+ * **Linear Gradient:**
142
+ * ```typescript
143
+ * {
144
+ * type: 'linearGradient',
145
+ * colors: ['#FF0000', '#0000FF', '#00FF00'],
146
+ * startPoint: { x: 0, y: 0 }, // Top-left
147
+ * endPoint: { x: 1, y: 1 } // Bottom-right
148
+ * }
149
+ * ```
150
+ *
151
+ * **Radial Gradient:**
152
+ * ```typescript
153
+ * {
154
+ * type: 'radialGradient',
155
+ * colors: ['#FF0000', '#0000FF'],
156
+ * center: { x: 0.5, y: 0.5 }, // Center of view
157
+ * startRadius: 0, // Inner radius
158
+ * endRadius: 100 // Outer radius
159
+ * }
160
+ * ```
161
+ *
162
+ * **Angular Gradient (Conic):**
163
+ * ```typescript
164
+ * {
165
+ * type: 'angularGradient',
166
+ * colors: ['#FF0000', '#00FF00', '#0000FF'],
167
+ * center: { x: 0.5, y: 0.5 } // Rotation center
168
+ * }
169
+ * ```
170
+ *
171
+ * @example
172
+ * ```typescript
173
+ * // Simple usage
174
+ * <Text modifiers={[foregroundStyle('#FF0000')]}>Red Text</Text>
175
+ *
176
+ * // Adaptive hierarchical styling
177
+ * <Text modifiers={[foregroundStyle({ type: 'hierarchical', style: 'secondary' })]}>
178
+ * Supporting Text
179
+ * </Text>
180
+ *
181
+ * // Linear gradient
182
+ * <Text modifiers={[foregroundStyle({
183
+ * type: 'linearGradient',
184
+ * colors: ['#FF6B35', '#F7931E', '#FFD23F'],
185
+ * startPoint: { x: 0, y: 0 },
186
+ * endPoint: { x: 1, y: 0 }
187
+ * })]}>
188
+ * Gradient Text
189
+ * </Text>
190
+ * ```
191
+ *
192
+ * @returns A view modifier that applies the specified foreground style
193
+ * @since iOS 15.0+ (hierarchical quinary requires iOS 16.0+)
194
+ * @see https://developer.apple.com/documentation/swiftui/view/foregroundstyle(_:)
195
+ */
196
+ export declare const foregroundStyle: (style: string | {
197
+ type: "color";
198
+ color: string;
199
+ } | {
200
+ type: "hierarchical";
201
+ style: "primary" | "secondary" | "tertiary" | "quaternary" | "quinary";
202
+ } | {
203
+ type: "linearGradient";
204
+ colors: string[];
205
+ startPoint: {
206
+ x: number;
207
+ y: number;
208
+ };
209
+ endPoint: {
210
+ x: number;
211
+ y: number;
212
+ };
213
+ } | {
214
+ type: "radialGradient";
215
+ colors: string[];
216
+ center: {
217
+ x: number;
218
+ y: number;
219
+ };
220
+ startRadius: number;
221
+ endRadius: number;
222
+ } | {
223
+ type: "angularGradient";
224
+ colors: string[];
225
+ center: {
226
+ x: number;
227
+ y: number;
228
+ };
229
+ }) => ModifierConfig;
109
230
  /**
110
231
  * Sets the tint color of a view.
111
232
  * @param color - The tint color (hex string)
@@ -225,11 +346,15 @@ export declare const glassEffect: (params?: {
225
346
  };
226
347
  shape?: "circle" | "capsule" | "rectangle" | "ellipse";
227
348
  }) => ModifierConfig;
349
+ /**
350
+ * Associates an identity value to Liquid Glass effects defined within a `GlassEffectContainer`.
351
+ */
352
+ export declare const glassEffectId: (id: string, namespaceId: string) => ModifierConfig;
228
353
  /**
229
354
  * Union type of all built-in modifier return types.
230
355
  * This provides type safety for the modifiers array.
231
356
  */
232
- export type BuiltInModifier = ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof tint> | ReturnType<typeof hidden> | 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 accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof animation>;
357
+ export type BuiltInModifier = ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof tint> | ReturnType<typeof hidden> | 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 accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | 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 animation>;
233
358
  /**
234
359
  * Main ViewModifier type that supports both built-in and 3rd party modifiers.
235
360
  * 3rd party modifiers should return ModifierConfig objects with their own type strings.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiBlE;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,mBAA4C,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,mBAA+C,CAAC;AAE3F;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,QAAQ;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,M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GAC1B,UAAU,CAAC,OAAO,iBAAiB,CAAC,GACpC,UAAU,CAAC,OAAO,WAAW,CAAC,GAC9B,UAAU,CAAC,OAAO,OAAO,CAAC,GAC1B,UAAU,CAAC,OAAO,WAAW,CAAC,GAC9B,UAAU,CAAC,OAAO,aAAa,CAAC,GAChC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC;AAM5D;;;;;;;;;;GAUG;AACH,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,cAEhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,OAAO,EAAE,KAAG,cAAc,EAEpE,CAAC;AAEF,cAAc,mBAAmB,CAAC"}
@@ -9,7 +9,7 @@
9
9
  "publication": {
10
10
  "groupId": "expo.modules.ui",
11
11
  "artifactId": "expo.modules.ui",
12
- "version": "0.2.0-alpha.8",
12
+ "version": "0.2.0-beta.0",
13
13
  "repository": "local-maven-repo"
14
14
  }
15
15
  }
@@ -6,6 +6,12 @@ public final class ExpoUIModule: Module {
6
6
  public func definition() -> ModuleDefinition {
7
7
  Name("ExpoUI")
8
8
 
9
+ OnDestroy {
10
+ Task { @MainActor in
11
+ NamespaceRegistry.shared.removeAll()
12
+ }
13
+ }
14
+
9
15
  View(BottomSheetView.self)
10
16
  View(Button.self)
11
17
  View(ChartView.self)
@@ -43,5 +49,8 @@ public final class ExpoUIModule: Module {
43
49
  }
44
50
  }
45
51
  View(VStackView.self)
52
+ View(ZStackView.self)
53
+ View(NamespaceView.self)
54
+ View(GlassEffectContainerView.self)
46
55
  }
47
56
  }
@@ -0,0 +1,32 @@
1
+ // Copyright 2025-present 650 Industries. All rights reserved.
2
+
3
+ import SwiftUI
4
+ import ExpoModulesCore
5
+
6
+ internal final class GlassEffectContainerViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
7
+ @Field var fixedSize: Bool?
8
+ @Field var frame: FrameOptions?
9
+ @Field var padding: PaddingOptions?
10
+ @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
12
+ @Field var spacing: Double?
13
+ }
14
+
15
+ internal struct GlassEffectContainerView: ExpoSwiftUI.View {
16
+ @ObservedObject var props: GlassEffectContainerViewProps
17
+
18
+ var body: some View {
19
+ if #available(iOS 26.0, macOS 26.0, tvOS 26.0, *) {
20
+ #if compiler(>=6.2) // Xcode 26
21
+ GlassEffectContainer(spacing: CGFloat(props.spacing ?? 0.0)) {
22
+ Children()
23
+ }
24
+ .modifier(CommonViewModifiers(props: props))
25
+ #else
26
+ Children()
27
+ #endif
28
+ } else {
29
+ Children()
30
+ }
31
+ }
32
+ }