expo-router 7.0.0-canary-20260113-4879b86 → 7.0.0-canary-20260119-70f7c28

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 (242) hide show
  1. package/android/build.gradle +2 -2
  2. package/build/ExpoRoot.d.ts.map +1 -1
  3. package/build/ExpoRoot.js +2 -0
  4. package/build/ExpoRoot.js.map +1 -1
  5. package/build/global.d.ts +29 -0
  6. package/build/global.d.ts.map +1 -0
  7. package/build/global.js +3 -0
  8. package/build/global.js.map +1 -0
  9. package/build/index.d.ts +1 -0
  10. package/build/index.d.ts.map +1 -1
  11. package/build/index.js +1 -0
  12. package/build/index.js.map +1 -1
  13. package/build/layouts/Stack.d.ts.map +1 -1
  14. package/build/layouts/Stack.js +3 -0
  15. package/build/layouts/Stack.js.map +1 -1
  16. package/build/layouts/Stack.web.js +1 -0
  17. package/build/layouts/Stack.web.js.map +1 -1
  18. package/build/layouts/StackClient.d.ts +13 -14
  19. package/build/layouts/StackClient.d.ts.map +1 -1
  20. package/build/layouts/StackClient.js +3 -2
  21. package/build/layouts/StackClient.js.map +1 -1
  22. package/build/layouts/stack-utils/StackHeaderComponent.d.ts +12 -23
  23. package/build/layouts/stack-utils/StackHeaderComponent.d.ts.map +1 -1
  24. package/build/layouts/stack-utils/StackHeaderComponent.js +15 -55
  25. package/build/layouts/stack-utils/StackHeaderComponent.js.map +1 -1
  26. package/build/layouts/stack-utils/StackScreen.d.ts +5 -0
  27. package/build/layouts/stack-utils/StackScreen.d.ts.map +1 -1
  28. package/build/layouts/stack-utils/StackScreen.js +34 -7
  29. package/build/layouts/stack-utils/StackScreen.js.map +1 -1
  30. package/build/layouts/stack-utils/StackSearchBar.d.ts +28 -0
  31. package/build/layouts/stack-utils/StackSearchBar.d.ts.map +1 -1
  32. package/build/layouts/stack-utils/StackSearchBar.js +29 -0
  33. package/build/layouts/stack-utils/StackSearchBar.js.map +1 -1
  34. package/build/layouts/stack-utils/common-primitives.d.ts +6 -6
  35. package/build/layouts/stack-utils/common-primitives.d.ts.map +1 -1
  36. package/build/layouts/stack-utils/common-primitives.js +4 -4
  37. package/build/layouts/stack-utils/common-primitives.js.map +1 -1
  38. package/build/layouts/stack-utils/index.d.ts +4 -23
  39. package/build/layouts/stack-utils/index.d.ts.map +1 -1
  40. package/build/layouts/stack-utils/index.js +18 -35
  41. package/build/layouts/stack-utils/index.js.map +1 -1
  42. package/build/layouts/stack-utils/screen/StackScreenBackButton.d.ts +68 -0
  43. package/build/layouts/stack-utils/screen/StackScreenBackButton.d.ts.map +1 -0
  44. package/build/layouts/stack-utils/screen/StackScreenBackButton.js +58 -0
  45. package/build/layouts/stack-utils/screen/StackScreenBackButton.js.map +1 -0
  46. package/build/layouts/stack-utils/screen/StackScreenTitle.d.ts +58 -0
  47. package/build/layouts/stack-utils/screen/StackScreenTitle.d.ts.map +1 -0
  48. package/build/layouts/stack-utils/screen/StackScreenTitle.js +75 -0
  49. package/build/layouts/stack-utils/screen/StackScreenTitle.js.map +1 -0
  50. package/build/layouts/stack-utils/screen/index.d.ts +3 -0
  51. package/build/layouts/stack-utils/screen/index.d.ts.map +1 -0
  52. package/build/layouts/stack-utils/screen/index.js +10 -0
  53. package/build/layouts/stack-utils/screen/index.js.map +1 -0
  54. package/build/layouts/stack-utils/shared.js +3 -3
  55. package/build/layouts/stack-utils/shared.js.map +1 -1
  56. package/build/layouts/stack-utils/toolbar/StackToolbar.d.ts +3 -0
  57. package/build/layouts/stack-utils/toolbar/StackToolbar.d.ts.map +1 -0
  58. package/build/layouts/stack-utils/toolbar/StackToolbar.js +24 -0
  59. package/build/layouts/stack-utils/toolbar/StackToolbar.js.map +1 -0
  60. package/build/layouts/stack-utils/toolbar/StackToolbarButton.d.ts +144 -0
  61. package/build/layouts/stack-utils/toolbar/StackToolbarButton.d.ts.map +1 -0
  62. package/build/layouts/stack-utils/toolbar/StackToolbarButton.js +68 -0
  63. package/build/layouts/stack-utils/toolbar/StackToolbarButton.js.map +1 -0
  64. package/build/layouts/stack-utils/toolbar/StackToolbarClient.d.ts +104 -0
  65. package/build/layouts/stack-utils/toolbar/StackToolbarClient.d.ts.map +1 -0
  66. package/build/layouts/stack-utils/toolbar/StackToolbarClient.js +214 -0
  67. package/build/layouts/stack-utils/toolbar/StackToolbarClient.js.map +1 -0
  68. package/build/layouts/stack-utils/{StackHeaderMenu.d.ts → toolbar/StackToolbarMenu.d.ts} +58 -106
  69. package/build/layouts/stack-utils/toolbar/StackToolbarMenu.d.ts.map +1 -0
  70. package/build/layouts/stack-utils/toolbar/StackToolbarMenu.js +190 -0
  71. package/build/layouts/stack-utils/toolbar/StackToolbarMenu.js.map +1 -0
  72. package/build/layouts/stack-utils/toolbar/StackToolbarSearchBarSlot.d.ts +48 -0
  73. package/build/layouts/stack-utils/toolbar/StackToolbarSearchBarSlot.d.ts.map +1 -0
  74. package/build/layouts/stack-utils/toolbar/StackToolbarSearchBarSlot.js +44 -0
  75. package/build/layouts/stack-utils/toolbar/StackToolbarSearchBarSlot.js.map +1 -0
  76. package/build/layouts/stack-utils/toolbar/StackToolbarSpacer.d.ts +80 -0
  77. package/build/layouts/stack-utils/toolbar/StackToolbarSpacer.d.ts.map +1 -0
  78. package/build/layouts/stack-utils/toolbar/StackToolbarSpacer.js +77 -0
  79. package/build/layouts/stack-utils/toolbar/StackToolbarSpacer.js.map +1 -0
  80. package/build/layouts/stack-utils/{StackHeaderView.d.ts → toolbar/StackToolbarView.d.ts} +21 -17
  81. package/build/layouts/stack-utils/toolbar/StackToolbarView.d.ts.map +1 -0
  82. package/build/layouts/stack-utils/toolbar/StackToolbarView.js +61 -0
  83. package/build/layouts/stack-utils/toolbar/StackToolbarView.js.map +1 -0
  84. package/build/layouts/stack-utils/toolbar/bottom-toolbar-native-elements.d.ts +93 -0
  85. package/build/layouts/stack-utils/toolbar/bottom-toolbar-native-elements.d.ts.map +1 -0
  86. package/build/layouts/stack-utils/toolbar/bottom-toolbar-native-elements.js +89 -0
  87. package/build/layouts/stack-utils/toolbar/bottom-toolbar-native-elements.js.map +1 -0
  88. package/build/layouts/stack-utils/toolbar/context.d.ts +9 -0
  89. package/build/layouts/stack-utils/toolbar/context.d.ts.map +1 -0
  90. package/build/layouts/stack-utils/toolbar/context.js +16 -0
  91. package/build/layouts/stack-utils/toolbar/context.js.map +1 -0
  92. package/build/layouts/stack-utils/toolbar/index.d.ts +10 -0
  93. package/build/layouts/stack-utils/toolbar/index.d.ts.map +1 -0
  94. package/build/layouts/stack-utils/toolbar/index.js +23 -0
  95. package/build/layouts/stack-utils/toolbar/index.js.map +1 -0
  96. package/build/link/LinkWithPreview.d.ts.map +1 -1
  97. package/build/link/LinkWithPreview.js +8 -5
  98. package/build/link/LinkWithPreview.js.map +1 -1
  99. package/build/link/NativeMenuContext.d.ts +5 -0
  100. package/build/link/NativeMenuContext.d.ts.map +1 -0
  101. package/build/link/NativeMenuContext.js +9 -0
  102. package/build/link/NativeMenuContext.js.map +1 -0
  103. package/build/link/elements.d.ts +41 -0
  104. package/build/link/elements.d.ts.map +1 -1
  105. package/build/link/elements.js +3 -2
  106. package/build/link/elements.js.map +1 -1
  107. package/build/link/preview/native.d.ts +2 -0
  108. package/build/link/preview/native.d.ts.map +1 -1
  109. package/build/link/preview/native.js +3 -1
  110. package/build/link/preview/native.js.map +1 -1
  111. package/build/native-tabs/NativeBottomTabsNavigator.d.ts +1 -1
  112. package/build/native-tabs/NativeBottomTabsNavigator.d.ts.map +1 -1
  113. package/build/native-tabs/NativeBottomTabsNavigator.js +2 -1
  114. package/build/native-tabs/NativeBottomTabsNavigator.js.map +1 -1
  115. package/build/native-tabs/NativeTabTrigger.d.ts.map +1 -1
  116. package/build/native-tabs/NativeTabTrigger.js +6 -4
  117. package/build/native-tabs/NativeTabTrigger.js.map +1 -1
  118. package/build/native-tabs/NativeTabsView.d.ts.map +1 -1
  119. package/build/native-tabs/NativeTabsView.js +0 -3
  120. package/build/native-tabs/NativeTabsView.js.map +1 -1
  121. package/build/native-tabs/common/elements.d.ts +10 -0
  122. package/build/native-tabs/common/elements.d.ts.map +1 -1
  123. package/build/native-tabs/common/elements.js.map +1 -1
  124. package/build/native-tabs/types.d.ts +6 -0
  125. package/build/native-tabs/types.d.ts.map +1 -1
  126. package/build/native-tabs/types.js.map +1 -1
  127. package/build/native-tabs/utils/icon.d.ts +2 -0
  128. package/build/native-tabs/utils/icon.d.ts.map +1 -1
  129. package/build/native-tabs/utils/icon.js +3 -0
  130. package/build/native-tabs/utils/icon.js.map +1 -1
  131. package/build/navigationEvents/index.d.ts +7 -24
  132. package/build/navigationEvents/index.d.ts.map +1 -1
  133. package/build/navigationEvents/index.js +47 -12
  134. package/build/navigationEvents/index.js.map +1 -1
  135. package/build/navigationEvents/types.d.ts +23 -0
  136. package/build/navigationEvents/types.d.ts.map +1 -0
  137. package/build/navigationEvents/types.js +3 -0
  138. package/build/navigationEvents/types.js.map +1 -0
  139. package/build/navigationEvents/utils.d.ts +9 -0
  140. package/build/navigationEvents/utils.d.ts.map +1 -0
  141. package/build/navigationEvents/utils.js +25 -0
  142. package/build/navigationEvents/utils.js.map +1 -0
  143. package/build/primitives/types.d.ts +6 -6
  144. package/build/primitives/types.d.ts.map +1 -1
  145. package/build/primitives/types.js.map +1 -1
  146. package/build/screensFeatureFlags.d.ts +2 -0
  147. package/build/screensFeatureFlags.d.ts.map +1 -0
  148. package/build/screensFeatureFlags.js +20 -0
  149. package/build/screensFeatureFlags.js.map +1 -0
  150. package/build/split-view/split-view.d.ts.map +1 -1
  151. package/build/split-view/split-view.js +0 -7
  152. package/build/split-view/split-view.js.map +1 -1
  153. package/build/toolbar/native.types.d.ts +0 -14
  154. package/build/toolbar/native.types.d.ts.map +1 -1
  155. package/build/toolbar/native.types.js.map +1 -1
  156. package/build/ui/TabRouter.d.ts +14 -2
  157. package/build/ui/TabRouter.d.ts.map +1 -1
  158. package/build/ui/TabRouter.js +34 -4
  159. package/build/ui/TabRouter.js.map +1 -1
  160. package/build/useScreens.d.ts.map +1 -1
  161. package/build/useScreens.js +30 -15
  162. package/build/useScreens.js.map +1 -1
  163. package/expo-module.config.json +1 -1
  164. package/ios/LinkPreview/LinkPreviewNativeActionView.swift +18 -2
  165. package/ios/LinkPreview/LinkPreviewNativeModule.swift +3 -0
  166. package/ios/LinkPreview/LinkPreviewNativeNavigation.swift +2 -2
  167. package/ios/LinkPreview/LinkZoomTransition.swift +2 -2
  168. package/ios/Toolbar/RouterToolbarHostView.swift +68 -43
  169. package/ios/Toolbar/RouterToolbarItemView.swift +89 -21
  170. package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.module → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.module} +7 -7
  171. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.module.md5 +1 -0
  172. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.module.sha1 +1 -0
  173. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.module.sha256 +1 -0
  174. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.module.sha512 +1 -0
  175. package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.pom → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.pom} +1 -1
  176. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.pom.md5 +1 -0
  177. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.pom.sha1 +1 -0
  178. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.pom.sha256 +1 -0
  179. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.pom.sha512 +1 -0
  180. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml +4 -4
  181. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.md5 +1 -1
  182. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha1 +1 -1
  183. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha256 +1 -1
  184. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha512 +1 -1
  185. package/package.json +11 -13
  186. package/plugin/build/index.js +3 -4
  187. package/plugin/options.json +2 -2
  188. package/plugin/src/index.ts +3 -9
  189. package/build/layouts/stack-utils/StackHeaderBackButton.d.ts +0 -14
  190. package/build/layouts/stack-utils/StackHeaderBackButton.d.ts.map +0 -1
  191. package/build/layouts/stack-utils/StackHeaderBackButton.js +0 -19
  192. package/build/layouts/stack-utils/StackHeaderBackButton.js.map +0 -1
  193. package/build/layouts/stack-utils/StackHeaderButton.d.ts +0 -114
  194. package/build/layouts/stack-utils/StackHeaderButton.d.ts.map +0 -1
  195. package/build/layouts/stack-utils/StackHeaderButton.js +0 -49
  196. package/build/layouts/stack-utils/StackHeaderButton.js.map +0 -1
  197. package/build/layouts/stack-utils/StackHeaderLeftRight.d.ts +0 -119
  198. package/build/layouts/stack-utils/StackHeaderLeftRight.d.ts.map +0 -1
  199. package/build/layouts/stack-utils/StackHeaderLeftRight.js +0 -206
  200. package/build/layouts/stack-utils/StackHeaderLeftRight.js.map +0 -1
  201. package/build/layouts/stack-utils/StackHeaderMenu.d.ts.map +0 -1
  202. package/build/layouts/stack-utils/StackHeaderMenu.js +0 -214
  203. package/build/layouts/stack-utils/StackHeaderMenu.js.map +0 -1
  204. package/build/layouts/stack-utils/StackHeaderSpacer.d.ts +0 -46
  205. package/build/layouts/stack-utils/StackHeaderSpacer.d.ts.map +0 -1
  206. package/build/layouts/stack-utils/StackHeaderSpacer.js +0 -44
  207. package/build/layouts/stack-utils/StackHeaderSpacer.js.map +0 -1
  208. package/build/layouts/stack-utils/StackHeaderTitle.d.ts +0 -22
  209. package/build/layouts/stack-utils/StackHeaderTitle.d.ts.map +0 -1
  210. package/build/layouts/stack-utils/StackHeaderTitle.js +0 -36
  211. package/build/layouts/stack-utils/StackHeaderTitle.js.map +0 -1
  212. package/build/layouts/stack-utils/StackHeaderView.d.ts.map +0 -1
  213. package/build/layouts/stack-utils/StackHeaderView.js +0 -56
  214. package/build/layouts/stack-utils/StackHeaderView.js.map +0 -1
  215. package/build/toolbar/elements.d.ts +0 -417
  216. package/build/toolbar/elements.d.ts.map +0 -1
  217. package/build/toolbar/elements.js +0 -188
  218. package/build/toolbar/elements.js.map +0 -1
  219. package/build/toolbar/index.d.ts +0 -42
  220. package/build/toolbar/index.d.ts.map +0 -1
  221. package/build/toolbar/index.js +0 -49
  222. package/build/toolbar/index.js.map +0 -1
  223. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.module.md5 +0 -1
  224. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.module.sha1 +0 -1
  225. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.module.sha256 +0 -1
  226. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.module.sha512 +0 -1
  227. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.pom.md5 +0 -1
  228. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.pom.sha1 +0 -1
  229. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.pom.sha256 +0 -1
  230. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.pom.sha512 +0 -1
  231. package/unstable-toolbar.d.ts +0 -1
  232. package/unstable-toolbar.js +0 -1
  233. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86-sources.jar → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28-sources.jar} +0 -0
  234. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86-sources.jar.md5 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28-sources.jar.md5} +0 -0
  235. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86-sources.jar.sha1 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28-sources.jar.sha1} +0 -0
  236. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86-sources.jar.sha256 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28-sources.jar.sha256} +0 -0
  237. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86-sources.jar.sha512 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28-sources.jar.sha512} +0 -0
  238. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.aar → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.aar} +0 -0
  239. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.aar.md5 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.aar.md5} +0 -0
  240. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.aar.sha1 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.aar.sha1} +0 -0
  241. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.aar.sha256 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.aar.sha256} +0 -0
  242. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20260113-4879b86/expo.modules.router-7.0.0-canary-20260113-4879b86.aar.sha512 → 7.0.0-canary-20260119-70f7c28/expo.modules.router-7.0.0-canary-20260119-70f7c28.aar.sha512} +0 -0
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StackHeaderButton = void 0;
4
- exports.convertStackHeaderButtonPropsToRNHeaderItem = convertStackHeaderButtonPropsToRNHeaderItem;
5
- const shared_1 = require("./shared");
6
- /**
7
- * A header button used inside `Stack.Header.Left` or `Stack.Header.Right`.
8
- *
9
- * @example
10
- * ```tsx
11
- * import { Stack } from 'expo-router';
12
- *
13
- * export default function Screen() {
14
- * return (
15
- * <>
16
- * <ScreenContent />
17
- * <Stack.Screen>
18
- * <Stack.Header>
19
- * <Stack.Header.Left>
20
- * <Stack.Header.Button tintColor="blue" icon="arrow.left.circle" onPress={() => alert('Left pressed')} />
21
- * <Stack.Header.Button style={{ color: 'green' }} onPress={() => alert('2 pressed')}>
22
- * <Stack.Header.Label>2</Stack.Header.Label>
23
- * </Stack.Header.Button>
24
- * </Stack.Header.Left>
25
- * </Stack.Header>
26
- * </Stack.Screen>
27
- * </>
28
- * );
29
- * }
30
- * ```
31
- *
32
- * @see [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/toolbars) for more information about navigation bar items on iOS.
33
- *
34
- * @platform ios
35
- */
36
- const StackHeaderButton = () => null;
37
- exports.StackHeaderButton = StackHeaderButton;
38
- function convertStackHeaderButtonPropsToRNHeaderItem(props) {
39
- if (props.hidden) {
40
- return undefined;
41
- }
42
- return {
43
- ...(0, shared_1.convertStackHeaderSharedPropsToRNSharedHeaderItem)(props),
44
- type: 'button',
45
- onPress: props.onPress ?? (() => { }),
46
- selected: !!props.selected,
47
- };
48
- }
49
- //# sourceMappingURL=StackHeaderButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackHeaderButton.js","sourceRoot":"","sources":["../../../src/layouts/stack-utils/StackHeaderButton.tsx"],"names":[],"mappings":";;;AAuHA,kGAYC;AAhID,qCAGkB;AAiFlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACI,MAAM,iBAAiB,GAAqC,GAAG,EAAE,CAAC,IAAI,CAAC;AAAjE,QAAA,iBAAiB,qBAAgD;AAE9E,SAAgB,2CAA2C,CACzD,KAA6B;IAE7B,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO;QACL,GAAG,IAAA,0DAAiD,EAAC,KAAK,CAAC;QAC3D,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;QACpC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["import type { NativeStackHeaderItemButton } from '@react-navigation/native-stack';\nimport type { ReactNode } from 'react';\n\nimport {\n convertStackHeaderSharedPropsToRNSharedHeaderItem,\n type StackHeaderItemSharedProps,\n} from './shared';\n\nexport interface StackHeaderButtonProps {\n accessibilityLabel?: string;\n accessibilityHint?: string;\n /**\n * There are two ways to specify the content of the header item:\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * ...\n * <Stack.Header.Button icon=\"star.fill\">As text passed as children</Stack.Header.Button>\n * ```\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * ...\n * <Stack.Header.Button>\n * <Stack.Header.Icon sf=\"star.fill\" />\n * <Stack.Header.Label>As components</Stack.Header.Label>\n * <Stack.Header.Badge>3</Stack.Header.Badge>\n * </Stack.Header.Button>\n * ```\n *\n * **Note**: When icon is used, the label will not be shown and will be used for accessibility purposes only.\n */\n children?: ReactNode;\n disabled?: boolean;\n /**\n * Whether the button should be hidden.\n *\n * @default false\n */\n hidden?: boolean;\n /**\n * Whether to hide the shared background.\n *\n * @see [Official Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground) for more information.\n *\n * @platform iOS 26+\n */\n hidesSharedBackground?: boolean;\n /**\n * Icon to display in the button.\n *\n * Can be a string representing an SFSymbol or an image source.\n */\n icon?: StackHeaderItemSharedProps['icon'];\n onPress?: () => void;\n /**\n * Whether to separate the background of this item from other header items.\n *\n * @default false\n */\n separateBackground?: boolean;\n /**\n * Whether the button is in a selected state\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/isselected) for more information.\n */\n selected?: boolean;\n /**\n * Style for the label of the header item.\n */\n style?: StackHeaderItemSharedProps['style'];\n /**\n * The tint color to apply to the button item\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor) for more information.\n */\n tintColor?: StackHeaderItemSharedProps['tintColor'];\n /**\n * @default 'plain'\n */\n variant?: StackHeaderItemSharedProps['variant'];\n}\n\n/**\n * A header button used inside `Stack.Header.Left` or `Stack.Header.Right`.\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Screen() {\n * return (\n * <>\n * <ScreenContent />\n * <Stack.Screen>\n * <Stack.Header>\n * <Stack.Header.Left>\n * <Stack.Header.Button tintColor=\"blue\" icon=\"arrow.left.circle\" onPress={() => alert('Left pressed')} />\n * <Stack.Header.Button style={{ color: 'green' }} onPress={() => alert('2 pressed')}>\n * <Stack.Header.Label>2</Stack.Header.Label>\n * </Stack.Header.Button>\n * </Stack.Header.Left>\n * </Stack.Header>\n * </Stack.Screen>\n * </>\n * );\n * }\n * ```\n *\n * @see [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/toolbars) for more information about navigation bar items on iOS.\n *\n * @platform ios\n */\nexport const StackHeaderButton: React.FC<StackHeaderButtonProps> = () => null;\n\nexport function convertStackHeaderButtonPropsToRNHeaderItem(\n props: StackHeaderButtonProps\n): NativeStackHeaderItemButton | undefined {\n if (props.hidden) {\n return undefined;\n }\n return {\n ...convertStackHeaderSharedPropsToRNSharedHeaderItem(props),\n type: 'button',\n onPress: props.onPress ?? (() => {}),\n selected: !!props.selected,\n };\n}\n"]}
@@ -1,119 +0,0 @@
1
- import { NativeStackNavigationOptions } from '@react-navigation/native-stack';
2
- import React, { type ReactNode } from 'react';
3
- export interface StackHeaderLeftProps {
4
- /**
5
- * Child elements to compose the left area of the header. Can include Stack.Header.Button,
6
- * Stack.Header.Menu, Stack.Header.Item, and Stack.Header.Spacer components.
7
- */
8
- children?: ReactNode;
9
- /**
10
- * When `true`, renders children as a custom component in the header left area,
11
- * replacing the default header left layout.
12
- *
13
- * @default false
14
- */
15
- asChild?: boolean;
16
- }
17
- export interface StackHeaderRightProps {
18
- /**
19
- * Child elements to compose the right area of the header. Can include Stack.Header.Button,
20
- * Stack.Header.Menu, Stack.Header.Item, and Stack.Header.Spacer components.
21
- */
22
- children?: ReactNode;
23
- /**
24
- * When `true`, renders children as a custom component in the header right area,
25
- * replacing the default header right layout.
26
- *
27
- * @default false
28
- */
29
- asChild?: boolean;
30
- }
31
- /**
32
- * The component used to configure the left area of the stack header.
33
- *
34
- * When used inside a screen, it allows you to customize the left side of the header dynamically.
35
- *
36
- * @example
37
- * ```tsx
38
- * import { Stack } from 'expo-router';
39
- *
40
- * export default function Page() {
41
- * return (
42
- * <>
43
- * <Stack.Header.Left>
44
- * <Stack.Header.Button onPress={() => alert('Left button pressed!')} />
45
- * </Stack.Header.Left>
46
- * <ScreenContent />
47
- * </>
48
- * );
49
- * }
50
- * ```
51
- *
52
- * When used inside the layout, it needs to be wrapped in `Stack.Header` to take effect.
53
- *
54
- * @example
55
- * ```tsx
56
- * import { Stack } from 'expo-router';
57
- *
58
- * export default function Layout() {
59
- * return (
60
- * <Stack>
61
- * <Stack.Screen name="index">
62
- * <Stack.Header>
63
- * <Stack.Header.Left>
64
- * <Stack.Header.Button onPress={() => alert('Left button pressed!')} />
65
- * </Stack.Header.Left>
66
- * </Stack.Header>
67
- * </Stack.Screen>
68
- * </Stack>
69
- * );
70
- * }
71
- * ```
72
- */
73
- export declare const StackHeaderLeft: React.FC<StackHeaderLeftProps>;
74
- /**
75
- * The component used to configure the right area of the stack header.
76
- *
77
- * When used inside a screen, it allows you to customize the right side of the header dynamically.
78
- *
79
- * @example
80
- * ```tsx
81
- * import { Stack } from 'expo-router';
82
- *
83
- * export default function Page() {
84
- * return (
85
- * <>
86
- * <Stack.Header.Right>
87
- * <Stack.Header.Button onPress={() => alert('Right button pressed!')} />
88
- * </Stack.Header.Right>
89
- * <ScreenContent />
90
- * </>
91
- * );
92
- * }
93
- * ```
94
- *
95
- * When used inside the layout, it needs to be wrapped in `Stack.Header` to take effect.
96
- *
97
- * @example
98
- * ```tsx
99
- * import { Stack } from 'expo-router';
100
- *
101
- * export default function Layout() {
102
- * return (
103
- * <Stack>
104
- * <Stack.Screen name="index">
105
- * <Stack.Header>
106
- * <Stack.Header.Right>
107
- * <Stack.Header.Button onPress={() => alert('Right button pressed!')} />
108
- * </Stack.Header.Right>
109
- * </Stack.Header>
110
- * </Stack.Screen>
111
- * </Stack>
112
- * );
113
- * }
114
- * ```
115
- */
116
- export declare const StackHeaderRight: React.FC<StackHeaderRightProps>;
117
- export declare function appendStackHeaderRightPropsToOptions(options: NativeStackNavigationOptions, props: StackHeaderRightProps): NativeStackNavigationOptions;
118
- export declare function appendStackHeaderLeftPropsToOptions(options: NativeStackNavigationOptions, props: StackHeaderLeftProps): NativeStackNavigationOptions;
119
- //# sourceMappingURL=StackHeaderLeftRight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackHeaderLeftRight.d.ts","sourceRoot":"","sources":["../../../src/layouts/stack-utils/StackHeaderLeftRight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAgBxE,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAK1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAK5D,CAAC;AAiDF,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,4BAA4B,EACrC,KAAK,EAAE,qBAAqB,GAC3B,4BAA4B,CAe9B;AAED,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,4BAA4B,EACrC,KAAK,EAAE,oBAAoB,GAC1B,4BAA4B,CAW9B"}
@@ -1,206 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.StackHeaderRight = exports.StackHeaderLeft = void 0;
37
- exports.appendStackHeaderRightPropsToOptions = appendStackHeaderRightPropsToOptions;
38
- exports.appendStackHeaderLeftPropsToOptions = appendStackHeaderLeftPropsToOptions;
39
- const react_1 = __importStar(require("react"));
40
- const react_2 = require("react");
41
- const StackHeaderButton_1 = require("./StackHeaderButton");
42
- const StackHeaderMenu_1 = require("./StackHeaderMenu");
43
- const StackHeaderSpacer_1 = require("./StackHeaderSpacer");
44
- const StackHeaderView_1 = require("./StackHeaderView");
45
- const children_1 = require("../../utils/children");
46
- const Screen_1 = require("../../views/Screen");
47
- /**
48
- * The component used to configure the left area of the stack header.
49
- *
50
- * When used inside a screen, it allows you to customize the left side of the header dynamically.
51
- *
52
- * @example
53
- * ```tsx
54
- * import { Stack } from 'expo-router';
55
- *
56
- * export default function Page() {
57
- * return (
58
- * <>
59
- * <Stack.Header.Left>
60
- * <Stack.Header.Button onPress={() => alert('Left button pressed!')} />
61
- * </Stack.Header.Left>
62
- * <ScreenContent />
63
- * </>
64
- * );
65
- * }
66
- * ```
67
- *
68
- * When used inside the layout, it needs to be wrapped in `Stack.Header` to take effect.
69
- *
70
- * @example
71
- * ```tsx
72
- * import { Stack } from 'expo-router';
73
- *
74
- * export default function Layout() {
75
- * return (
76
- * <Stack>
77
- * <Stack.Screen name="index">
78
- * <Stack.Header>
79
- * <Stack.Header.Left>
80
- * <Stack.Header.Button onPress={() => alert('Left button pressed!')} />
81
- * </Stack.Header.Left>
82
- * </Stack.Header>
83
- * </Stack.Screen>
84
- * </Stack>
85
- * );
86
- * }
87
- * ```
88
- */
89
- const StackHeaderLeft = (props) => {
90
- // This component will only render when used inside a page
91
- // but only if it is not wrapped in Stack.Screen.Header
92
- const updatedOptions = (0, react_2.useMemo)(() => appendStackHeaderLeftPropsToOptions({}, props), [props]);
93
- return <Screen_1.Screen options={updatedOptions}/>;
94
- };
95
- exports.StackHeaderLeft = StackHeaderLeft;
96
- /**
97
- * The component used to configure the right area of the stack header.
98
- *
99
- * When used inside a screen, it allows you to customize the right side of the header dynamically.
100
- *
101
- * @example
102
- * ```tsx
103
- * import { Stack } from 'expo-router';
104
- *
105
- * export default function Page() {
106
- * return (
107
- * <>
108
- * <Stack.Header.Right>
109
- * <Stack.Header.Button onPress={() => alert('Right button pressed!')} />
110
- * </Stack.Header.Right>
111
- * <ScreenContent />
112
- * </>
113
- * );
114
- * }
115
- * ```
116
- *
117
- * When used inside the layout, it needs to be wrapped in `Stack.Header` to take effect.
118
- *
119
- * @example
120
- * ```tsx
121
- * import { Stack } from 'expo-router';
122
- *
123
- * export default function Layout() {
124
- * return (
125
- * <Stack>
126
- * <Stack.Screen name="index">
127
- * <Stack.Header>
128
- * <Stack.Header.Right>
129
- * <Stack.Header.Button onPress={() => alert('Right button pressed!')} />
130
- * </Stack.Header.Right>
131
- * </Stack.Header>
132
- * </Stack.Screen>
133
- * </Stack>
134
- * );
135
- * }
136
- * ```
137
- */
138
- const StackHeaderRight = (props) => {
139
- // This component will only render when used inside a page
140
- // but only if it is not wrapped in Stack.Screen.Header
141
- const updatedOptions = (0, react_2.useMemo)(() => appendStackHeaderRightPropsToOptions({}, props), [props]);
142
- return <Screen_1.Screen options={updatedOptions}/>;
143
- };
144
- exports.StackHeaderRight = StackHeaderRight;
145
- function convertHeaderRightLeftChildrenToUnstableItems(children, side) {
146
- const allChildren = react_1.default.Children.toArray(children);
147
- const actions = allChildren.filter((child) => (0, children_1.isChildOfType)(child, StackHeaderButton_1.StackHeaderButton) ||
148
- (0, children_1.isChildOfType)(child, StackHeaderMenu_1.StackHeaderMenu) ||
149
- (0, children_1.isChildOfType)(child, StackHeaderSpacer_1.StackHeaderSpacer) ||
150
- (0, children_1.isChildOfType)(child, StackHeaderView_1.StackHeaderView));
151
- if (actions.length !== allChildren.length && process.env.NODE_ENV !== 'production') {
152
- const otherElements = allChildren
153
- .filter((child) => !actions.some((action) => action === child))
154
- .map((e) => {
155
- if ((0, react_1.isValidElement)(e)) {
156
- if (e.type === react_1.Fragment) {
157
- return '<Fragment>';
158
- }
159
- else {
160
- return e.type?.name ?? e.type;
161
- }
162
- }
163
- return String(e);
164
- });
165
- console.warn(`Stack.Header.${side} only accepts <Stack.Header.Button>, <Stack.Header.Menu>, <Menu>, and <Stack.Header.Item> as children. Found invalid children: ${otherElements.join(', ')}`);
166
- }
167
- return () => actions
168
- .map((action) => {
169
- if ((0, children_1.isChildOfType)(action, StackHeaderButton_1.StackHeaderButton)) {
170
- return (0, StackHeaderButton_1.convertStackHeaderButtonPropsToRNHeaderItem)(action.props);
171
- }
172
- else if ((0, children_1.isChildOfType)(action, StackHeaderMenu_1.StackHeaderMenu)) {
173
- return (0, StackHeaderMenu_1.convertStackHeaderMenuPropsToRNHeaderItem)(action.props);
174
- }
175
- else if ((0, children_1.isChildOfType)(action, StackHeaderSpacer_1.StackHeaderSpacer)) {
176
- return (0, StackHeaderSpacer_1.convertStackHeaderSpacerPropsToRNHeaderItem)(action.props);
177
- }
178
- return (0, StackHeaderView_1.convertStackHeaderViewPropsToRNHeaderItem)(action.props);
179
- })
180
- .filter((item) => !!item);
181
- }
182
- function appendStackHeaderRightPropsToOptions(options, props) {
183
- if (props.asChild) {
184
- return {
185
- ...options,
186
- headerRight: () => props.children,
187
- };
188
- }
189
- return {
190
- ...options,
191
- unstable_headerRightItems: convertHeaderRightLeftChildrenToUnstableItems(props.children, 'Right'),
192
- };
193
- }
194
- function appendStackHeaderLeftPropsToOptions(options, props) {
195
- if (props.asChild) {
196
- return {
197
- ...options,
198
- headerLeft: () => props.children,
199
- };
200
- }
201
- return {
202
- ...options,
203
- unstable_headerLeftItems: convertHeaderRightLeftChildrenToUnstableItems(props.children, 'Left'),
204
- };
205
- }
206
- //# sourceMappingURL=StackHeaderLeftRight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackHeaderLeftRight.js","sourceRoot":"","sources":["../../../src/layouts/stack-utils/StackHeaderLeftRight.tsx"],"names":[],"mappings":"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","sourcesContent":["import { NativeStackNavigationOptions } from '@react-navigation/native-stack';\nimport React, { Fragment, isValidElement, type ReactNode } from 'react';\nimport { useMemo } from 'react';\n\nimport {\n convertStackHeaderButtonPropsToRNHeaderItem,\n StackHeaderButton,\n} from './StackHeaderButton';\nimport { convertStackHeaderMenuPropsToRNHeaderItem, StackHeaderMenu } from './StackHeaderMenu';\nimport {\n convertStackHeaderSpacerPropsToRNHeaderItem,\n StackHeaderSpacer,\n} from './StackHeaderSpacer';\nimport { convertStackHeaderViewPropsToRNHeaderItem, StackHeaderView } from './StackHeaderView';\nimport { isChildOfType } from '../../utils/children';\nimport { Screen } from '../../views/Screen';\n\nexport interface StackHeaderLeftProps {\n /**\n * Child elements to compose the left area of the header. Can include Stack.Header.Button,\n * Stack.Header.Menu, Stack.Header.Item, and Stack.Header.Spacer components.\n */\n children?: ReactNode;\n /**\n * When `true`, renders children as a custom component in the header left area,\n * replacing the default header left layout.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nexport interface StackHeaderRightProps {\n /**\n * Child elements to compose the right area of the header. Can include Stack.Header.Button,\n * Stack.Header.Menu, Stack.Header.Item, and Stack.Header.Spacer components.\n */\n children?: ReactNode;\n /**\n * When `true`, renders children as a custom component in the header right area,\n * replacing the default header right layout.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\n/**\n * The component used to configure the left area of the stack header.\n *\n * When used inside a screen, it allows you to customize the left side of the header dynamically.\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Page() {\n * return (\n * <>\n * <Stack.Header.Left>\n * <Stack.Header.Button onPress={() => alert('Left button pressed!')} />\n * </Stack.Header.Left>\n * <ScreenContent />\n * </>\n * );\n * }\n * ```\n *\n * When used inside the layout, it needs to be wrapped in `Stack.Header` to take effect.\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Layout() {\n * return (\n * <Stack>\n * <Stack.Screen name=\"index\">\n * <Stack.Header>\n * <Stack.Header.Left>\n * <Stack.Header.Button onPress={() => alert('Left button pressed!')} />\n * </Stack.Header.Left>\n * </Stack.Header>\n * </Stack.Screen>\n * </Stack>\n * );\n * }\n * ```\n */\nexport const StackHeaderLeft: React.FC<StackHeaderLeftProps> = (props) => {\n // This component will only render when used inside a page\n // but only if it is not wrapped in Stack.Screen.Header\n const updatedOptions = useMemo(() => appendStackHeaderLeftPropsToOptions({}, props), [props]);\n return <Screen options={updatedOptions} />;\n};\n\n/**\n * The component used to configure the right area of the stack header.\n *\n * When used inside a screen, it allows you to customize the right side of the header dynamically.\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Page() {\n * return (\n * <>\n * <Stack.Header.Right>\n * <Stack.Header.Button onPress={() => alert('Right button pressed!')} />\n * </Stack.Header.Right>\n * <ScreenContent />\n * </>\n * );\n * }\n * ```\n *\n * When used inside the layout, it needs to be wrapped in `Stack.Header` to take effect.\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Layout() {\n * return (\n * <Stack>\n * <Stack.Screen name=\"index\">\n * <Stack.Header>\n * <Stack.Header.Right>\n * <Stack.Header.Button onPress={() => alert('Right button pressed!')} />\n * </Stack.Header.Right>\n * </Stack.Header>\n * </Stack.Screen>\n * </Stack>\n * );\n * }\n * ```\n */\nexport const StackHeaderRight: React.FC<StackHeaderRightProps> = (props) => {\n // This component will only render when used inside a page\n // but only if it is not wrapped in Stack.Screen.Header\n const updatedOptions = useMemo(() => appendStackHeaderRightPropsToOptions({}, props), [props]);\n return <Screen options={updatedOptions} />;\n};\n\nfunction convertHeaderRightLeftChildrenToUnstableItems(\n children: React.ReactNode,\n side: 'Left' | 'Right'\n):\n | NativeStackNavigationOptions['unstable_headerRightItems']\n | NativeStackNavigationOptions['unstable_headerLeftItems'] {\n const allChildren = React.Children.toArray(children);\n const actions = allChildren.filter(\n (child) =>\n isChildOfType(child, StackHeaderButton) ||\n isChildOfType(child, StackHeaderMenu) ||\n isChildOfType(child, StackHeaderSpacer) ||\n isChildOfType(child, StackHeaderView)\n );\n if (actions.length !== allChildren.length && process.env.NODE_ENV !== 'production') {\n const otherElements = allChildren\n .filter((child) => !actions.some((action) => action === child))\n .map((e) => {\n if (isValidElement(e)) {\n if (e.type === Fragment) {\n return '<Fragment>';\n } else {\n return (e.type as { name: string })?.name ?? e.type;\n }\n }\n\n return String(e);\n });\n console.warn(\n `Stack.Header.${side} only accepts <Stack.Header.Button>, <Stack.Header.Menu>, <Menu>, and <Stack.Header.Item> as children. Found invalid children: ${otherElements.join(', ')}`\n );\n }\n return () =>\n actions\n .map((action) => {\n if (isChildOfType(action, StackHeaderButton)) {\n return convertStackHeaderButtonPropsToRNHeaderItem(action.props);\n } else if (isChildOfType(action, StackHeaderMenu)) {\n return convertStackHeaderMenuPropsToRNHeaderItem(action.props);\n } else if (isChildOfType(action, StackHeaderSpacer)) {\n return convertStackHeaderSpacerPropsToRNHeaderItem(action.props);\n }\n return convertStackHeaderViewPropsToRNHeaderItem(action.props);\n })\n .filter((item) => !!item);\n}\n\nexport function appendStackHeaderRightPropsToOptions(\n options: NativeStackNavigationOptions,\n props: StackHeaderRightProps\n): NativeStackNavigationOptions {\n if (props.asChild) {\n return {\n ...options,\n headerRight: () => props.children,\n };\n }\n\n return {\n ...options,\n unstable_headerRightItems: convertHeaderRightLeftChildrenToUnstableItems(\n props.children,\n 'Right'\n ),\n };\n}\n\nexport function appendStackHeaderLeftPropsToOptions(\n options: NativeStackNavigationOptions,\n props: StackHeaderLeftProps\n): NativeStackNavigationOptions {\n if (props.asChild) {\n return {\n ...options,\n headerLeft: () => props.children,\n };\n }\n return {\n ...options,\n unstable_headerLeftItems: convertHeaderRightLeftChildrenToUnstableItems(props.children, 'Left'),\n };\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackHeaderMenu.d.ts","sourceRoot":"","sources":["../../../src/layouts/stack-utils/StackHeaderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,+BAA+B,EAEhC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC5C;;;;OAIG;IACH,SAAS,CAAC,EAAE,0BAA0B,CAAC,WAAW,CAAC,CAAC;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;CACjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAQ,CAAC;AAEpE,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,oBAAoB,GAC1B,yBAAyB,GAAG,SAAS,CA2BvC;AAuDD,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,mBAAmB,CAAC;IACtC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAAc,CAAC;AAEtF,wBAAgB,+CAA+C,CAC7D,KAAK,EAAE,0BAA0B,GAChC,+BAA+B,CAwBjC"}
@@ -1,214 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StackHeaderMenuAction = exports.StackHeaderMenu = void 0;
4
- exports.convertStackHeaderMenuPropsToRNHeaderItem = convertStackHeaderMenuPropsToRNHeaderItem;
5
- exports.convertStackHeaderMenuActionPropsToRNHeaderItem = convertStackHeaderMenuActionPropsToRNHeaderItem;
6
- const react_1 = require("react");
7
- const shared_1 = require("./shared");
8
- const primitives_1 = require("../../primitives");
9
- const children_1 = require("../../utils/children");
10
- /**
11
- * Component representing menu for `Stack.Header.Right` or `Stack.Header.Left`.
12
- *
13
- * Use as `Stack.Header.Menu` to provide top-level menus on iOS header bars.
14
- * It accepts `Stack.Header.MenuAction` and nested `Stack.Header.Menu`
15
- * elements. Menu can be configured using both component props and child
16
- * elements.
17
- *
18
- * @example
19
- * ```tsx
20
- * import { Stack } from 'expo-router';
21
- * import { Alert } from 'react-native';
22
- *
23
- * export default function Screen() {
24
- * return (
25
- * <>
26
- * <ScreenContent />
27
- * <Stack.Screen>
28
- * <Stack.Header>
29
- * <Stack.Header.Right>
30
- * <Stack.Header.Menu>
31
- * <Stack.Header.Label>Menu</Stack.Header.Label>
32
- * <Stack.Header.Icon sf="ellipsis.circle" />
33
- * <Stack.Header.MenuAction onPress={() => Alert.alert('Action 1 pressed!')}>
34
- * Action 1
35
- * </Stack.Header.MenuAction>
36
- * <Stack.Header.MenuAction isOn icon="star.fill">
37
- * Action 2
38
- * </Stack.Header.MenuAction>
39
- * <Stack.Header.Menu inline>
40
- * <Stack.Header.MenuAction isOn>Sub Action</Stack.Header.MenuAction>
41
- * </Stack.Header.Menu>
42
- * </Stack.Header.Menu>
43
- * </Stack.Header.Right>
44
- * </Stack.Header>
45
- * </Stack.Screen>
46
- * </>
47
- * );
48
- * }
49
- * ```
50
- *
51
- * @example
52
- * ```tsx
53
- * import { Stack } from 'expo-router';
54
- * import { Text } from 'react-native';
55
- *
56
- * export default function Screen() {
57
- * return (
58
- * <>
59
- * <ScreenContent />
60
- * <Stack.Screen>
61
- * <Stack.Header>
62
- * <Stack.Header.Left>
63
- * <Stack.Header.Menu>
64
- * <Stack.Header.MenuAction onPress={() => Alert.alert('Action 1 pressed!')}>
65
- * Action 1
66
- * </Stack.Header.MenuAction>
67
- * <Stack.Header.Menu inline palette title="Icons">
68
- * <Stack.Header.MenuAction isOn icon="star.fill" />
69
- * <Stack.Header.MenuAction icon="heart.fill" />
70
- * </Stack.Header.Menu>
71
- * </Stack.Header.Menu>
72
- * </Stack.Header.Left>
73
- * </Stack.Header>
74
- * </Stack.Screen>
75
- * </>
76
- * );
77
- * }
78
- * ```
79
- *
80
- * @see [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/menus) for more information about menus on iOS.
81
- *
82
- * @platform ios
83
- */
84
- exports.StackHeaderMenu = primitives_1.Menu;
85
- function convertStackHeaderMenuPropsToRNHeaderItem(props) {
86
- if (props.hidden) {
87
- return undefined;
88
- }
89
- const { title, ...rest } = props;
90
- const actions = react_1.Children.toArray(props.children).filter((child) => (0, children_1.isChildOfType)(child, exports.StackHeaderMenuAction) || (0, children_1.isChildOfType)(child, exports.StackHeaderMenu));
91
- const item = {
92
- ...(0, shared_1.convertStackHeaderSharedPropsToRNSharedHeaderItem)(rest),
93
- type: 'menu',
94
- menu: {
95
- items: actions
96
- .map((action) => {
97
- if ((0, children_1.isChildOfType)(action, exports.StackHeaderMenu)) {
98
- return convertStackHeaderSubmenuMenuPropsToRNHeaderItem(action.props);
99
- }
100
- return convertStackHeaderMenuActionPropsToRNHeaderItem(action.props);
101
- })
102
- .filter((i) => !!i),
103
- },
104
- };
105
- if (title) {
106
- item.menu.title = title;
107
- }
108
- return item;
109
- }
110
- function convertStackHeaderSubmenuMenuPropsToRNHeaderItem(props) {
111
- if (props.hidden) {
112
- return undefined;
113
- }
114
- // Removing children. Otherwise the buttons will be broken
115
- const sharedProps = (0, shared_1.convertStackHeaderSharedPropsToRNSharedHeaderItem)(props);
116
- const actions = react_1.Children.toArray(props.children).filter((child) => (0, children_1.isChildOfType)(child, exports.StackHeaderMenuAction) || (0, children_1.isChildOfType)(child, exports.StackHeaderMenu));
117
- // TODO: Remove Pick<HeaderBarButtonItemSubmenu> when this PR is merged and released in react-navigation:
118
- // https://github.com/react-navigation/react-navigation/pull/12895
119
- const item = {
120
- type: 'submenu',
121
- items: actions
122
- .map((action) => {
123
- if ((0, children_1.isChildOfType)(action, exports.StackHeaderMenu)) {
124
- return convertStackHeaderSubmenuMenuPropsToRNHeaderItem(action.props);
125
- }
126
- return convertStackHeaderMenuActionPropsToRNHeaderItem(action.props);
127
- })
128
- .filter((i) => !!i),
129
- label: sharedProps.label || props.title || '',
130
- };
131
- if (props.inline !== undefined) {
132
- item.displayInline = props.inline;
133
- }
134
- if (props.palette !== undefined) {
135
- item.displayAsPalette = props.palette;
136
- }
137
- if (props.destructive !== undefined) {
138
- item.destructive = props.destructive;
139
- }
140
- // TODO: Add elementSize to react-native-screens
141
- if (sharedProps.icon) {
142
- // Only SF Symbols are supported in submenu icons
143
- if (sharedProps.icon.type === 'sfSymbol') {
144
- item.icon = sharedProps.icon;
145
- }
146
- else {
147
- console.warn('When Icon is used inside Stack.Header.Menu used as a submenu, only sfSymbol icons are supported. This is a limitation of React Native Screens.');
148
- }
149
- }
150
- return item;
151
- }
152
- /**
153
- * An action item for a `Stack.Header.Menu`.
154
- *
155
- * @example
156
- * ```tsx
157
- * import React from 'react';
158
- * import { Alert } from 'react-native';
159
- * import { Stack, Label, Icon } from 'expo-router';
160
- *
161
- * export default function ExampleScreen() {
162
- * return (
163
- * <>
164
- * <ScreenContent />
165
- * <Stack.Screen>
166
- * <Stack.Header>
167
- * <Stack.Header.Right>
168
- * <Stack.Header.Menu icon="ellipsis.circle">
169
- * <Stack.Header.MenuAction onPress={() => Alert.alert('Action 1 pressed!')}>
170
- * Action 1
171
- * </Stack.Header.MenuAction>
172
- * <Stack.Header.MenuAction isOn onPress={() => Alert.alert('Action 2 pressed!')}>
173
- * <Label>Action 2</Label>
174
- * <Icon sf="star.fill" />
175
- * </Stack.Header.MenuAction>
176
- * </Stack.Header.Menu>
177
- * </Stack.Header.Right>
178
- * </Stack.Header>
179
- * </Stack.Screen>
180
- * </>
181
- * );
182
- * }
183
- * ```
184
- *
185
- * @see [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/menus) for more information about menus on iOS.
186
- *
187
- * @platform ios
188
- */
189
- exports.StackHeaderMenuAction = primitives_1.MenuAction;
190
- function convertStackHeaderMenuActionPropsToRNHeaderItem(props) {
191
- const { children, isOn, unstable_keepPresented, icon, ...rest } = props;
192
- const sharedProps = (0, shared_1.convertStackHeaderSharedPropsToRNSharedHeaderItem)(props);
193
- const item = {
194
- ...rest,
195
- type: 'action',
196
- label: sharedProps.label,
197
- state: isOn ? 'on' : 'off',
198
- onPress: props.onPress ?? (() => { }),
199
- };
200
- if (unstable_keepPresented !== undefined) {
201
- item.keepsMenuPresented = unstable_keepPresented;
202
- }
203
- if (sharedProps.icon) {
204
- // Only SF Symbols are supported in action icons
205
- if (sharedProps.icon.type === 'sfSymbol') {
206
- item.icon = sharedProps.icon;
207
- }
208
- else {
209
- console.warn('When Icon is used inside Stack.Header.Menu.Action, only sfSymbol icons are supported. This is a limitation of React Native Screens.');
210
- }
211
- }
212
- return item;
213
- }
214
- //# sourceMappingURL=StackHeaderMenu.js.map