@react-navigation/native 8.0.0-alpha.5 → 8.0.0-alpha.50

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 (479) hide show
  1. package/android/build.gradle +8 -7
  2. package/android/src/main/java/org/reactnavigation/MaterialSymbolModule.kt +25 -10
  3. package/android/src/main/java/org/reactnavigation/MaterialSymbolTypeface.kt +71 -24
  4. package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +24 -5
  5. package/android/src/main/java/org/reactnavigation/MaterialSymbolViewManager.kt +14 -7
  6. package/android/src/main/java/org/reactnavigation/ReactNavigationPackage.kt +3 -1
  7. package/assets/fonts/MaterialSymbolsOutlined.codepoints +190 -24
  8. package/assets/fonts/MaterialSymbolsOutlined_100.ttf +0 -0
  9. package/assets/fonts/MaterialSymbolsOutlined_200.ttf +0 -0
  10. package/assets/fonts/MaterialSymbolsOutlined_300.ttf +0 -0
  11. package/assets/fonts/MaterialSymbolsOutlined_400.ttf +0 -0
  12. package/assets/fonts/MaterialSymbolsOutlined_500.ttf +0 -0
  13. package/assets/fonts/MaterialSymbolsOutlined_600.ttf +0 -0
  14. package/assets/fonts/MaterialSymbolsOutlined_700.ttf +0 -0
  15. package/assets/fonts/MaterialSymbolsRounded.codepoints +190 -24
  16. package/assets/fonts/MaterialSymbolsRounded_100.ttf +0 -0
  17. package/assets/fonts/MaterialSymbolsRounded_200.ttf +0 -0
  18. package/assets/fonts/MaterialSymbolsRounded_300.ttf +0 -0
  19. package/assets/fonts/MaterialSymbolsRounded_400.ttf +0 -0
  20. package/assets/fonts/MaterialSymbolsRounded_500.ttf +0 -0
  21. package/assets/fonts/MaterialSymbolsRounded_600.ttf +0 -0
  22. package/assets/fonts/MaterialSymbolsRounded_700.ttf +0 -0
  23. package/assets/fonts/MaterialSymbolsSharp.codepoints +190 -24
  24. package/assets/fonts/MaterialSymbolsSharp_100.ttf +0 -0
  25. package/assets/fonts/MaterialSymbolsSharp_200.ttf +0 -0
  26. package/assets/fonts/MaterialSymbolsSharp_300.ttf +0 -0
  27. package/assets/fonts/MaterialSymbolsSharp_400.ttf +0 -0
  28. package/assets/fonts/MaterialSymbolsSharp_500.ttf +0 -0
  29. package/assets/fonts/MaterialSymbolsSharp_600.ttf +0 -0
  30. package/assets/fonts/MaterialSymbolsSharp_700.ttf +0 -0
  31. package/ios/ReactNavigationCornerInsetView.h +14 -0
  32. package/ios/ReactNavigationCornerInsetView.mm +182 -0
  33. package/ios/ReactNavigationCornerInsetView.swift +193 -0
  34. package/ios/ReactNavigationCornerInsetViewComponentDescriptor.h +23 -0
  35. package/ios/ReactNavigationCornerInsetViewShadowNode.h +27 -0
  36. package/ios/ReactNavigationCornerInsetViewShadowNode.mm +42 -0
  37. package/ios/ReactNavigationCornerInsetViewState.h +19 -0
  38. package/ios/ReactNavigationSFSymbolView.mm +23 -10
  39. package/ios/ReactNavigationSFSymbolView.swift +355 -65
  40. package/lib/module/Link.js +80 -24
  41. package/lib/module/Link.js.map +1 -1
  42. package/lib/module/Link.native.js +72 -0
  43. package/lib/module/Link.native.js.map +1 -0
  44. package/lib/module/NavigationContainer.js +77 -33
  45. package/lib/module/NavigationContainer.js.map +1 -1
  46. package/lib/module/__stubs__/createStackNavigator.js +11 -8
  47. package/lib/module/__stubs__/createStackNavigator.js.map +1 -1
  48. package/lib/module/checkSerializable.js +180 -0
  49. package/lib/module/checkSerializable.js.map +1 -0
  50. package/lib/module/constants.js +5 -0
  51. package/lib/module/constants.js.map +1 -0
  52. package/lib/module/constants.native.js +6 -0
  53. package/lib/module/constants.native.js.map +1 -0
  54. package/lib/module/createMemoryHistory.js +27 -10
  55. package/lib/module/createMemoryHistory.js.map +1 -1
  56. package/lib/module/createStandardNavigationFactories.js +97 -0
  57. package/lib/module/createStandardNavigationFactories.js.map +1 -0
  58. package/lib/module/createStaticNavigation.js +7 -5
  59. package/lib/module/createStaticNavigation.js.map +1 -1
  60. package/lib/module/extractPathFromURL.js +2 -2
  61. package/lib/module/extractPathFromURL.js.map +1 -1
  62. package/lib/module/getStateBreadcrumb.js +37 -0
  63. package/lib/module/getStateBreadcrumb.js.map +1 -0
  64. package/lib/module/getStateFromHref.js +2 -2
  65. package/lib/module/getStateFromHref.js.map +1 -1
  66. package/lib/module/index.js +5 -3
  67. package/lib/module/index.js.map +1 -1
  68. package/lib/module/native/CornerInset.ios.js +69 -0
  69. package/lib/module/native/CornerInset.ios.js.map +1 -0
  70. package/lib/module/native/CornerInset.js +12 -0
  71. package/lib/module/native/CornerInset.js.map +1 -0
  72. package/lib/module/native/MaterialSymbol.android.js +7 -16
  73. package/lib/module/native/MaterialSymbol.android.js.map +1 -1
  74. package/lib/module/native/MaterialSymbol.js.map +1 -1
  75. package/lib/module/native/MaterialSymbolViewNativeComponent.ts +7 -4
  76. package/lib/module/native/ReactNavigationCornerInsetViewNativeComponent.ts +31 -0
  77. package/lib/module/native/SFSymbol.ios.js +37 -18
  78. package/lib/module/native/SFSymbol.ios.js.map +1 -1
  79. package/lib/module/native/SFSymbol.js.map +1 -1
  80. package/lib/module/native/SFSymbolViewNativeComponent.ts +31 -15
  81. package/lib/module/server/ServerContext.js.map +1 -0
  82. package/lib/module/server/index.js +21 -0
  83. package/lib/module/server/index.js.map +1 -0
  84. package/lib/module/theming/DarkTheme.js +5 -5
  85. package/lib/module/theming/DarkTheme.js.map +1 -1
  86. package/lib/module/theming/LightTheme.js +16 -0
  87. package/lib/module/theming/LightTheme.js.map +1 -0
  88. package/lib/module/theming/MaterialFallbackTheme.js +28 -0
  89. package/lib/module/theming/MaterialFallbackTheme.js.map +1 -0
  90. package/lib/module/theming/MaterialTheme.android.js +33 -0
  91. package/lib/module/theming/MaterialTheme.android.js.map +1 -0
  92. package/lib/module/theming/MaterialTheme.js +4 -0
  93. package/lib/module/theming/MaterialTheme.js.map +1 -0
  94. package/lib/module/theming/fonts.js +15 -54
  95. package/lib/module/theming/fonts.js.map +1 -1
  96. package/lib/module/theming/fonts.native.js +42 -0
  97. package/lib/module/theming/fonts.native.js.map +1 -0
  98. package/lib/module/useBackButton.js.map +1 -1
  99. package/lib/module/useBackButton.native.js +4 -1
  100. package/lib/module/useBackButton.native.js.map +1 -1
  101. package/lib/module/useDeepStableValue.js +12 -0
  102. package/lib/module/useDeepStableValue.js.map +1 -0
  103. package/lib/module/useDocumentTitle.js.map +1 -1
  104. package/lib/module/useLinkBuilder.js +17 -17
  105. package/lib/module/useLinkBuilder.js.map +1 -1
  106. package/lib/module/useLinkProps.js +143 -68
  107. package/lib/module/useLinkProps.js.map +1 -1
  108. package/lib/module/useLinkTo.js +5 -5
  109. package/lib/module/useLinkTo.js.map +1 -1
  110. package/lib/module/useLinking.js +268 -58
  111. package/lib/module/useLinking.js.map +1 -1
  112. package/lib/module/useLinking.native.js +31 -12
  113. package/lib/module/useLinking.native.js.map +1 -1
  114. package/lib/module/useLocale.js +1 -1
  115. package/lib/module/useLocale.js.map +1 -1
  116. package/lib/module/useMemoArray.js +25 -0
  117. package/lib/module/useMemoArray.js.map +1 -0
  118. package/lib/module/useRoutePath.js +1 -1
  119. package/lib/module/useRoutePath.js.map +1 -1
  120. package/lib/module/useScrollToTop.js +6 -9
  121. package/lib/module/useScrollToTop.js.map +1 -1
  122. package/lib/module/useThenable.js +8 -6
  123. package/lib/module/useThenable.js.map +1 -1
  124. package/lib/typescript/src/Link.d.ts +17 -9
  125. package/lib/typescript/src/Link.d.ts.map +1 -1
  126. package/lib/typescript/src/Link.native.d.ts +4 -0
  127. package/lib/typescript/src/Link.native.d.ts.map +1 -0
  128. package/lib/typescript/src/LinkingContext.d.ts +2 -2
  129. package/lib/typescript/src/LinkingContext.d.ts.map +1 -1
  130. package/lib/typescript/src/LocaleDirContext.d.ts +1 -1
  131. package/lib/typescript/src/LocaleDirContext.d.ts.map +1 -1
  132. package/lib/typescript/src/NavigationContainer.d.ts +24 -13
  133. package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
  134. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts +6 -9
  135. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +1 -1
  136. package/lib/typescript/src/checkSerializable.d.ts +12 -0
  137. package/lib/typescript/src/checkSerializable.d.ts.map +1 -0
  138. package/lib/typescript/src/constants.d.ts +4 -0
  139. package/lib/typescript/src/constants.d.ts.map +1 -0
  140. package/lib/typescript/src/constants.native.d.ts +4 -0
  141. package/lib/typescript/src/constants.native.d.ts.map +1 -0
  142. package/lib/typescript/src/createMemoryHistory.d.ts +1 -1
  143. package/lib/typescript/src/createMemoryHistory.d.ts.map +1 -1
  144. package/lib/typescript/src/createStandardNavigationFactories.d.ts +33 -0
  145. package/lib/typescript/src/createStandardNavigationFactories.d.ts.map +1 -0
  146. package/lib/typescript/src/createStaticNavigation.d.ts +9 -9
  147. package/lib/typescript/src/createStaticNavigation.d.ts.map +1 -1
  148. package/lib/typescript/src/extractPathFromURL.d.ts +1 -1
  149. package/lib/typescript/src/extractPathFromURL.d.ts.map +1 -1
  150. package/lib/typescript/src/getStateBreadcrumb.d.ts +3 -0
  151. package/lib/typescript/src/getStateBreadcrumb.d.ts.map +1 -0
  152. package/lib/typescript/src/getStateFromHref.d.ts +3 -3
  153. package/lib/typescript/src/getStateFromHref.d.ts.map +1 -1
  154. package/lib/typescript/src/index.d.ts +16 -14
  155. package/lib/typescript/src/index.d.ts.map +1 -1
  156. package/lib/typescript/src/native/CornerInset.d.ts +32 -0
  157. package/lib/typescript/src/native/CornerInset.d.ts.map +1 -0
  158. package/lib/typescript/src/native/CornerInset.ios.d.ts +8 -0
  159. package/lib/typescript/src/native/CornerInset.ios.d.ts.map +1 -0
  160. package/lib/typescript/src/native/MaterialSymbol.android.d.ts +9 -4
  161. package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
  162. package/lib/typescript/src/native/MaterialSymbol.d.ts +8 -3
  163. package/lib/typescript/src/native/MaterialSymbol.d.ts.map +1 -1
  164. package/lib/typescript/src/native/MaterialSymbolData.d.ts +1 -1
  165. package/lib/typescript/src/native/MaterialSymbolData.d.ts.map +1 -1
  166. package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts +3 -3
  167. package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts.map +1 -1
  168. package/lib/typescript/src/native/ReactNavigationCornerInsetViewNativeComponent.d.ts +14 -0
  169. package/lib/typescript/src/native/ReactNavigationCornerInsetViewNativeComponent.d.ts.map +1 -0
  170. package/lib/typescript/src/native/SFSymbol.d.ts +8 -3
  171. package/lib/typescript/src/native/SFSymbol.d.ts.map +1 -1
  172. package/lib/typescript/src/native/SFSymbol.ios.d.ts +9 -4
  173. package/lib/typescript/src/native/SFSymbol.ios.d.ts.map +1 -1
  174. package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts +27 -14
  175. package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts.map +1 -1
  176. package/lib/typescript/src/native/types.d.ts +241 -45
  177. package/lib/typescript/src/native/types.d.ts.map +1 -1
  178. package/lib/typescript/src/{ServerContext.d.ts → server/ServerContext.d.ts} +1 -4
  179. package/lib/typescript/src/server/ServerContext.d.ts.map +1 -0
  180. package/lib/typescript/src/server/index.d.ts +10 -0
  181. package/lib/typescript/src/server/index.d.ts.map +1 -0
  182. package/lib/typescript/src/theming/DarkTheme.d.ts +4 -38
  183. package/lib/typescript/src/theming/DarkTheme.d.ts.map +1 -1
  184. package/lib/typescript/src/theming/LightTheme.d.ts +30 -0
  185. package/lib/typescript/src/theming/LightTheme.d.ts.map +1 -0
  186. package/lib/typescript/src/theming/{DefaultTheme.d.ts → MaterialFallbackTheme.d.ts} +25 -30
  187. package/lib/typescript/src/theming/MaterialFallbackTheme.d.ts.map +1 -0
  188. package/lib/typescript/src/theming/MaterialTheme.android.d.ts +115 -0
  189. package/lib/typescript/src/theming/MaterialTheme.android.d.ts.map +1 -0
  190. package/lib/typescript/src/theming/MaterialTheme.d.ts +2 -0
  191. package/lib/typescript/src/theming/MaterialTheme.d.ts.map +1 -0
  192. package/lib/typescript/src/theming/fonts.d.ts +0 -34
  193. package/lib/typescript/src/theming/fonts.d.ts.map +1 -1
  194. package/lib/typescript/src/theming/fonts.native.d.ts +36 -0
  195. package/lib/typescript/src/theming/fonts.native.d.ts.map +1 -0
  196. package/lib/typescript/src/types.d.ts +27 -21
  197. package/lib/typescript/src/types.d.ts.map +1 -1
  198. package/lib/typescript/src/useBackButton.d.ts +1 -1
  199. package/lib/typescript/src/useBackButton.d.ts.map +1 -1
  200. package/lib/typescript/src/useBackButton.native.d.ts.map +1 -1
  201. package/lib/typescript/src/useDeepStableValue.d.ts +2 -0
  202. package/lib/typescript/src/useDeepStableValue.d.ts.map +1 -0
  203. package/lib/typescript/src/useDocumentTitle.d.ts +2 -2
  204. package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -1
  205. package/lib/typescript/src/useLinkBuilder.d.ts +62 -70
  206. package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
  207. package/lib/typescript/src/useLinkProps.d.ts +36 -12
  208. package/lib/typescript/src/useLinkProps.d.ts.map +1 -1
  209. package/lib/typescript/src/useLinkTo.d.ts.map +1 -1
  210. package/lib/typescript/src/useLinking.d.ts +7 -49
  211. package/lib/typescript/src/useLinking.d.ts.map +1 -1
  212. package/lib/typescript/src/useLinking.native.d.ts +9 -83
  213. package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
  214. package/lib/typescript/src/useLocale.d.ts +1 -1
  215. package/lib/typescript/src/useMemoArray.d.ts +2 -0
  216. package/lib/typescript/src/useMemoArray.d.ts.map +1 -0
  217. package/lib/typescript/src/useScrollToTop.d.ts +1 -4
  218. package/lib/typescript/src/useScrollToTop.d.ts.map +1 -1
  219. package/lib/typescript/src/useThenable.d.ts +1 -1
  220. package/lib/typescript/src/useThenable.d.ts.map +1 -1
  221. package/package.json +48 -23
  222. package/src/Link.native.tsx +69 -0
  223. package/src/Link.tsx +126 -37
  224. package/src/LinkingContext.tsx +1 -1
  225. package/src/NavigationContainer.tsx +139 -69
  226. package/src/__stubs__/createStackNavigator.tsx +20 -18
  227. package/src/checkSerializable.tsx +246 -0
  228. package/src/constants.native.tsx +10 -0
  229. package/src/constants.tsx +5 -0
  230. package/src/createMemoryHistory.tsx +32 -10
  231. package/src/createStandardNavigationFactories.tsx +217 -0
  232. package/src/createStaticNavigation.tsx +32 -31
  233. package/src/extractPathFromURL.tsx +5 -3
  234. package/src/getStateBreadcrumb.tsx +44 -0
  235. package/src/getStateFromHref.tsx +8 -3
  236. package/src/index.tsx +11 -2
  237. package/src/native/CornerInset.ios.tsx +87 -0
  238. package/src/native/CornerInset.tsx +44 -0
  239. package/src/native/MaterialSymbol.android.tsx +11 -22
  240. package/src/native/MaterialSymbol.tsx +7 -2
  241. package/src/native/MaterialSymbolData.tsx +166 -0
  242. package/src/native/MaterialSymbolViewNativeComponent.ts +7 -4
  243. package/src/native/ReactNavigationCornerInsetViewNativeComponent.ts +31 -0
  244. package/src/native/SFSymbol.ios.tsx +80 -18
  245. package/src/native/SFSymbol.tsx +7 -2
  246. package/src/native/SFSymbolViewNativeComponent.ts +31 -15
  247. package/src/native/types.tsx +297 -47
  248. package/src/{ServerContext.tsx → server/ServerContext.tsx} +1 -4
  249. package/src/server/index.tsx +19 -0
  250. package/src/theming/DarkTheme.tsx +4 -4
  251. package/src/theming/{DefaultTheme.tsx → LightTheme.tsx} +4 -4
  252. package/src/theming/MaterialFallbackTheme.tsx +29 -0
  253. package/src/theming/MaterialTheme.android.tsx +45 -0
  254. package/src/theming/MaterialTheme.tsx +4 -0
  255. package/src/theming/fonts.native.tsx +41 -0
  256. package/src/theming/fonts.tsx +15 -54
  257. package/src/types.tsx +52 -45
  258. package/src/useBackButton.native.tsx +2 -0
  259. package/src/useBackButton.tsx +2 -2
  260. package/src/useDeepStableValue.tsx +12 -0
  261. package/src/useDocumentTitle.tsx +2 -2
  262. package/src/useLinkBuilder.tsx +29 -25
  263. package/src/useLinkProps.tsx +371 -127
  264. package/src/useLinkTo.tsx +9 -8
  265. package/src/useLinking.native.tsx +70 -39
  266. package/src/useLinking.tsx +426 -87
  267. package/src/useLocale.tsx +1 -1
  268. package/src/useMemoArray.tsx +41 -0
  269. package/src/useRoutePath.tsx +1 -1
  270. package/src/useScrollToTop.tsx +21 -13
  271. package/src/useThenable.tsx +9 -7
  272. package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/results.bin +0 -1
  273. package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/transformed/classes/classes_dex/classes.dex +0 -0
  274. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/results.bin +0 -1
  275. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.dex +0 -0
  276. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.dex +0 -0
  277. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.dex +0 -0
  278. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.dex +0 -0
  279. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.dex +0 -0
  280. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/BuildConfig.dex +0 -0
  281. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$Companion.dex +0 -0
  282. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$WhenMappings.dex +0 -0
  283. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$getImageSource$1.dex +0 -0
  284. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule.dex +0 -0
  285. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolTypeface.dex +0 -0
  286. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolTypefaceResult.dex +0 -0
  287. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolView.dex +0 -0
  288. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolViewManager$Companion.dex +0 -0
  289. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolViewManager.dex +0 -0
  290. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/ReactNavigationPackage.dex +0 -0
  291. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  292. package/android/build/generated/source/buildConfig/debug/org/reactnavigation/BuildConfig.java +0 -10
  293. package/android/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.java +0 -39
  294. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.java +0 -45
  295. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.java +0 -22
  296. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.java +0 -81
  297. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.java +0 -34
  298. package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
  299. package/android/build/generated/source/codegen/jni/ReactNavigationSpec-generated.cpp +0 -32
  300. package/android/build/generated/source/codegen/jni/ReactNavigationSpec.h +0 -31
  301. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ComponentDescriptors.cpp +0 -23
  302. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ComponentDescriptors.h +0 -25
  303. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/EventEmitters.cpp +0 -17
  304. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/EventEmitters.h +0 -30
  305. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.cpp +0 -176
  306. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.h +0 -132
  307. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI-generated.cpp +0 -31
  308. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI.h +0 -71
  309. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ShadowNodes.cpp +0 -18
  310. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ShadowNodes.h +0 -43
  311. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/States.cpp +0 -16
  312. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/States.h +0 -22
  313. package/android/build/generated/source/codegen/schema.json +0 -1
  314. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
  315. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  316. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  317. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  318. package/android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbols.hash +0 -1
  319. package/android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsOutlined_400.ttf +0 -0
  320. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  321. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  322. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  323. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  324. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  325. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  326. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  327. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  328. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-navigation_native_debug.kotlin_module +0 -0
  329. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.class +0 -0
  330. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.class +0 -0
  331. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.class +0 -0
  332. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
  333. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
  334. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/reactnavigation/BuildConfig.class +0 -0
  335. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  336. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
  337. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
  338. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  339. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  340. package/android/build/intermediates/react-navigation/fonts/MaterialSymbols.hash +0 -1
  341. package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsOutlined_400.ttf +0 -0
  342. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-navigation_native_debug.kotlin_module +0 -0
  343. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.class +0 -0
  344. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.class +0 -0
  345. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.class +0 -0
  346. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
  347. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
  348. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/BuildConfig.class +0 -0
  349. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$Companion.class +0 -0
  350. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$WhenMappings.class +0 -0
  351. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$getImageSource$1.class +0 -0
  352. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule.class +0 -0
  353. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolTypeface.class +0 -0
  354. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolTypefaceResult.class +0 -0
  355. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolView.class +0 -0
  356. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolViewManager$Companion.class +0 -0
  357. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolViewManager.class +0 -0
  358. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/ReactNavigationPackage.class +0 -0
  359. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  360. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  361. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  362. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  363. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  364. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  365. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  366. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  367. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  368. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  369. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  370. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  371. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  372. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  373. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  374. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  375. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  376. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  377. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  378. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  379. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  380. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  381. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  382. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  383. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  384. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  385. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  386. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  387. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  388. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  389. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  390. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  391. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  392. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  393. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  394. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  395. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  396. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  397. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  398. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  399. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  400. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  401. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  402. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  403. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  404. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  405. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  406. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  407. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  408. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  409. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  410. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  411. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  412. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  413. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  414. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  415. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  416. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  417. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  418. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  419. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  420. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  421. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  422. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  423. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  424. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  425. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  426. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  427. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  428. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  429. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  430. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  431. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  432. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  433. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  434. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  435. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  436. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  437. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  438. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  439. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  440. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  441. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  442. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  443. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  444. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  445. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  446. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  447. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  448. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  449. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
  450. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ReactNavigationSFSymbolViewManagerDelegate.class.uniqueId0 +0 -0
  451. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ReactNavigationSFSymbolViewManagerInterface.class.uniqueId1 +0 -0
  452. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  453. package/android/build/tmp/kotlin-classes/debug/META-INF/react-navigation_native_debug.kotlin_module +0 -0
  454. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$Companion.class +0 -0
  455. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$WhenMappings.class +0 -0
  456. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$getImageSource$1.class +0 -0
  457. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule.class +0 -0
  458. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolTypeface.class +0 -0
  459. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolTypefaceResult.class +0 -0
  460. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolView.class +0 -0
  461. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolViewManager$Companion.class +0 -0
  462. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolViewManager.class +0 -0
  463. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/ReactNavigationPackage.class +0 -0
  464. package/lib/module/ServerContainer.js +0 -55
  465. package/lib/module/ServerContainer.js.map +0 -1
  466. package/lib/module/ServerContext.js.map +0 -1
  467. package/lib/module/__stubs__/window.js +0 -75
  468. package/lib/module/__stubs__/window.js.map +0 -1
  469. package/lib/module/theming/DefaultTheme.js +0 -16
  470. package/lib/module/theming/DefaultTheme.js.map +0 -1
  471. package/lib/typescript/src/ServerContainer.d.ts +0 -14
  472. package/lib/typescript/src/ServerContainer.d.ts.map +0 -1
  473. package/lib/typescript/src/ServerContext.d.ts.map +0 -1
  474. package/lib/typescript/src/__stubs__/window.d.ts +0 -18
  475. package/lib/typescript/src/__stubs__/window.d.ts.map +0 -1
  476. package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
  477. package/src/ServerContainer.tsx +0 -57
  478. package/src/__stubs__/window.tsx +0 -77
  479. /package/lib/module/{ServerContext.js → server/ServerContext.js} +0 -0
