@expo/ui 58.0.21 → 58.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +86 -2
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/java/expo/modules/ui/ComposeViews.kt +53 -29
  5. package/android/src/main/java/expo/modules/ui/CompositionLocalProviderView.kt +26 -0
  6. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +12 -0
  7. package/android/src/main/java/expo/modules/ui/HostView.kt +56 -9
  8. package/android/src/main/java/expo/modules/ui/MaskView.kt +3 -2
  9. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +43 -13
  10. package/android/src/main/java/expo/modules/ui/RNHostView.kt +11 -7
  11. package/android/src/main/java/expo/modules/ui/SwitchView.kt +6 -1
  12. package/android/src/main/java/expo/modules/ui/TopAppBarView.kt +62 -0
  13. package/android/src/main/java/expo/modules/ui/UniversalLayout.kt +610 -0
  14. package/android/src/main/java/expo/modules/ui/colors/MaterialColors.kt +61 -0
  15. package/android/src/main/java/expo/modules/ui/state/ObservableState.kt +2 -0
  16. package/android/src/main/java/expo/modules/ui/state/WorkletCallback.kt +2 -0
  17. package/build/community/bottom-sheet/BottomSheet.ios.js +8 -3
  18. package/build/community/bottom-sheet/BottomSheet.ios.js.map +1 -1
  19. package/build/community/pager-view/PagerView.ios.js +25 -8
  20. package/build/community/pager-view/PagerView.ios.js.map +1 -1
  21. package/build/community/segmented-control/SegmentedControl.ios.js +11 -2
  22. package/build/community/segmented-control/SegmentedControl.ios.js.map +1 -1
  23. package/build/community/segmented-control/types.d.ts +5 -1
  24. package/build/community/segmented-control/types.js.map +1 -1
  25. package/build/jetpack-compose/Column/index.d.ts +5 -0
  26. package/build/jetpack-compose/Column/index.js.map +1 -1
  27. package/build/jetpack-compose/CompositionLocalProvider/index.d.ts +28 -0
  28. package/build/jetpack-compose/CompositionLocalProvider/index.js +15 -0
  29. package/build/jetpack-compose/CompositionLocalProvider/index.js.map +1 -0
  30. package/build/jetpack-compose/Host/index.d.ts +8 -0
  31. package/build/jetpack-compose/Host/index.js +38 -5
  32. package/build/jetpack-compose/Host/index.js.map +1 -1
  33. package/build/jetpack-compose/Row/index.d.ts +5 -0
  34. package/build/jetpack-compose/Row/index.js.map +1 -1
  35. package/build/jetpack-compose/Switch/index.d.ts +2 -0
  36. package/build/jetpack-compose/Switch/index.js +1 -0
  37. package/build/jetpack-compose/Switch/index.js.map +1 -1
  38. package/build/jetpack-compose/TopAppBar/index.d.ts +72 -0
  39. package/build/jetpack-compose/TopAppBar/index.js +45 -0
  40. package/build/jetpack-compose/TopAppBar/index.js.map +1 -0
  41. package/build/jetpack-compose/index.d.ts +2 -0
  42. package/build/jetpack-compose/index.js +2 -0
  43. package/build/jetpack-compose/index.js.map +1 -1
  44. package/build/jetpack-compose/modifiers/index.d.ts +5 -1
  45. package/build/jetpack-compose/modifiers/index.js +6 -2
  46. package/build/jetpack-compose/modifiers/index.js.map +1 -1
  47. package/build/recycling/useRecycledRows.d.ts +2 -0
  48. package/build/recycling/useRecycledRows.js +1 -0
  49. package/build/recycling/useRecycledRows.js.map +1 -1
  50. package/build/swift-ui/BottomSheet/index.d.ts +6 -0
  51. package/build/swift-ui/BottomSheet/index.js +9 -3
  52. package/build/swift-ui/BottomSheet/index.js.map +1 -1
  53. package/build/swift-ui/HStack/index.d.ts +6 -0
  54. package/build/swift-ui/HStack/index.js.map +1 -1
  55. package/build/swift-ui/VStack/index.d.ts +6 -0
  56. package/build/swift-ui/VStack/index.js.map +1 -1
  57. package/build/universal/Button/index.android.js +3 -1
  58. package/build/universal/Button/index.android.js.map +1 -1
  59. package/build/universal/Button/index.ios.js +3 -1
  60. package/build/universal/Button/index.ios.js.map +1 -1
  61. package/build/universal/Checkbox/index.android.js +16 -4
  62. package/build/universal/Checkbox/index.android.js.map +1 -1
  63. package/build/universal/Collapsible/index.ios.js +1 -0
  64. package/build/universal/Collapsible/index.ios.js.map +1 -1
  65. package/build/universal/Column/index.android.js +4 -1
  66. package/build/universal/Column/index.android.js.map +1 -1
  67. package/build/universal/Column/index.ios.js +2 -0
  68. package/build/universal/Column/index.ios.js.map +1 -1
  69. package/build/universal/Column/index.js +13 -4
  70. package/build/universal/Column/index.js.map +1 -1
  71. package/build/universal/FieldGroup/FieldGroup.android.js +3 -1
  72. package/build/universal/FieldGroup/FieldGroup.android.js.map +1 -1
  73. package/build/universal/FieldGroup/FieldGroup.ios.js +3 -1
  74. package/build/universal/FieldGroup/FieldGroup.ios.js.map +1 -1
  75. package/build/universal/FieldGroup/FieldSection.android.js +13 -4
  76. package/build/universal/FieldGroup/FieldSection.android.js.map +1 -1
  77. package/build/universal/FieldGroup/FieldSection.ios.js +3 -1
  78. package/build/universal/FieldGroup/FieldSection.ios.js.map +1 -1
  79. package/build/universal/Icon/index.android.js +3 -1
  80. package/build/universal/Icon/index.android.js.map +1 -1
  81. package/build/universal/Icon/index.ios.js +3 -1
  82. package/build/universal/Icon/index.ios.js.map +1 -1
  83. package/build/universal/List/ListForEach.android.d.ts +7 -0
  84. package/build/universal/List/ListForEach.android.js +6 -0
  85. package/build/universal/List/ListForEach.android.js.map +1 -0
  86. package/build/universal/List/ListForEach.d.ts +5 -0
  87. package/build/universal/List/ListForEach.ios.d.ts +5 -0
  88. package/build/universal/List/ListForEach.ios.js +11 -0
  89. package/build/universal/List/ListForEach.ios.js.map +1 -0
  90. package/build/universal/List/ListForEach.js +263 -0
  91. package/build/universal/List/ListForEach.js.map +1 -0
  92. package/build/universal/List/ListScrollContext.d.ts +5 -0
  93. package/build/universal/List/ListScrollContext.js +6 -0
  94. package/build/universal/List/ListScrollContext.js.map +1 -0
  95. package/build/universal/List/index.android.d.ts +5 -0
  96. package/build/universal/List/index.android.js +3 -0
  97. package/build/universal/List/index.android.js.map +1 -1
  98. package/build/universal/List/index.d.ts +5 -0
  99. package/build/universal/List/index.ios.d.ts +5 -0
  100. package/build/universal/List/index.ios.js +3 -0
  101. package/build/universal/List/index.ios.js.map +1 -1
  102. package/build/universal/List/index.js +12 -1
  103. package/build/universal/List/index.js.map +1 -1
  104. package/build/universal/List/types.d.ts +42 -1
  105. package/build/universal/List/types.js +1 -3
  106. package/build/universal/List/types.js.map +1 -1
  107. package/build/universal/RNHostView/index.android.js +3 -1
  108. package/build/universal/RNHostView/index.android.js.map +1 -1
  109. package/build/universal/Row/index.android.js +4 -1
  110. package/build/universal/Row/index.android.js.map +1 -1
  111. package/build/universal/Row/index.ios.js +2 -0
  112. package/build/universal/Row/index.ios.js.map +1 -1
  113. package/build/universal/Row/index.js +13 -7
  114. package/build/universal/Row/index.js.map +1 -1
  115. package/build/universal/ScrollView/index.android.js +8 -1
  116. package/build/universal/ScrollView/index.android.js.map +1 -1
  117. package/build/universal/ScrollView/index.ios.js +15 -7
  118. package/build/universal/ScrollView/index.ios.js.map +1 -1
  119. package/build/universal/Spacer/index.android.js +3 -1
  120. package/build/universal/Spacer/index.android.js.map +1 -1
  121. package/build/universal/Spacer/index.ios.js +3 -1
  122. package/build/universal/Spacer/index.ios.js.map +1 -1
  123. package/build/universal/Switch/index.android.js +17 -4
  124. package/build/universal/Switch/index.android.js.map +1 -1
  125. package/build/universal/Switch/index.js +1 -0
  126. package/build/universal/Switch/index.js.map +1 -1
  127. package/build/universal/Text/index.android.js +3 -1
  128. package/build/universal/Text/index.android.js.map +1 -1
  129. package/build/universal/Text/index.ios.js +3 -1
  130. package/build/universal/Text/index.ios.js.map +1 -1
  131. package/build/universal/Text/index.js +2 -2
  132. package/build/universal/Text/index.js.map +1 -1
  133. package/build/universal/TextInput/index.android.js +22 -7
  134. package/build/universal/TextInput/index.android.js.map +1 -1
  135. package/build/universal/TextInput/index.ios.js +1 -0
  136. package/build/universal/TextInput/index.ios.js.map +1 -1
  137. package/build/universal/index.d.ts +1 -1
  138. package/build/universal/modifierUtils.d.ts +34 -1
  139. package/build/universal/modifierUtils.js +98 -2
  140. package/build/universal/modifierUtils.js.map +1 -1
  141. package/build/universal/stackAxis.d.ts +9 -0
  142. package/build/universal/stackAxis.js +11 -0
  143. package/build/universal/stackAxis.js.map +1 -0
  144. package/build/universal/transformStyle.android.d.ts +6 -2
  145. package/build/universal/transformStyle.android.js +18 -11
  146. package/build/universal/transformStyle.android.js.map +1 -1
  147. package/build/universal/transformStyle.ios.d.ts +5 -1
  148. package/build/universal/transformStyle.ios.js +29 -11
  149. package/build/universal/transformStyle.ios.js.map +1 -1
  150. package/build/universal/types.d.ts +26 -1
  151. package/build/universal/types.js.map +1 -1
  152. package/build/universal/webUtils.js +4 -0
  153. package/build/universal/webUtils.js.map +1 -1
  154. package/ios/BottomSheetView.swift +11 -2
  155. package/ios/DatePickerView.swift +134 -9
  156. package/ios/GroupView.swift +3 -0
  157. package/ios/HStackView.swift +26 -2
  158. package/ios/HostView.swift +21 -12
  159. package/ios/Modifiers/SelectedSegmentTintColorModifier.swift +86 -0
  160. package/ios/Modifiers/ViewModifierRegistry.swift +8 -0
  161. package/ios/RNHostView.swift +34 -16
  162. package/ios/ScrollViewComponent.swift +20 -0
  163. package/ios/UIBaseView.swift +4 -1
  164. package/ios/UniversalLayout.swift +691 -0
  165. package/ios/VStackView.swift +26 -2
  166. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.21/expo.modules.ui-58.0.21-sources.jar → 58.0.23/expo.modules.ui-58.0.23-sources.jar} +0 -0
  167. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.md5 +1 -0
  168. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.sha1 +1 -0
  169. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.sha256 +1 -0
  170. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23-sources.jar.sha512 +1 -0
  171. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar +0 -0
  172. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.md5 +1 -0
  173. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha1 +1 -0
  174. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha256 +1 -0
  175. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.aar.sha512 +1 -0
  176. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.21/expo.modules.ui-58.0.21.module → 58.0.23/expo.modules.ui-58.0.23.module} +22 -22
  177. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.md5 +1 -0
  178. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha1 +1 -0
  179. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha256 +1 -0
  180. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.module.sha512 +1 -0
  181. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.21/expo.modules.ui-58.0.21.pom → 58.0.23/expo.modules.ui-58.0.23.pom} +1 -1
  182. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.md5 +1 -0
  183. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha1 +1 -0
  184. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha256 +1 -0
  185. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.23/expo.modules.ui-58.0.23.pom.sha512 +1 -0
  186. package/package.json +2 -2
  187. package/src/community/bottom-sheet/BottomSheet.ios.tsx +7 -3
  188. package/src/community/pager-view/PagerView.ios.tsx +25 -8
  189. package/src/community/segmented-control/SegmentedControl.ios.tsx +13 -1
  190. package/src/community/segmented-control/types.tsx +5 -1
  191. package/src/jetpack-compose/Column/index.tsx +5 -0
  192. package/src/jetpack-compose/CompositionLocalProvider/index.tsx +43 -0
  193. package/src/jetpack-compose/Host/index.tsx +50 -4
  194. package/src/jetpack-compose/Row/index.tsx +5 -0
  195. package/src/jetpack-compose/Switch/index.tsx +4 -0
  196. package/src/jetpack-compose/TopAppBar/index.tsx +113 -0
  197. package/src/jetpack-compose/index.ts +2 -0
  198. package/src/jetpack-compose/modifiers/index.ts +11 -3
  199. package/src/recycling/useRecycledRows.tsx +3 -0
  200. package/src/swift-ui/BottomSheet/index.tsx +24 -3
  201. package/src/swift-ui/HStack/index.tsx +6 -0
  202. package/src/swift-ui/VStack/index.tsx +6 -0
  203. package/src/universal/Button/index.android.tsx +3 -1
  204. package/src/universal/Button/index.ios.tsx +2 -1
  205. package/src/universal/Checkbox/index.android.tsx +24 -5
  206. package/src/universal/Collapsible/index.ios.tsx +4 -1
  207. package/src/universal/Column/index.android.tsx +3 -1
  208. package/src/universal/Column/index.ios.tsx +2 -1
  209. package/src/universal/Column/index.tsx +9 -4
  210. package/src/universal/FieldGroup/FieldGroup.android.tsx +8 -1
  211. package/src/universal/FieldGroup/FieldGroup.ios.tsx +2 -1
  212. package/src/universal/FieldGroup/FieldSection.android.tsx +17 -4
  213. package/src/universal/FieldGroup/FieldSection.ios.tsx +2 -1
  214. package/src/universal/Icon/index.android.tsx +2 -1
  215. package/src/universal/Icon/index.ios.tsx +2 -1
  216. package/src/universal/List/ListForEach.android.tsx +6 -0
  217. package/src/universal/List/ListForEach.ios.tsx +9 -0
  218. package/src/universal/List/ListForEach.tsx +246 -0
  219. package/src/universal/List/ListScrollContext.ts +6 -0
  220. package/src/universal/List/index.android.tsx +5 -0
  221. package/src/universal/List/index.ios.tsx +5 -0
  222. package/src/universal/List/index.tsx +11 -2
  223. package/src/universal/List/types.ts +45 -1
  224. package/src/universal/RNHostView/index.android.tsx +2 -1
  225. package/src/universal/Row/index.android.tsx +3 -1
  226. package/src/universal/Row/index.ios.tsx +2 -1
  227. package/src/universal/Row/index.tsx +9 -10
  228. package/src/universal/ScrollView/index.android.tsx +15 -3
  229. package/src/universal/ScrollView/index.ios.tsx +16 -4
  230. package/src/universal/Spacer/index.android.tsx +6 -4
  231. package/src/universal/Spacer/index.ios.tsx +2 -1
  232. package/src/universal/Switch/index.android.tsx +23 -4
  233. package/src/universal/Switch/index.tsx +1 -0
  234. package/src/universal/Text/index.android.tsx +2 -1
  235. package/src/universal/Text/index.ios.tsx +2 -1
  236. package/src/universal/Text/index.tsx +2 -2
  237. package/src/universal/TextInput/index.android.tsx +26 -5
  238. package/src/universal/TextInput/index.ios.tsx +1 -1
  239. package/src/universal/index.ts +6 -1
  240. package/src/universal/modifierUtils.ts +159 -2
  241. package/src/universal/stackAxis.ts +17 -0
  242. package/src/universal/transformStyle.android.ts +30 -12
  243. package/src/universal/transformStyle.ios.ts +41 -13
  244. package/src/universal/types.ts +27 -3
  245. package/src/universal/webUtils.ts +4 -0
  246. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21-sources.jar.md5 +0 -1
  247. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21-sources.jar.sha1 +0 -1
  248. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21-sources.jar.sha256 +0 -1
  249. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21-sources.jar.sha512 +0 -1
  250. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.aar +0 -0
  251. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.aar.md5 +0 -1
  252. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.aar.sha1 +0 -1
  253. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.aar.sha256 +0 -1
  254. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.aar.sha512 +0 -1
  255. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.module.md5 +0 -1
  256. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.module.sha1 +0 -1
  257. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.module.sha256 +0 -1
  258. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.module.sha512 +0 -1
  259. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.pom.md5 +0 -1
  260. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.pom.sha1 +0 -1
  261. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.pom.sha256 +0 -1
  262. package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.21/expo.modules.ui-58.0.21.pom.sha512 +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/Icon/index.android.tsx"],"sourcesContent":[null],"names":["Box","Icon","ComposeIcon","size","sizeModifier","useUniversalLifecycle","transformToModifiers","resolveAndroidSource","name","android","undefined","color","accessibilityLabel","style","onPress","onAppear","onDisappear","disabled","hidden","testID","modifiers","extraModifiers","source","boxModifiers","tint","contentDescription","select","spec","value","then","Error"],"mappings":";AAAA,SAASA,GAAG,EAAEC,QAAQC,WAAW,QAAQ,2BAA2B;AACpE,SAASC,QAAQC,YAAY,QAAQ,qCAAqC;AAG1E,SAASC,qBAAqB,QAAQ,WAAW;AACjD,SAASC,oBAAoB,QAAQ,oBAAoB;A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],"sourcesContent":[null],"names":["Box","Icon","ComposeIcon","size","sizeModifier","useUniversalLifecycle","transformToModifiers","resolveAndroidSource","name","android","undefined","color","accessibilityLabel","style","onPress","onAppear","onDisappear","disabled","hidden","testID","modifiers","extraModifiers","source","componentName","boxModifiers","tint","contentDescription","select","spec","value","then","Error"],"mappings":";AAAA,SAASA,GAAG,EAAEC,QAAQC,WAAW,QAAQ,2BAA2B;AACpE,SAASC,QAAQC,YAAY,QAAQ,qCAAqC;AAG1E,SAASC,qBAAqB,QAAQ,WAAW;AACjD,SAASC,oBAAoB,QAAQ,oBAAoB;AAGzD,SAASC,qBAAqBC,IAAc;IAC1C,IAAIA,QAAQ,OAAOA,SAAS,YAAY,aAAaA,MAAM;QACzD,OAAOA,KAAKC,OAAO;IACrB;IACA,IAAI,OAAOD,SAAS,UAAU;QAC5B,4DAA4D;QAC5D,OAAOE;IACT;IACA,OAAOF;AACT;AAEA;;;;;;;;;;CAUC,GACD,OAAO,SAASP,KAAK,EACnBO,IAAI,EACJL,IAAI,EACJQ,KAAK,EACLC,kBAAkB,EAClBC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,WAAWC,cAAc,EACf;IACVhB,sBAAsBU,UAAUC;IAEhC,IAAIE,QAAQ,OAAO;IAEnB,MAAMI,SAASf,qBAAqBC;IACpC,IAAIc,UAAU,MAAM,OAAO;IAE3B,MAAMF,YAAYd,qBAChBO,OACA;QAAEC;QAASG;QAAUC;QAAQC;IAAO,GACpCE,gBACA;QAAEE,eAAe;IAAO;IAG1B,IAAIT,SAAS;QACX,wEAAwE;QACxE,yEAAyE;QACzE,yEAAyE;QACzE,MAAMU,eAAerB,QAAQ,OAAO;YAACC,aAAaD,MAAMA;eAAUiB;SAAU,GAAGA;QAC/E,qBACE,KAACpB;YAAIoB,WAAWI;sBACd,cAAA,KAACtB;gBACCoB,QAAQA;gBACRnB,MAAMA;gBACNsB,MAAMd;gBACNe,oBAAoBd;;;IAI5B;IAEA,qBACE,KAACV;QACCoB,QAAQA;QACRnB,MAAMA;QACNsB,MAAMd;QACNe,oBAAoBd;QACpBQ,WAAWA;;AAGjB;AAEAnB,KAAK0B,MAAM,GAAG,CAACC;IACb,MAAMC,QAAQD,KAAKnB,OAAO;IAC1B,IAAIoB,SAAS,QAAQ,OAAO,AAACA,MAA6BC,IAAI,KAAK,YAAY;QAC7E,MAAM,IAAIC,MACR,gFACE,8EACA,uFACA,uFACA,2CACA;IAEN;IACA,OAAOF;AACT;AAEA,cAAc,UAAU"}