@@ -1,16 +1,55 @@
1
1
  "use strict";
2
2
 
3
- import { findFocusedRoute, getActionFromState as getActionFromStateDefault, getPathFromState as getPathFromStateDefault, getStateFromPath as getStateFromPathDefault, useNavigationIndependentTree } from '@react-navigation/core';
3
+ import { CommonActions, findFocusedRoute, getActionFromState as getActionFromStateDefault, getPathFromState as getPathFromStateDefault, getStateFromPath as getStateFromPathDefault, useNavigationIndependentTree } from '@react-navigation/core';
4
4
  import isEqual from 'fast-deep-equal';
5
5
  import * as React from 'react';
6
6
  import { createMemoryHistory } from "./createMemoryHistory.js";
7
- import { ServerContext } from "./ServerContext.js";
7
+ import { ServerContext } from "./server/ServerContext.js";
8
+
9
+ /**
10
+ * History delta already applied by the browser when handling `popstate`
11
+ * The value 'replace' means the delta is unknown, so we can only replace
12
+ */
13
+
14
+ const getRoutesUntilIndex = state => state.routes.slice(0, state.index + 1);
15
+
16
+ /**
17
+ * Get the state object to construct the path from.
18
+ *
19
+ * We use the root state as the base, and fallback to existing `route.state`.
20
+ * If a navigator mounts later, this ensures we don't remove it from URL.
21
+ * It could happen during suspense, hydration, conditional rendering etc.
22
+ */
23
+ const getStateForPath = (state, fallbackState) => {
24
+ const index = state.index ?? state.routes.length - 1;
25
+ const route = state.routes[index];
26
+ if (route == null) {
27
+ return state;
28
+ }
29
+ const fallbackRoute = fallbackState?.routes[index];
30
+ if (fallbackRoute != null && 'key' in fallbackRoute && typeof fallbackRoute?.key === 'string' && typeof route?.key === 'string' && fallbackRoute.key !== route.key || route.name !== fallbackRoute?.name) {
31
+ return state;
32
+ }
33
+ const childState = route.state ? getStateForPath(route.state, fallbackRoute.state) : fallbackRoute.state;
34
+ if (route.state === childState) {
35
+ return state;
36
+ }
37
+ return {
38
+ ...state,
39
+ routes: state.routes.map(item => item === route ? {
40
+ ...item,
41
+ state: childState
42
+ } : item)
43
+ };
44
+ };
45
+
8
46
  /**
9
47
  * Calculate total history length including both navigator history and route history
10
48
  */