@@ -23,7 +23,9 @@ function resolveIosName(name) {
23
23
  disabled,
24
24
  hidden,
25
25
  testID
26
- }, extraModifiers);
26
+ }, extraModifiers, {
27
+ componentName: 'Icon'
28
+ });
27
29
  return /*#__PURE__*/ _jsx(SwiftUIImage, {
28
30
  systemName: systemName,
29
31
  size: size,
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/Icon/index.ios.tsx"],"sourcesContent":[null],"names":["Image","SwiftUIImage","transformToModifiers","resolveIosName","name","ios","undefined","Icon","size","color","style","onPress","onAppear","onDisappear","disabled","hidden","testID","modifiers","extraModifiers","systemName","select","spec"],"mappings":";AAAA,SAASA,SAASC,YAAY,QAAQ,oBAAoB;AAG1D,SAASC,oBAAoB,QAAQ,oBAAoB;AAGzD,SAASC,eAAeC,IAAc;IACpC,IAAI,OAAOA,SAAS,UAAU;QAC5B,OAAOA;IACT;IACA,IAAIA,QAAQ,OAAOA,SAAS,YAAY,SAASA,MAAM;QACrD,OAAOA,KAAKC,GAAG;IACjB;IACA,6EAA6E;IAC7E,4DAA4D;IAC5D,OAAOC;AACT;AAEA;;;CAGC,GACD,OAAO,SAASC,KAAK,EACnBH,IAAI,EACJI,IAAI,EACJC,KAAK,EACLC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,WAAWC,cAAc,EACf;IACV,MAAMC,aAAahB,eAAeC;IAClC,MAAMa,YAAYf,qBAChBQ,OACA;QAAEE;QAAUC;QAAaC;QAAUC;QAAQC;IAAO,GAClDE;IAGF,qBACE,KAACjB;QACCkB,YAAYA;QACZX,MAAMA;QACNC,OAAOA;QACPE,SAASA;QACTM,WAAWA;;AAGjB;AAEAV,KAAKa,MAAM,GAAG,CAACC,OAAyBA,KAAKhB,GAAG;AAEhD,cAAc,UAAU"}
1
+ {"version":3,"sources":["universal/Icon/index.ios.tsx"],"sourcesContent":[null],"names":["Image","SwiftUIImage","transformToModifiers","resolveIosName","name","ios","undefined","Icon","size","color","style","onPress","onAppear","onDisappear","disabled","hidden","testID","modifiers","extraModifiers","systemName","componentName","select","spec"],"mappings":";AAAA,SAASA,SAASC,YAAY,QAAQ,oBAAoB;AAG1D,SAASC,oBAAoB,QAAQ,oBAAoB;AAGzD,SAASC,eAAeC,IAAc;IACpC,IAAI,OAAOA,SAAS,UAAU;QAC5B,OAAOA;IACT;IACA,IAAIA,QAAQ,OAAOA,SAAS,YAAY,SAASA,MAAM;QACrD,OAAOA,KAAKC,GAAG;IACjB;IACA,6EAA6E;IAC7E,4DAA4D;IAC5D,OAAOC;AACT;AAEA;;;CAGC,GACD,OAAO,SAASC,KAAK,EACnBH,IAAI,EACJI,IAAI,EACJC,KAAK,EACLC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,WAAWC,cAAc,EACf;IACV,MAAMC,aAAahB,eAAeC;IAClC,MAAMa,YAAYf,qBAChBQ,OACA;QAAEE;QAAUC;QAAaC;QAAUC;QAAQC;IAAO,GAClDE,gBACA;QAAEE,eAAe;IAAO;IAG1B,qBACE,KAACnB;QACCkB,YAAYA;QACZX,MAAMA;QACNC,OAAOA;QACPE,SAASA;QACTM,WAAWA;;AAGjB;AAEAV,KAAKc,MAAM,GAAG,CAACC,OAAyBA,KAAKjB,GAAG;AAEhD,cAAc,UAAU"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Android implementation of `List.ForEach`. Delegates to Jetpack Compose `LazyColumn.Items`.
3
+ */
4
+ export declare const ListForEach: {
5
+ <T>({ recycling, ...props }: import("../../jetpack-compose").LazyItemsProps<T>): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { createLazyItems } from '../../jetpack-compose/LazyItems';
2
+ /**
3
+ * Android implementation of `List.ForEach`. Delegates to Jetpack Compose `LazyColumn.Items`.
4
+ */ export const ListForEach = createLazyItems('List.ForEach');
5
+
6
+ //# sourceMappingURL=ListForEach.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["universal/List/ListForEach.android.tsx"],"sourcesContent":[null],"names":["createLazyItems","ListForEach"],"mappings":"AAAA,SAASA,eAAe,QAAQ,kCAAkC;AAElE;;CAEC,GACD,OAAO,MAAMC,cAAcD,gBAAgB,gBAAgB"}
@@ -0,0 +1,5 @@
1
+ import type { ListForEachProps } from './types';
2
+ /**
3
+ * Renders one row for each item of `data`, and reuses rows while the list scrolls.
4
+ */
5
+ export declare function ListForEach<T>({ recycling, ...props }: ListForEachProps<T>): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ListForEachProps } from './types';
2
+ /**
3
+ * iOS implementation of `List.ForEach`. Delegates to SwiftUI `List.ForEach`.
4
+ */
5
+ export declare function ListForEach<T>(props: ListForEachProps<T>): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ListForEach as SwiftUIListForEach } from '../../swift-ui/List/ListForEach';
3
+ /**
4
+ * iOS implementation of `List.ForEach`. Delegates to SwiftUI `List.ForEach`.
5
+ */ export function ListForEach(props) {
6
+ return /*#__PURE__*/ _jsx(SwiftUIListForEach, {
7
+ ...props
8
+ });
9
+ }
10
+
11
+ //# sourceMappingURL=ListForEach.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["universal/List/ListForEach.ios.tsx"],"sourcesContent":[null],"names":["ListForEach","SwiftUIListForEach","props"],"mappings":";AAAA,SAASA,eAAeC,kBAAkB,QAAQ,kCAAkC;AAGpF;;CAEC,GACD,OAAO,SAASD,YAAeE,KAA0B;IACvD,qBAAO,KAACD;QAAoB,GAAGC,KAAK;;AACtC"}
@@ -0,0 +1,263 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { createContext, Fragment, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
3
+ import { View } from 'react-native';
4
+ import { useItemKeys, useRecycledRows } from '../../recycling/useRecycledRows';
5
+ import { ListScrollContext } from './ListScrollContext';
6
+ const RowSizesContext = /*#__PURE__*/ createContext(null);
7
+ function asHTMLElement(value) {
8
+ return typeof HTMLElement !== 'undefined' && value instanceof HTMLElement ? value : null;
9
+ }
10
+ function getScrollParent(node) {
11
+ for(let parent = node.parentElement; parent; parent = parent.parentElement){
12
+ const { overflowY } = getComputedStyle(parent);
13
+ if ((overflowY === 'auto' || overflowY === 'scroll') && parent.scrollHeight > parent.clientHeight) {
14
+ return parent;
15
+ }
16
+ }
17
+ return document.scrollingElement;
18
+ }
19
+ // Index of the item at `offset`, clamped to the data.
20
+ function getIndexAt(offsets, offset) {
21
+ let low = 0;
22
+ let high = offsets.length - 2;
23
+ while(low < high){
24
+ const middle = low + high + 1 >> 1;
25
+ if (offsets[middle] <= offset) low = middle;
26
+ else high = middle - 1;
27
+ }
28
+ return low;
29
+ }
30
+ /**
31
+ * Renders one row for each item of `data`, and reuses rows while the list scrolls.
32
+ */ export function ListForEach({ recycling = true, ...props }) {
33
+ return recycling ? /*#__PURE__*/ _jsx(RecycledListForEach, {
34
+ ...props
35
+ }) : /*#__PURE__*/ _jsx(StaticListForEach, {
36
+ ...props
37
+ });
38
+ }
39
+ function StaticListForEach({ data, keyExtractor, children: renderItem }) {
40
+ const itemKeys = useItemKeys('List.ForEach', data, keyExtractor);
41
+ return /*#__PURE__*/ _jsx(_Fragment, {
42
+ children: data.map((item, index)=>/*#__PURE__*/ _jsx(Fragment, {
43
+ children: renderItem({
44
+ item,
45
+ index
46
+ })
47
+ }, itemKeys[index]))
48
+ });
49
+ }
50
+ function RecycledListForEach({ data, keyExtractor, children: renderItem, overscanCount, estimatedItemSize = 64 }) {
51
+ const { itemKeys, revision, rows, start, onWindowChange } = useRecycledRows({
52
+ componentName: 'List.ForEach',
53
+ Slot,
54
+ data,
55
+ keyExtractor,
56
+ renderItem,
57
+ overscanCount,
58
+ estimatedItemSize
59
+ });
60
+ const listRef = useContext(ListScrollContext);
61
+ const containerRef = useRef(null);
62
+ const heights = useRef(new Map()).current;
63
+ const [heightsVersion, setHeightsVersion] = useState(0);
64
+ const rowSizes = useMemo(()=>{
65
+ const measures = new Set();
66
+ return {
67
+ measureAll: ()=>measures.forEach((measure)=>measure()),
68
+ register: (measure)=>{
69
+ measures.add(measure);
70
+ return ()=>measures.delete(measure);
71
+ },
72
+ report: (itemKey, height)=>{
73
+ if (!(height > 0) || heights.get(itemKey) === height) return;
74
+ heights.set(itemKey, height);
75
+ setHeightsVersion((version)=>version + 1);
76
+ }
77
+ };
78
+ }, [
79
+ heights
80
+ ]);
81
+ // `offsets[i]` is the top of item `i`; the last entry is the total height.
82
+ const offsets = useMemo(()=>{
83
+ const result = new Float64Array(itemKeys.length + 1);
84
+ itemKeys.forEach((itemKey, index)=>{
85
+ result[index + 1] = result[index] + (heights.get(itemKey) ?? estimatedItemSize);
86
+ });
87
+ return result;
88
+ // `heightsVersion` tracks changes to `heights`.
89
+ }, [
90
+ itemKeys,
91
+ estimatedItemSize,
92
+ heights,
93
+ heightsVersion
94
+ ]);
95
+ const latest = useRef({
96
+ itemKeys,
97
+ offsets,
98
+ revision,
99
+ onWindowChange
100
+ });
101
+ latest.current = {
102
+ itemKeys,
103
+ offsets,
104
+ revision,
105
+ onWindowChange
106
+ };
107
+ // The first visible item and its offset, from the last window update.
108
+ const anchor = useRef(null);
109
+ const updateWindow = useCallback(()=>{
110
+ const container = asHTMLElement(containerRef.current);
111
+ const { itemKeys, offsets, revision, onWindowChange } = latest.current;
112
+ if (!container || offsets.length < 2) return;
113
+ const containerTop = container.getBoundingClientRect().top;
114
+ let top = 0;
115
+ let bottom = window.innerHeight;
116
+ const list = asHTMLElement(listRef?.current);
117
+ if (list) {
118
+ const listRect = list.getBoundingClientRect();
119
+ top = Math.max(top, listRect.top);
120
+ bottom = Math.min(bottom, listRect.bottom);
121
+ }
122
+ const first = getIndexAt(offsets, top - containerTop);
123
+ const last = getIndexAt(offsets, bottom - containerTop);
124
+ anchor.current = {
125
+ itemKeys,
126
+ index: first,
127
+ offset: offsets[first]
128
+ };
129
+ onWindowChange({
130
+ first,
131
+ last: Math.max(first, last),
132
+ revision
133
+ });
134
+ }, [
135
+ listRef
136
+ ]);
137
+ useLayoutEffect(()=>{
138
+ // Rows measured above the first visible row move it, so scroll by the same amount.
139
+ const container = asHTMLElement(containerRef.current);
140
+ const previous = anchor.current;
141
+ if (container && previous?.itemKeys === itemKeys) {
142
+ const delta = offsets[previous.index] - previous.offset;
143
+ const scrollParent = delta === 0 ? null : getScrollParent(container);
144
+ if (scrollParent) scrollParent.scrollTop += delta;
145
+ }
146
+ updateWindow();
147
+ }, [
148
+ updateWindow,
149
+ itemKeys,
150
+ offsets,
151
+ revision
152
+ ]);
153
+ useEffect(()=>{
154
+ const container = asHTMLElement(containerRef.current);
155
+ if (!container) return;
156
+ const onScroll = (event)=>{
157
+ if (event.target instanceof Node && !event.target.contains(container)) return;
158
+ updateWindow();
159
+ };
160
+ const options = {
161
+ capture: true,
162
+ passive: true
163
+ };
164
+ window.addEventListener('scroll', onScroll, options);
165
+ window.addEventListener('resize', updateWindow);
166
+ return ()=>{
167
+ window.removeEventListener('scroll', onScroll, options);
168
+ window.removeEventListener('resize', updateWindow);
169
+ };
170
+ }, [
171
+ updateWindow
172
+ ]);
173
+ useEffect(()=>{
174
+ const live = new Set(itemKeys);
175
+ for (const itemKey of heights.keys()){
176
+ if (!live.has(itemKey)) heights.delete(itemKey);
177
+ }
178
+ }, [
179
+ heights,
180
+ itemKeys
181
+ ]);
182
+ // Row heights depend on the width.
183
+ useEffect(()=>{
184
+ const container = asHTMLElement(containerRef.current);
185
+ if (!container || typeof ResizeObserver === 'undefined') return;
186
+ let width = container.getBoundingClientRect().width;
187
+ const observer = new ResizeObserver(()=>{
188
+ const nextWidth = container.getBoundingClientRect().width;
189
+ if (nextWidth === width) return;
190
+ width = nextWidth;
191
+ heights.clear();
192
+ setHeightsVersion((version)=>version + 1);
193
+ rowSizes.measureAll();
194
+ });
195
+ observer.observe(container);
196
+ return ()=>observer.disconnect();
197
+ }, [
198
+ heights,
199
+ rowSizes
200
+ ]);
201
+ // Rotate the pool from slot order to item order, so the DOM order matches the screen.
202
+ const pivot = rows.length === 0 ? 0 : start % rows.length;
203
+ const orderedRows = [
204
+ ...rows.slice(pivot),
205
+ ...rows.slice(0, pivot)
206
+ ];
207
+ const end = start + rows.length;
208
+ return /*#__PURE__*/ _jsx(RowSizesContext.Provider, {
209
+ value: rowSizes,
210
+ children: /*#__PURE__*/ _jsxs(View, {
211
+ ref: containerRef,
212
+ children: [
213
+ /*#__PURE__*/ _jsx(View, {
214
+ style: {
215
+ height: offsets[start]
216
+ }
217
+ }),
218
+ orderedRows,
219
+ /*#__PURE__*/ _jsx(View, {
220
+ style: {
221
+ height: offsets[itemKeys.length] - offsets[end]
222
+ }
223
+ })
224
+ ]
225
+ })
226
+ });
227
+ }
228
+ function Slot({ itemKey, children }) {
229
+ const rowSizes = useContext(RowSizesContext);
230
+ const ref = useRef(null);
231
+ const itemKeyRef = useRef(itemKey);
232
+ itemKeyRef.current = itemKey;
233
+ const measure = useCallback(()=>{
234
+ const node = asHTMLElement(ref.current);
235
+ if (node) rowSizes?.report(itemKeyRef.current, node.getBoundingClientRect().height);
236
+ }, [
237
+ rowSizes
238
+ ]);
239
+ useLayoutEffect(measure, [
240
+ measure,
241
+ itemKey
242
+ ]);
243
+ useEffect(()=>{
244
+ const node = asHTMLElement(ref.current);
245
+ if (!node || !rowSizes || typeof ResizeObserver === 'undefined') return;
246
+ const observer = new ResizeObserver(measure);
247
+ observer.observe(node);
248
+ const unregister = rowSizes.register(measure);
249
+ return ()=>{
250
+ observer.disconnect();
251
+ unregister();
252
+ };
253
+ }, [
254
+ measure,
255
+ rowSizes
256
+ ]);
257
+ return /*#__PURE__*/ _jsx(View, {
258
+ ref: ref,
259
+ children: children
260
+ });
261
+ }
262
+
263
+ //# sourceMappingURL=ListForEach.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["universal/List/ListForEach.tsx"],"sourcesContent":[null],"names":["createContext","Fragment","useCallback","useContext","useEffect","useLayoutEffect","useMemo","useRef","useState","View","useItemKeys","useRecycledRows","ListScrollContext","RowSizesContext","asHTMLElement","value","HTMLElement","getScrollParent","node","parent","parentElement","overflowY","getComputedStyle","scrollHeight","clientHeight","document","scrollingElement","getIndexAt","offsets","offset","low","high","length","middle","ListForEach","recycling","props","RecycledListForEach","StaticListForEach","data","keyExtractor","children","renderItem","itemKeys","map","item","index","overscanCount","estimatedItemSize","revision","rows","start","onWindowChange","componentName","Slot","listRef","containerRef","heights","Map","current","heightsVersion","setHeightsVersion","rowSizes","measures","Set","measureAll","forEach","measure","register","add","delete","report","itemKey","height","get","set","version","result","Float64Array","latest","anchor","updateWindow","container","containerTop","getBoundingClientRect","top","bottom","window","innerHeight","list","listRect","Math","max","min","first","last","previous","delta","scrollParent","scrollTop","onScroll","event","target","Node","contains","options","capture","passive","addEventListener","removeEventListener","live","keys","has","ResizeObserver","width","observer","nextWidth","clear","observe","disconnect","pivot","orderedRows","slice","end","Provider","ref","style","itemKeyRef","unregister"],"mappings":";AAAA,SACEA,aAAa,EACbC,QAAQ,EACRC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,eAAe,EACfC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,QAAQ;AACf,SAASC,IAAI,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F;IACF,GAAG;QAAC7D;QAASL;KAAS;IAEtB,qBAAO,KAACrD;QAAKoH,KAAKA;kBAAMpF;;AAC1B"}
@@ -0,0 +1,5 @@
1
+ import { type RefObject } from 'react';
2
+ /**
3
+ * The web `List` node. `List.ForEach` uses it to find its visible rows.
4
+ */
5
+ export declare const ListScrollContext: import("react").Context<RefObject<unknown> | null>;
@@ -0,0 +1,6 @@
1
+ import { createContext } from 'react';
2
+ /**
3
+ * The web `List` node. `List.ForEach` uses it to find its visible rows.
4
+ */ export const ListScrollContext = createContext(null);
5
+
6
+ //# sourceMappingURL=ListScrollContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["universal/List/ListScrollContext.ts"],"sourcesContent":[null],"names":["createContext","ListScrollContext"],"mappings":"AAAA,SAASA,aAAa,QAAwB,QAAQ;AAEtD;;CAEC,GACD,OAAO,MAAMC,oBAAoBD,cAAyC,MAAM"}
@@ -1,3 +1,4 @@
1
+ import { ListForEach } from './ListForEach';
1
2
  import type { ListProps } from './types';
2
3
  /**
3
4
  * Android implementation of `List`.
@@ -5,4 +6,8 @@ import type { ListProps } from './types';
5
6
  * The returned promise drives the refresh indicator's visibility.
6
7
  */
7
8
  export declare function List({ children, onRefresh, testID }: ListProps): import("react").JSX.Element;
9
+ export declare namespace List {
10
+ var ForEach: typeof ListForEach;
11
+ }
12
+ export { ListForEach } from './ListForEach';
8
13
  export * from './types';
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { LazyColumn, PullToRefreshBox } from '@expo/ui/jetpack-compose';
3
3
  import { testID as testIDModifier } from '@expo/ui/jetpack-compose/modifiers';
4
4
  import { useCallback, useState } from 'react';
5
+ import { ListForEach } from './ListForEach';
5
6
  /**
6
7
  * Android implementation of `List`.
7
8
  * Composes `LazyColumn` and wraps with `PullToRefreshBox` when `onRefresh` is provided.
@@ -38,6 +39,8 @@ import { useCallback, useState } from 'react';
38
39
  children: listContent
39
40
  }));
40
41
  }
42
+ List.ForEach = ListForEach;
43
+ export { ListForEach } from './ListForEach';
41
44
  export * from './types';
42
45
 
43
46
  //# sourceMappingURL=index.android.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/List/index.android.tsx"],"sourcesContent":[null],"names":["LazyColumn","PullToRefreshBox","testID","testIDModifier","useCallback","useState","List","children","onRefresh","isRefreshing","setIsRefreshing","handleRefresh","listModifiers","undefined","listContent","modifiers","contentAlignment"],"mappings":";AAAA,SAASA,UAAU,EAAEC,gBAAgB,QAAQ,2BAA2B;AACxE,SAASC,UAAUC,cAAc,QAA6B,qCAAqC;AACnG,SAASC,WAAW,EAAEC,QAAQ,QAAQ,QAAQ;AAI9C;;;;CAIC,GACD,OAAO,SAASC,KAAK,EAAEC,QAAQ,EAAEC,SAAS,EAAEN,MAAM,EAAa;IAC7D,MAAM,CAACO,cAAcC,gBAAgB,GAAGL,SAAS;IAEjD,MAAMM,gBAAgBP,YAAY;QAChC,IAAI,CAACI,WAAW;QAChBE,gBAAgB;QAChB,IAAI;YACF,MAAMF;QACR,SAAU;YACRE,gBAAgB;QAClB;IACF,GAAG;QAACF;KAAU;IAEd,MAAMI,gBAA8CV,SAAS;QAACC,eAAeD;KAAQ,GAAGW;IACxF,MAAMC,4BAAc,KAACd;QAAWe,WAAWH;kBAAgBL;;IAE3D,IAAI,CAACC,WAAW;QACd,OAAOM;IACT;IAEA,OACE,uEAAuE;IACvE,oHAAoH;kBACpH,KAACb;QACCQ,cAAcA;QACdD,WAAWG;QACXK,kBAAiB;kBAChBF;;AAGP;AAEA,cAAc,UAAU"}
1
+ {"version":3,"sources":["universal/List/index.android.tsx"],"sourcesContent":[null],"names":["LazyColumn","PullToRefreshBox","testID","testIDModifier","useCallback","useState","ListForEach","List","children","onRefresh","isRefreshing","setIsRefreshing","handleRefresh","listModifiers","undefined","listContent","modifiers","contentAlignment","ForEach"],"mappings":";AAAA,SAASA,UAAU,EAAEC,gBAAgB,QAAQ,2BAA2B;AACxE,SAASC,UAAUC,cAAc,QAA6B,qCAAqC;AACnG,SAASC,WAAW,EAAEC,QAAQ,QAAQ,QAAQ;AAE9C,SAASC,WAAW,QAAQ,gBAAgB;AAG5C;;;;CAIC,GACD,OAAO,SAASC,KAAK,EAAEC,QAAQ,EAAEC,SAAS,EAAEP,MAAM,EAAa;IAC7D,MAAM,CAACQ,cAAcC,gBAAgB,GAAGN,SAAS;IAEjD,MAAMO,gBAAgBR,YAAY;QAChC,IAAI,CAACK,WAAW;QAChBE,gBAAgB;QAChB,IAAI;YACF,MAAMF;QACR,SAAU;YACRE,gBAAgB;QAClB;IACF,GAAG;QAACF;KAAU;IAEd,MAAMI,gBAA8CX,SAAS;QAACC,eAAeD;KAAQ,GAAGY;IACxF,MAAMC,4BAAc,KAACf;QAAWgB,WAAWH;kBAAgBL;;IAE3D,IAAI,CAACC,WAAW;QACd,OAAOM;IACT;IAEA,OACE,uEAAuE;IACvE,oHAAoH;kBACpH,KAACd;QACCS,cAAcA;QACdD,WAAWG;QACXK,kBAAiB;kBAChBF;;AAGP;AAEAR,KAAKW,OAAO,GAAGZ;AAEf,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,cAAc,UAAU"}
@@ -1,7 +1,12 @@
1
+ import { ListForEach } from './ListForEach';
1
2
  import type { ListProps } from './types';
2
3
  /**
3
4
  * A vertical container of rows.
4
5
  * Typically populated with [`ListItem`](#listitem) children.
5
6
  */
6
7
  export declare function List({ children, testID }: ListProps): import("react").JSX.Element;
8
+ export declare namespace List {
9
+ var ForEach: typeof ListForEach;
10
+ }
11
+ export { ListForEach } from './ListForEach';
7
12
  export * from './types';
@@ -1,7 +1,12 @@
1
+ import { ListForEach } from './ListForEach';
1
2
  import type { ListProps } from './types';
2
3
  /**
3
4
  * iOS implementation of `List`.
4
5
  * Delegates to SwiftUI's `List` and applies `.refreshable` when `onRefresh` is provided.
5
6
  */
6
7
  export declare function List({ children, onRefresh, testID }: ListProps): import("react").JSX.Element;
8
+ export declare namespace List {
9
+ var ForEach: typeof ListForEach;
10
+ }
11
+ export { ListForEach } from './ListForEach';
7
12
  export * from './types';
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { List as SwiftUIList } from '@expo/ui/swift-ui';
3
3
  import { refreshable } from '@expo/ui/swift-ui/modifiers';
4
+ import { ListForEach } from './ListForEach';
4
5
  /**
5
6
  * iOS implementation of `List`.
6
7
  * Delegates to SwiftUI's `List` and applies `.refreshable` when `onRefresh` is provided.
@@ -14,6 +15,8 @@ import { refreshable } from '@expo/ui/swift-ui/modifiers';
14
15
  children: children
15
16
  });
16
17
  }
18
+ List.ForEach = ListForEach;
19
+ export { ListForEach } from './ListForEach';
17
20
  export * from './types';
18
21
 
19
22
  //# sourceMappingURL=index.ios.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/List/index.ios.tsx"],"sourcesContent":[null],"names":["List","SwiftUIList","refreshable","children","onRefresh","testID","modifiers","undefined"],"mappings":";AAAA,SAASA,QAAQC,WAAW,QAAQ,oBAAoB;AACxD,SAASC,WAAW,QAA6B,8BAA8B;AAI/E;;;CAGC,GACD,OAAO,SAASF,KAAK,EAAEG,QAAQ,EAAEC,SAAS,EAAEC,MAAM,EAAa;IAC7D,MAAMC,YAA0CF,YAAY;QAACF,YAAYE;KAAW,GAAGG;IACvF,qBACE,KAACN;QAAYK,WAAWA;QAAWD,QAAQA;kBACxCF;;AAGP;AAEA,cAAc,UAAU"}
1
+ {"version":3,"sources":["universal/List/index.ios.tsx"],"sourcesContent":[null],"names":["List","SwiftUIList","refreshable","ListForEach","children","onRefresh","testID","modifiers","undefined","ForEach"],"mappings":";AAAA,SAASA,QAAQC,WAAW,QAAQ,oBAAoB;AACxD,SAASC,WAAW,QAA6B,8BAA8B;AAE/E,SAASC,WAAW,QAAQ,gBAAgB;AAG5C;;;CAGC,GACD,OAAO,SAASH,KAAK,EAAEI,QAAQ,EAAEC,SAAS,EAAEC,MAAM,EAAa;IAC7D,MAAMC,YAA0CF,YAAY;QAACH,YAAYG;KAAW,GAAGG;IACvF,qBACE,KAACP;QAAYM,WAAWA;QAAWD,QAAQA;kBACxCF;;AAGP;AAEAJ,KAAKS,OAAO,GAAGN;AAEf,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,cAAc,UAAU"}
@@ -1,23 +1,34 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useRef } from 'react';
2
3
  import { StyleSheet, View } from 'react-native';
4
+ import { ListForEach } from './ListForEach';
5
+ import { ListScrollContext } from './ListScrollContext';
3
6
  /**
4
7
  * A vertical container of rows.
5
8
  * Typically populated with [`ListItem`](#listitem) children.
6
9
  */ export function List({ children, testID }) {
10
+ const ref = useRef(null);
7
11
  return /*#__PURE__*/ _jsx(View, {
12
+ ref: ref,
8
13
  style: styles.container,
9
14
  testID: testID,
10
- children: children
15
+ children: /*#__PURE__*/ _jsx(ListScrollContext.Provider, {
16
+ value: ref,
17
+ children: children
18
+ })
11
19
  });
12
20
  }
13
21
  const styles = StyleSheet.create({
14
22
  container: {
23
+ flex: 1,
15
24
  flexDirection: 'column',
16
25
  width: '100%',
17
26
  overflowX: 'auto',
18
27
  overflowY: 'auto'
19
28
  }
20
29
  });
30
+ List.ForEach = ListForEach;
31
+ export { ListForEach } from './ListForEach';
21
32
  export * from './types';
22
33
 
23
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/List/index.tsx"],"sourcesContent":[null],"names":["StyleSheet","View","List","children","testID","style","styles","container","create","flexDirection","width","overflowX","overflowY"],"mappings":";AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,eAAe;AAIhD;;;CAGC,GACD,OAAO,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,EAAa;IAClD,qBACE,KAACH;QAAKI,OAAOC,OAAOC,SAAS;QAAEH,QAAQA;kBACpCD;;AAGP;AAEA,MAAMG,SAASN,WAAWQ,MAAM,CAAC;IAC/BD,WAAW;QACTE,eAAe;QACfC,OAAO;QACPC,WAAW;QACXC,WAAW;IACb;AACF;AAEA,cAAc,UAAU"}
1
+ {"version":3,"sources":["universal/List/index.tsx"],"sourcesContent":[null],"names":["useRef","StyleSheet","View","ListForEach","ListScrollContext","List","children","testID","ref","style","styles","container","Provider","value","create","flex","flexDirection","width","overflowX","overflowY","ForEach"],"mappings":";AAAA,SAASA,MAAM,QAAQ,QAAQ;AAC/B,SAASC,UAAU,EAAEC,IAAI,QAAQ,eAAe;AAEhD,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,iBAAiB,QAAQ,sBAAsB;AAGxD;;;CAGC,GACD,OAAO,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,EAAa;IAClD,MAAMC,MAAMR,OAAO;IACnB,qBACE,KAACE;QAAKM,KAAKA;QAAKC,OAAOC,OAAOC,SAAS;QAAEJ,QAAQA;kBAC/C,cAAA,KAACH,kBAAkBQ,QAAQ;YAACC,OAAOL;sBAAMF;;;AAG/C;AAEA,MAAMI,SAAST,WAAWa,MAAM,CAAC;IAC/BH,WAAW;QACTI,MAAM;QACNC,eAAe;QACfC,OAAO;QACPC,WAAW;QACXC,WAAW;IACb;AACF;AAEAd,KAAKe,OAAO,GAAGjB;AAEf,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,cAAc,UAAU"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { ReactElement, ReactNode } from 'react';
2
2
  /**
3
3
  * Props for the [`List`](#list) component.
4
4
  * A virtualized vertical container of rows.
@@ -23,3 +23,44 @@ export interface ListProps {
23
23
  */
24
24
  testID?: string;
25
25
  }
26
+ /**
27
+ * Props for the `List.ForEach` component.
28
+ */
29
+ export interface ListForEachProps<T> {
30
+ /**
31
+ * Items to display. Pass a new array to update.
32
+ */
33
+ data: readonly T[];
34
+ /**
35
+ * Returns a stable, unique string key for each item.
36
+ */
37
+ keyExtractor: (item: T, index: number) => string;
38
+ /**
39
+ * Renders a row. Wrap it in `useCallback`, or every row re-renders on each parent render.
40
+ * A recycled row keeps its local state (`useState`) when it shows another item.
41
+ */
42
+ children: (info: {
43
+ item: T;
44
+ index: number;
45
+ }) => ReactElement;
46
+ /**
47
+ * Renders only the rows near the visible range. Set to `false` to render every row.
48
+ * Changing it remounts the rows.
49
+ *
50
+ * @default true
51
+ */
52
+ recycling?: boolean;
53
+ /**
54
+ * Extra rows to render above and below the visible rows.
55
+ *
56
+ * @default 10
57
+ */
58
+ overscanCount?: number;
59
+ /**
60
+ * Row height to use until a row is measured: dp on Android, points on iOS (without the row
61
+ * insets), and pixels on web.
62
+ *
63
+ * @default 64
64
+ */
65
+ estimatedItemSize?: number;
66
+ }
@@ -1,7 +1,5 @@
1
1
  /**
2
- * Props for the [`List`](#list) component.
3
- * A virtualized vertical container of rows.
4
- * Typically populated with [`ListItem`](#listitem) children, though any node is accepted.
2
+ * Props for the `List.ForEach` component.
5
3
  */ export { };
6
4
 
7
5
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/List/types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;CAIC,GACD,WAoBC"}
1
+ {"version":3,"sources":["universal/List/types.ts"],"sourcesContent":[null],"names":[],"mappings":"AA6BA;;CAEC,GACD,WAuCC"}
@@ -10,7 +10,9 @@ import { transformToModifiers } from '../transformStyle';
10
10
  disabled,
11
11
  hidden,
12
12
  testID
13
- }, extraModifiers);
13
+ }, extraModifiers, {
14
+ componentName: 'RNHostView'
15
+ });
14
16
  return /*#__PURE__*/ _jsx(ComposeRNHostView, {
15
17
  matchContents: matchContents,
16
18
  modifiers: modifiers,
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/RNHostView/index.android.tsx"],"sourcesContent":[null],"names":["RNHostView","ComposeRNHostView","transformToModifiers","children","matchContents","style","onAppear","onDisappear","disabled","hidden","testID","onLayout","modifiers","extraModifiers"],"mappings":";AAAA,SAASA,cAAcC,iBAAiB,QAAQ,2BAA2B;AAE3E,SAASC,oBAAoB,QAAQ,oBAAoB;AAGzD;;CAEC,GACD,OAAO,SAASF,WAAW,EACzBG,QAAQ,EACRC,aAAa,EACbC,KAAK,EACLC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,QAAQ,EACRC,WAAWC,cAAc,EACT;IAChB,MAAMD,YAAYV,qBAChBG,OACA;QAAEC;QAAUC;QAAaC;QAAUC;QAAQC;IAAO,GAClDG;IAGF,qBACE,KAACZ;QAAkBG,eAAeA;QAAeQ,WAAWA;QAAWD,UAAUA;kBAC9ER;;AAGP;AAEA,cAAc,UAAU"}
1
+ {"version":3,"sources":["universal/RNHostView/index.android.tsx"],"sourcesContent":[null],"names":["RNHostView","ComposeRNHostView","transformToModifiers","children","matchContents","style","onAppear","onDisappear","disabled","hidden","testID","onLayout","modifiers","extraModifiers","componentName"],"mappings":";AAAA,SAASA,cAAcC,iBAAiB,QAAQ,2BAA2B;AAE3E,SAASC,oBAAoB,QAAQ,oBAAoB;AAGzD;;CAEC,GACD,OAAO,SAASF,WAAW,EACzBG,QAAQ,EACRC,aAAa,EACbC,KAAK,EACLC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,QAAQ,EACRC,WAAWC,cAAc,EACT;IAChB,MAAMD,YAAYV,qBAChBG,OACA;QAAEC;QAAUC;QAAaC;QAAUC;QAAQC;IAAO,GAClDG,gBACA;QAAEC,eAAe;IAAa;IAGhC,qBACE,KAACb;QAAkBG,eAAeA;QAAeQ,WAAWA;QAAWD,UAAUA;kBAC9ER;;AAGP;AAEA,cAAc,UAAU"}
@@ -15,12 +15,15 @@ export function Row({ children, alignment = 'start', spacing, style, onPress, on
15
15
  disabled,
16
16
  hidden,
17
17
  testID
18
- }, extraModifiers);
18
+ }, extraModifiers, {
19
+ componentName: 'Row'
20
+ });
19
21
  return /*#__PURE__*/ _jsx(ComposeRow, {
20
22
  verticalAlignment: alignmentMap[alignment],
21
23
  horizontalArrangement: spacing != null ? {
22
24
  spacedBy: spacing
23
25
  } : undefined,
26
+ resolvesChildPercentages: true,
24
27
  modifiers: modifiers,
25
28
  children: children
26
29
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["universal/Row/index.android.tsx"],"sourcesContent":[null],"names":["Row","ComposeRow","useUniversalLifecycle","transformToModifiers","alignmentMap","start","center","end","children","alignment","spacing","style","onPress","onAppear","onDisappear","disabled","hidden","testID","modifiers","extraModifiers","undefined","verticalAlignment","horizontalArrangement","spacedBy"],"mappings":";AAAA,SAASA,OAAOC,UAAU,QAAQ,2BAA2B;AAE7D,SAASC,qBAAqB,QAAQ,WAAW;AACjD,SAASC,oBAAoB,QAAQ,oBAAoB;AAIzD,MAAMC,eAAwE;IAC5EC,OAAO;IACPC,QAAQ;IACRC,KAAK;AACP;AAEA,OAAO,SAASP,IAAI,EAClBQ,QAAQ,EACRC,YAAY,OAAO,EACnBC,OAAO,EACPC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,WAAWC,cAAc,EAChB;IACTjB,sBAAsBW,UAAUC;IAEhC,IAAIE,QAAQ,OAAO;IAEnB,MAAME,YAAYf,qBAChBQ,OACA;QAAEC,SAASG,WAAWK,YAAYR;QAASG;QAAUC;QAAQC;IAAO,GACpEE;IAGF,qBACE,KAAClB;QACCoB,mBAAmBjB,YAAY,CAACK,UAAU;QAC1Ca,uBAAuBZ,WAAW,OAAO;YAAEa,UAAUb;QAAQ,IAAIU;QACjEF,WAAWA;kBACVV;;AAGP;AAEA,cAAc,UAAU"}
1
+ {"version":3,"sources":["universal/Row/index.android.tsx"],"sourcesContent":[null],"names":["Row","ComposeRow","useUniversalLifecycle","transformToModifiers","alignmentMap","start","center","end","children","alignment","spacing","style","onPress","onAppear","onDisappear","disabled","hidden","testID","modifiers","extraModifiers","undefined","componentName","verticalAlignment","horizontalArrangement","spacedBy","resolvesChildPercentages"],"mappings":";AAAA,SAASA,OAAOC,UAAU,QAAQ,2BAA2B;AAE7D,SAASC,qBAAqB,QAAQ,WAAW;AACjD,SAASC,oBAAoB,QAAQ,oBAAoB;AAIzD,MAAMC,eAAwE;IAC5EC,OAAO;IACPC,QAAQ;IACRC,KAAK;AACP;AAEA,OAAO,SAASP,IAAI,EAClBQ,QAAQ,EACRC,YAAY,OAAO,EACnBC,OAAO,EACPC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,WAAWC,cAAc,EAChB;IACTjB,sBAAsBW,UAAUC;IAEhC,IAAIE,QAAQ,OAAO;IAEnB,MAAME,YAAYf,qBAChBQ,OACA;QAAEC,SAASG,WAAWK,YAAYR;QAASG;QAAUC;QAAQC;IAAO,GACpEE,gBACA;QAAEE,eAAe;IAAM;IAGzB,qBACE,KAACpB;QACCqB,mBAAmBlB,YAAY,CAACK,UAAU;QAC1Cc,uBAAuBb,WAAW,OAAO;YAAEc,UAAUd;QAAQ,IAAIU;QACjEK,wBAAwB;QACxBP,WAAWA;kBACVV;;AAGP;AAEA,cAAc,UAAU"}