11
49
  const getTotalHistoryLength = state => {
12
- const baseHistoryLength = state.history ? state.history.length : state.routes.length;
13
- const routeHistoryLength = state.routes.reduce((acc, r) => {
50
+ const routes = getRoutesUntilIndex(state);
51
+ const baseHistoryLength = state.history ? state.history.length : routes.length;
52
+ const routeHistoryLength = routes.reduce((acc, r) => {
14
53
  return acc + (r.history ? r.history.length : 0);
15
54
  }, 0);
16
55
  return baseHistoryLength + routeHistoryLength;
@@ -28,6 +67,9 @@ const findMatchingState = (a, b) => {
28
67
  const bHistoryLength = getTotalHistoryLength(b);
29
68
  const aRoute = a.routes[a.index];
30
69
  const bRoute = b.routes[b.index];
70
+ if (aRoute == null || bRoute == null) {
71
+ return [a, b];
72
+ }
31
73
  const aChildState = aRoute.state;
32
74
  const bChildState = bRoute.state;
33
75
 
@@ -43,14 +85,63 @@ const findMatchingState = (a, b) => {
43
85
  return findMatchingState(aChildState, bChildState);
44
86
  };
45
87
 
88
+ /**
89
+ * Calculate the history delta between 2 navigation states.
90
+ * If no common navigation state is found, only replace the history entry.
91
+ */
92
+ const getHistoryDelta = (previous, next) => {
93
+ const [previousFocused, nextFocused] = findMatchingState(previous, next);
94
+ return previousFocused && nextFocused ? getTotalHistoryLength(nextFocused) - getTotalHistoryLength(previousFocused) : 'replace';
95
+ };
96
+
97
+ /**
98
+ * Check if navigator history matches between committed and latest state.
99
+ */
100
+ const hasMatchingBackHistory = (current, latest) => {
101
+ if (current.history !== undefined || latest.history !== undefined) {
102
+ return isEqual(current.history, latest.history);
103
+ }
104
+ return current.routes.slice(0, Math.min(current.index, latest.index) + 1).every((route, i) => route.key === latest.routes[i]?.key);
105
+ };
106
+
107
+ /**
108
+ * Check if the state change is popping the last route or history entry.
109
+ */
110
+ const isPoppingLastEntry = (current, record) => {
111
+ const currentRoute = current.routes[current.index];
112
+ const recordRoute = record.routes[record.index];
113
+ if (currentRoute == null || recordRoute == null) {
114
+ return false;
115
+ }
116
+ const currentRouteHistory = currentRoute.history;
117
+ const recordRouteHistory = recordRoute.history ?? [];
118
+ if (currentRouteHistory?.length) {
119
+ return currentRoute.key === recordRoute.key && currentRouteHistory.length === recordRouteHistory.length + 1;
120
+ }
121
+ if (current.history && record.history) {
122
+ return current.history.length === record.history.length + 1;
123
+ }
124
+ const currentRoutes = getRoutesUntilIndex(current);
125
+ const recordRoutes = getRoutesUntilIndex(record);
126
+ if (currentRoutes.length === recordRoutes.length + 1) {
127
+ return recordRoutes.every((route, i) => {
128
+ const currentRoute = currentRoutes[i];
129
+ return currentRoute != null && route.key === currentRoute.key;
130
+ });
131
+ }
132
+ return false;
133
+ };
134
+
46
135
  /**
47
136
  * Run async function in series as it's called.
48
137
  */
49
- export const series = cb => {
138
+ const series = cb => {
50
139
  let queue = Promise.resolve();
51
140
  const callback = () => {
52
141
  // eslint-disable-next-line promise/no-callback-in-promise
53
- queue = queue.then(cb);
142
+ queue = queue.then(cb).catch(e => {
143
+ console.error(e);
144
+ });
54
145
  };
55
146
  return callback;
56
147
  };
@@ -81,7 +172,13 @@ export function useLinking(ref, {
81
172
  linkingHandlers.delete(handler);
82
173
  };
83
174
  }, [enabled, independent]);
84
- const [history] = React.useState(createMemoryHistory);
175
+ const server = React.use(ServerContext);
176
+ const [history] = React.useState(() => {
177
+ if (server || typeof window === 'undefined') {
178
+ return undefined;
179
+ }
180
+ return createMemoryHistory();
181
+ });
85
182
 
86
183
  // We store these options in ref to avoid re-creating getInitialState and re-subscribing listeners
87
184
  // This lets user avoid wrapping the items in `React.useCallback` or `React.useMemo`
@@ -98,21 +195,23 @@ export function useLinking(ref, {
98
195
  getPathFromStateRef.current = getPathFromState;
99
196
  getActionFromStateRef.current = getActionFromState;
100
197
  });
101
- const validateRoutesNotExistInRootState = React.useCallback(state => {
102
- const navigation = ref.current;
103
- const rootState = navigation?.getRootState();
198
+ const validateRoutesNotExistInRootState = React.useCallback((state, rootState) => {
104
199
  // Make sure that the routes in the state exist in the root navigator
105
200
  // Otherwise there's an error in the linking configuration
106
201
  return state?.routes.some(r => !rootState?.routeNames.includes(r.name));
107
- }, [ref]);
108
- const server = React.useContext(ServerContext);
202
+ }, []);
109
203
  const getInitialState = React.useCallback(() => {
110
204
  let value;
111
205
  if (enabledRef.current) {
112
- const location = server?.location ?? (typeof window !== 'undefined' ? window.location : undefined);
206
+ const location = server ? server.location : typeof window !== 'undefined' ? window.location : undefined;
113
207
  const path = location ? location.pathname + location.search : undefined;
114
208
  if (path) {
115
- value = getStateFromPathRef.current(path, configRef.current);
209
+ try {
210
+ value = getStateFromPathRef.current(path, configRef.current);
211
+ } catch (e) {
212
+ console.error(e);
213
+ value = undefined;
214
+ }
116
215
  }
117
216
  }
118
217
  const thenable = {
@@ -125,8 +224,11 @@ export function useLinking(ref, {
125
224
  }, []);
126
225
  const previousIndexRef = React.useRef(undefined);
127
226
  const previousStateRef = React.useRef(undefined);
128
- const pendingPopStatePathRef = React.useRef(undefined);
227
+ const pendingPopStateRef = React.useRef(undefined);
129
228
  React.useEffect(() => {
229
+ if (!history) {
230
+ return;
231
+ }
130
232
  previousIndexRef.current = history.index;
131
233
  return history.listen(() => {
132
234
  const navigation = ref.current;
@@ -140,50 +242,141 @@ export function useLinking(ref, {
140
242
  const index = history.index;
141
243
  const previousIndex = previousIndexRef.current ?? 0;
142
244
  previousIndexRef.current = index;
143
- pendingPopStatePathRef.current = path;
245
+ const rollbackHistory = () => {
246
+ const delta = previousIndex - index;
247
+ if (delta === 0) {
248
+ return;
249
+ }
250
+ history.go(delta)
251
+ // eslint-disable-next-line promise/always-return
252
+ ?.then(() => {
253
+ previousIndexRef.current = history.index;
254
+ }).catch(() => {
255
+ // The navigation was interrupted
256
+ });
257
+ };
258
+ const rollbackHistoryIfPrevented = (callback, pendingDelta) => {
259
+ let removePrevented = false;
260
+ let actionChangedState = false;
261
+ const unsubscribeEvent = navigation.addListener('__unsafe_event__', e => {
262
+ if (e.data.type === 'beforeRemove' && e.data.defaultPrevented) {
263
+ removePrevented = true;
264
+ }
265
+ });
266
+
267
+ // After preventing remove, user may synchronously continue navigation
268
+ // This is common when showing a confirmation dialog
269
+ // If this action produces an update, we don't want to rollback the history
270
+ const unsubscribeAction = navigation.addListener('__unsafe_action__', e => {
271
+ if (!e.data.noop) {
272
+ actionChangedState = true;
273
+ }
274
+ });
275
+ try {
276
+ callback();
277
+ } finally {
278
+ unsubscribeEvent();
279
+ unsubscribeAction();
280
+ }
281
+ if (actionChangedState) {
282
+ // The change may be committed later, e.g. with transitions
283
+ // Remember the delta so it can be subtracted when syncing the commit
284
+ pendingPopStateRef.current = {
285
+ state: navigation.getRootState(),
286
+ delta: pendingDelta
287
+ };
288
+ } else if (removePrevented) {
289
+ rollbackHistory();
290
+ }
291
+ };
292
+ const dispatch = (action, pendingDelta) => {
293
+ rollbackHistoryIfPrevented(() => navigation.dispatch(action), pendingDelta);
294
+ };
295
+ const resetRoot = (state, pendingDelta) => {
296
+ rollbackHistoryIfPrevented(() => navigation.resetRoot(state), pendingDelta);
297
+ };
144
298
 
145
299
  // When browser back/forward is clicked, we first need to check if state object for this index exists
146
300
  // If it does we'll reset to that state object
147
301
  // Otherwise, we'll handle it like a regular deep link
148
302
  const record = history.get(index);
149
303
  if (record?.path === path && record?.state) {
150
- navigation.resetRoot(record.state);
304
+ const pending = pendingPopStateRef.current;
305
+
306
+ // Use the state synced to browser history or the result of a pending traversal,
307
+ // since the store may already contain another navigation that hasn't committed yet.
308
+ const currentState = pending?.state ?? previousStateRef.current;
309
+ const [currentFocused, recordFocused] = findMatchingState(currentState, record.state);
310
+ const [latestFocused] = findMatchingState(navigation.getRootState(), record.state);
311
+ const [pendingFocused] = findMatchingState(previousStateRef.current, pending?.state);
312
+ const currentRoute = currentFocused?.routes[currentFocused.index];
313
+ const latestRoute = latestFocused && getRoutesUntilIndex(latestFocused).find(route => route.key === currentRoute?.key);
314
+ if (previousIndex - index === 1 && currentFocused && recordFocused && latestFocused && currentFocused.key === latestFocused.key && (
315
+ // Only combine pending browser history deltas within the same navigator,
316
+ // as history lengths from different navigators aren't comparable.
317
+ !pending?.state || pendingFocused?.key === currentFocused.key) &&
318
+ // We don't want to dispatch `goBack` if route history has grown since,
319
+ // as we can't specify the entry to go back from.
320
+ // We can only specify route to go back from with `source`.
321
+ // Entries removed since are fine, they were already popped by a back action.
322
+ (latestRoute?.history?.length ?? 0) <= (currentRoute?.history?.length ?? 0) && hasMatchingBackHistory(currentFocused, latestFocused) && isPoppingLastEntry(currentFocused, recordFocused)) {
323
+ // If we detect that the state change is popping the last entry
324
+ // Dispatch a back action instead of resetting to the state
325
+ // This makes sure changes to history state since the entry was added don't get lost
326
+ dispatch({
327
+ ...CommonActions.goBack(),
328
+ target: currentFocused.key,
329
+ // If another back action already removed the source, go back
330
+ // from the current route in the same navigator instead.
331
+ source: latestRoute?.key
332
+ },
333
+ // Stack on any delta from a previous `popstate` that hasn't committed yet
334
+ pending?.delta === 'replace' ? 'replace' : (pending?.delta ?? 0) - 1);
335
+ } else {
336
+ // The browser already moved from the current state to the record's state
337
+ // We measure the delta from the last synced state,
338
+ // since that's what the pending delta gets subtracted from when syncing the commit
339
+ resetRoot(record.state, getHistoryDelta(previousStateRef.current, record.state));
340
+ }
341
+ return;
342
+ }
343
+ const rootState = navigation.getRootState();
344
+ let state;
345
+ try {
346
+ state = getStateFromPathRef.current(path, configRef.current, rootState);
347
+ } catch (e) {
348
+ console.error(e);
349
+ state = undefined;
350
+ }
351
+
352
+ // Make sure that the routes in the state exist in the root navigator
353
+ // Otherwise there's an error in the linking configuration
354
+ if (state && validateRoutesNotExistInRootState(state, rootState)) {
151
355
  return;
152
356
  }
153
- const state = getStateFromPathRef.current(path, configRef.current);
154
357
 
155
358
  // We should only dispatch an action when going forward
156
359
  // Otherwise the action will likely add items to history, which would mess things up
157
- if (state) {
158
- // Make sure that the routes in the state exist in the root navigator
159
- // Otherwise there's an error in the linking configuration
160
- if (validateRoutesNotExistInRootState(state)) {
161
- return;
162
- }
163
- if (index > previousIndex) {
164
- const action = getActionFromStateRef.current(state, configRef.current);
165
- if (action !== undefined) {
166
- try {
167
- navigation.dispatch(action);
168
- } catch (e) {
169
- // Ignore any errors from deep linking.
170
- // This could happen in case of malformed links, navigation object not being initialized etc.
171
- console.warn(`An error occurred when trying to handle the link '${path}': ${typeof e === 'object' && e != null && 'message' in e ? e.message : e}`);
172
- }
173
- } else {
174
- navigation.resetRoot(state);
175
- }
176
- } else {
177
- navigation.resetRoot(state);
360
+ const action = state && index > previousIndex ? getActionFromStateRef.current(state, configRef.current) : undefined;
361
+ if (action !== undefined) {
362
+ try {
363
+ dispatch({
364
+ target: rootState?.key,
365
+ ...action
366
+ }, 'replace');
367
+ } catch (e) {
368
+ // Ignore any errors from deep linking.
369
+ // This could happen in case of malformed links, navigation object not being initialized etc.
370
+ console.warn(`An error occurred when trying to handle the link '${path}': ${typeof e === 'object' && e != null && 'message' in e ? e.message : e}`);
178
371
  }
179
372
  } else {
180
- // if current path didn't return any state, we should revert to initial state
181
- navigation.resetRoot(state);
373
+ // If current path didn't return any state, we should revert to initial state
374
+ resetRoot(state, 'replace');
182
375
  }
183
376
  });
184
377
  }, [enabled, history, ref, validateRoutesNotExistInRootState]);
185
378
  React.useEffect(() => {
186
- if (!enabled) {
379
+ if (!enabled || !history) {
187
380
  return;
188
381
  }
189
382
  const getPathForRoute = (route, state) => {
@@ -192,7 +385,13 @@ export function useLinking(ref, {
192
385
  // If the `route` object contains a `path`, use that path as long as `route.name` and `params` still match
193
386
  // This makes sure that we preserve the original URL for wildcard routes
194
387
  if (route?.path) {
195
- const stateForPath = getStateFromPathRef.current(route.path, configRef.current);
388
+ let stateForPath;
389
+ try {
390
+ stateForPath = getStateFromPathRef.current(route.path, configRef.current);
391
+ } catch (e) {
392
+ console.error(e);
393
+ stateForPath = undefined;
394
+ }
196
395
  if (stateForPath) {
197
396
  const focusedRoute = findFocusedRoute(stateForPath);
198
397
  if (focusedRoute && focusedRoute.name === route.name && isEqual(focusedRoute.params, route.params)) {
@@ -216,8 +415,9 @@ export function useLinking(ref, {
216
415
  // This will allow the initial state to be in the history entry
217
416
  const state = ref.current.getRootState();
218
417
  if (state) {
219
- const route = findFocusedRoute(state);
220
- const path = getPathForRoute(route, state);
418
+ const stateForPath = getStateForPath(state, ref.current.getState());
419
+ const route = findFocusedRoute(stateForPath);
420
+ const path = getPathForRoute(route, stateForPath);
221
421
  if (previousStateRef.current === undefined) {
222
422
  previousStateRef.current = state;
223
423
  }
@@ -225,9 +425,10 @@ export function useLinking(ref, {
225
425
  path,
226
426
  state
227
427
  });
428
+ previousIndexRef.current = history.index;
228
429
  }
229
430
  }
230
- const onStateChange = async () => {
431
+ const onUpdate = async () => {
231
432
  const navigation = ref.current;
232
433
  if (!navigation || !enabled) {
233
434
  return;
@@ -239,22 +440,29 @@ export function useLinking(ref, {
239
440
  if (!state) {
240
441
  return;
241
442
  }
242
- const pendingPath = pendingPopStatePathRef.current;
243
- const route = findFocusedRoute(state);
244
- const path = getPathForRoute(route, state);
443
+
444
+ // Skip if the state hasn't changed since we last synced it
445
+ if (previousState === state) {
446
+ return;
447
+ }
448
+ const stateForPath = getStateForPath(state, navigation.getState());
449
+ const route = findFocusedRoute(stateForPath);
450
+ const path = getPathForRoute(route, stateForPath);
451
+ const pendingPopStateDelta = pendingPopStateRef.current?.delta;
245
452
  previousStateRef.current = state;
246
- pendingPopStatePathRef.current = undefined;
453
+ pendingPopStateRef.current = undefined;
247
454
 
248
455
  // To detect the kind of state change, we need to:
249
456
  // - Find the common focused navigation state in previous and current state
250
457
  // - If only the route keys changed, compare history/routes.length to check if we go back/forward/replace
251
458
  // - If no common focused navigation state found, it's a replace
252
- const [previousFocusedState, focusedState] = findMatchingState(previousState, state);
253
- if (previousFocusedState && focusedState &&
254
- // We should only handle push/pop if path changed from what was in last `popstate`
255
- // Otherwise it's likely a change triggered by `popstate`
256
- path !== pendingPath) {
257
- const historyDelta = getTotalHistoryLength(focusedState) - getTotalHistoryLength(previousFocusedState);
459
+ const delta = getHistoryDelta(previousState, state);
460
+ if (delta !== 'replace' &&
461
+ // If the delta from `popstate` is unknown, we can only replace
462
+ pendingPopStateDelta !== 'replace') {
463
+ const historyDelta = delta - (
464
+ // Subtract the delta already applied by the browser to sync only the remaining changes
465
+ pendingPopStateDelta ?? 0);
258
466
  if (historyDelta > 0) {
259
467
  // If history length is increased, we should pushState
260
468
  // Note that path might not actually change here, for example, drawer open should pushState
@@ -305,12 +513,14 @@ export function useLinking(ref, {
305
513
  state
306
514
  });
307
515
  }
516
+ previousIndexRef.current = history.index;
308
517
  };
309
518
 
310
- // We debounce onStateChange coz we don't want multiple state changes to be handled at one time
519
+ // We debounce onUpdate coz we don't want multiple state changes to be handled at one time
311
520
  // This could happen since `history.go(n)` is asynchronous
312
521
  // If `pushState` or `replaceState` were called before `history.go(n)` completes, it'll mess stuff up
313
- return ref.current?.addListener('state', series(onStateChange));
522
+ const handleUpdate = series(onUpdate);
523
+ return ref.current?.addListener('state', handleUpdate);
314
524
  }, [enabled, history, ref]);
315
525
  return {
316
526
  getInitialState
@@ -1 +1 @@
1
- {"version":3,"names":["findFocusedRoute","getActionFromState","getActionFromStateDefault","getPathFromState","getPathFromStateDefault","getStateFromPath","getStateFromPathDefault","useNavigationIndependentTree","isEqual","React","createMemoryHistory","ServerContext","getTotalHistoryLength","state","baseHistoryLength","history","length","routes","routeHistoryLength","reduce","acc","r","findMatchingState","a","b","undefined","key","aHistoryLength","bHistoryLength","aRoute","index","bRoute","aChildState","bChildState","series","cb","queue","Promise","resolve","callback","then","linkingHandlers","Set","useLinking","ref","enabled","config","independent","useEffect","process","env","NODE_ENV","size","console","error","join","trim","handler","Symbol","add","delete","useState","enabledRef","useRef","configRef","getStateFromPathRef","getPathFromStateRef","getActionFromStateRef","current","validateRoutesNotExistInRootState","useCallback","navigation","rootState","getRootState","some","routeNames","includes","name","server","useContext","getInitialState","value","location","window","path","pathname","search","thenable","onfulfilled","previousIndexRef","previousStateRef","pendingPopStatePathRef","listen","previousIndex","record","get","resetRoot","action","dispatch","e","warn","message","getPathForRoute","route","stateForPath","focusedRoute","params","previousRoute","hash","replace","onStateChange","previousState","pendingPath","previousFocusedState","focusedState","historyDelta","push","nextIndex","backIndex","currentIndex","go","addListener"],"sourceRoot":"../../src","sources":["useLinking.tsx"],"mappings":";;AAAA,SACEA,gBAAgB,EAChBC,kBAAkB,IAAIC,yBAAyB,EAC/CC,gBAAgB,IAAIC,uBAAuB,EAC3CC,gBAAgB,IAAIC,uBAAuB,EAI3CC,4BAA4B,QACvB,wBAAwB;AAC/B,OAAOC,OAAO,MAAM,iBAAiB;AACrC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,oBAAiB;AAM/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AC,CAAC;QAClC;MACF,CAAC,MAAM;QACL;QACA;QACAE,OAAO,CAAC8F,OAAO,CAAC;UAAEzB,IAAI;UAAEvE;QAAM,CAAC,CAAC;MAClC;IACF,CAAC;;IAED;IACA;IACA;IACA,OAAO+B,GAAG,CAACwB,OAAO,EAAEqD,WAAW,CAAC,OAAO,EAAEvF,MAAM,CAAC4E,aAAa,CAAC,CAAC;EACjE,CAAC,EAAE,CAACjE,OAAO,EAAE9B,OAAO,EAAE6B,GAAG,CAAC,CAAC;EAE3B,OAAO;IACLoC;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["CommonActions","findFocusedRoute","getActionFromState","getActionFromStateDefault","getPathFromState","getPathFromStateDefault","getStateFromPath","getStateFromPathDefault","useNavigationIndependentTree","isEqual","React","createMemoryHistory","ServerContext","getRoutesUntilIndex","state","routes","slice","index","getStateForPath","fallbackState","length","route","fallbackRoute","key","name","childState","map","item","getTotalHistoryLength","baseHistoryLength","history","routeHistoryLength","reduce","acc","r","findMatchingState","a","b","undefined","aHistoryLength","bHistoryLength","aRoute","bRoute","aChildState","bChildState","getHistoryDelta","previous","next","previousFocused","nextFocused","hasMatchingBackHistory","current","latest","Math","min","every","i","isPoppingLastEntry","record","currentRoute","recordRoute","currentRouteHistory","recordRouteHistory","currentRoutes","recordRoutes","series","cb","queue","Promise","resolve","callback","then","catch","e","console","error","linkingHandlers","Set","useLinking","ref","enabled","config","independent","useEffect","process","env","NODE_ENV","size","join","trim","handler","Symbol","add","delete","server","use","useState","window","enabledRef","useRef","configRef","getStateFromPathRef","getPathFromStateRef","getActionFromStateRef","validateRoutesNotExistInRootState","useCallback","rootState","some","routeNames","includes","getInitialState","value","location","path","pathname","search","thenable","onfulfilled","previousIndexRef","previousStateRef","pendingPopStateRef","listen","navigation","previousIndex","rollbackHistory","delta","go","rollbackHistoryIfPrevented","pendingDelta","removePrevented","actionChangedState","unsubscribeEvent","addListener","data","type","defaultPrevented","unsubscribeAction","noop","getRootState","dispatch","action","resetRoot","get","pending","currentState","currentFocused","recordFocused","latestFocused","pendingFocused","latestRoute","find","goBack","target","source","warn","message","getPathForRoute","stateForPath","focusedRoute","params","previousRoute","hash","getState","replace","onUpdate","previousState","pendingPopStateDelta","historyDelta","push","nextIndex","backIndex","currentIndex","handleUpdate"],"sourceRoot":"../../src","sources":["useLinking.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,IAAIC,yBAAyB,EAC/CC,gBAAgB,IAAIC,uBAAuB,EAC3CC,gBAAgB,IAAIC,uBAAuB,EAK3CC,4BAA4B,QACvB,wBAAwB;AAC/B,OAAOC,OAAO,MAAM,iBAAiB;AACrC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,2BAAwB;;AAItD;AACA;AACA;AACA;;AAGA,MAAMC,mBAAmB,GAAIC,KAAsB,IACjDA,KAAK,CAACC,MAAM,CAACC,KAAK,CAAC,CAAC,EAAEF,KAAK,CAACG,KAAK,GAAG,CAAC,CAAC;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,eAAe,GAAGA,CACtBJ,KAAsD,EACtDK,aAA0E,KACzB;EACjD,MAAMF,KAAK,GAAGH,KAAK,CAACG,KAAK,IAAIH,KAAK,CAACC,MAAM,CAACK,MAAM,GAAG,CAAC;EACpD,MAAMC,KAAK,GAAGP,KAAK,CAACC,MAAM,CAACE,KAAK,CAAC;EAEjC,IAAII,KAAK,IAAI,IAAI,EAAE;IACjB,OAAOP,KAAK;EACd;EAEA,MAAMQ,aAAa,GAAGH,aAAa,EAAEJ,MAAM,CAACE,KAAK,CAAC;EAElD,IACGK,aAAa,IAAI,IAAI,IACpB,KAAK,IAAIA,aAAa,IACtB,OAAOA,aAAa,EAAEC,GAAG,KAAK,QAAQ,IACtC,OAAOF,KAAK,EAAEE,GAAG,KAAK,QAAQ,IAC9BD,aAAa,CA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IACL+B;EACF,CAAC;AACH","ignoreList":[]}
@@ -35,14 +35,22 @@ export function useLinking(ref, {
35
35
  if (independent) {
36
36
  return undefined;
37
37
  }
38
- if (enabled !== false && linkingHandlers.size) {
39
- console.error(['Looks like you have configured linking in multiple places. This is likely an error since deep links should only be handled in one place to avoid conflicts. Make sure that:', "- You don't have multiple NavigationContainers in the app each with 'linking' enabled", '- Only a single instance of the root component is rendered', Platform.OS === 'android' ? "- You have set 'android:launchMode=singleTask' in the '<activity />' section of the 'AndroidManifest.xml' file to avoid launching multiple instances" : ''].join('\n').trim());
40
- }
41
38
  const handler = Symbol();
42
39
  if (enabled !== false) {
43
40
  linkingHandlers.add(handler);
44
41
  }
42
+
43
+ // In some cases, the effect cleanup may get called out of order
44
+ // This may result in multiple linking handlers being registered
45
+ // For example, when changing the wallpaper on Android
46
+ // Showing the error in a delay avoids false positives
47
+ const timer = setTimeout(() => {
48
+ if (enabled !== false && linkingHandlers.size && !(linkingHandlers.size === 1 && linkingHandlers.has(handler))) {
49
+ console.error(['Looks like you have configured linking in multiple places. This is likely an error since deep links should only be handled in one place to avoid conflicts. Make sure that:', "- You don't have multiple NavigationContainers in the app each with 'linking' enabled", '- Only a single instance of the root component is rendered', Platform.OS === 'android' ? "- You have set 'android:launchMode=singleTask' in the '<activity />' section of the 'AndroidManifest.xml' file to avoid launching multiple instances" : ''].join('\n').trim());
50
+ }
51
+ }, 1000);
45
52
  return () => {
53
+ clearTimeout(timer);
46
54
  linkingHandlers.delete(handler);
47
55
  };
48
56
  }, [enabled, independent]);
@@ -66,7 +74,7 @@ export function useLinking(ref, {
66
74
  getStateFromPathRef.current = getStateFromPath;
67
75
  getActionFromStateRef.current = getActionFromState;
68
76
  });
69
- const getStateFromURL = React.useCallback(url => {
77
+ const getStateFromURL = React.useCallback((url, previous) => {
70
78
  if (!url) {
71
79
  return undefined;
72
80
  }
@@ -76,7 +84,7 @@ export function useLinking(ref, {
76
84
  filter: filterRef.current,
77
85
  config: configRef.current,
78
86
  getStateFromPath: getStateFromPathRef.current
79
- });
87
+ }, previous);
80
88
  } catch (e) {
81
89
  return undefined;
82
90
  }
@@ -88,12 +96,12 @@ export function useLinking(ref, {
88
96
  if (url != null) {
89
97
  if (typeof url !== 'string') {
90
98
  return url.then(url => {
91
- const state = getStateFromURL(url);
99
+ const state = getStateFromURL(url, undefined);
92
100
  return state;
93
101
  });
94
102
  }
95
103
  }
96
- state = getStateFromURL(url);
104
+ state = getStateFromURL(url, undefined);
97
105
  }
98
106
  const thenable = {
99
107
  then(onfulfilled) {
@@ -104,16 +112,27 @@ export function useLinking(ref, {
104
112
  }, [getStateFromURL]);
105
113
  React.useEffect(() => {
106
114
  const listener = url => {
107
- if (!enabled) {
115
+ const navigation = ref.current;
116
+ if (!enabled || !navigation) {
108
117
  return;
109
118
  }
110
- const navigation = ref.current;
111
- const state = navigation ? getStateFromURL(url) : undefined;
112
- if (navigation && state) {
119
+ const rootState = navigation.getRootState();
120
+ const state = getStateFromURL(url, rootState);
121
+ REACT_NAVIGATION_DEVTOOLS.get(navigation)?.listeners.forEach(listener => {
122
+ listener({
123
+ type: 'link',
124
+ url,
125
+ state
126
+ });
127
+ });
128
+ if (state) {
113
129
  const action = getActionFromStateRef.current(state, configRef.current);
114
130
  if (action !== undefined) {
115
131
  try {
116
- navigation.dispatch(action);
132
+ navigation.dispatch({
133
+ target: rootState?.key,
134
+ ...action
135
+ });
117
136
  } catch (e) {
118
137
  // Ignore any errors from deep linking.
119
138
  // This could happen in case of malformed links, navigation object not being initialized etc.