@react-navigation/native 7.0.0-rc.9 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/lib/commonjs/{Link.cjs → Link.js} +2 -2
  2. package/lib/commonjs/{Link.cjs.map → Link.js.map} +1 -1
  3. package/lib/commonjs/{LinkingContext.cjs → LinkingContext.js} +1 -1
  4. package/lib/commonjs/{LocaleDirContext.cjs → LocaleDirContext.js} +1 -1
  5. package/lib/commonjs/{NavigationContainer.cjs → NavigationContainer.js} +10 -7
  6. package/lib/commonjs/NavigationContainer.js.map +1 -0
  7. package/lib/commonjs/{ServerContainer.cjs → ServerContainer.js} +16 -10
  8. package/lib/commonjs/{ServerContainer.cjs.map → ServerContainer.js.map} +1 -1
  9. package/lib/commonjs/{ServerContext.cjs → ServerContext.js} +1 -1
  10. package/lib/commonjs/{UnhandledLinkingContext.cjs → UnhandledLinkingContext.js} +1 -1
  11. package/lib/commonjs/__stubs__/{createStackNavigator.cjs → createStackNavigator.js} +1 -1
  12. package/lib/commonjs/__stubs__/{window.cjs → window.js} +1 -1
  13. package/lib/commonjs/{createMemoryHistory.cjs → createMemoryHistory.js} +1 -1
  14. package/lib/commonjs/{createStaticNavigation.cjs → createStaticNavigation.js} +27 -19
  15. package/lib/commonjs/createStaticNavigation.js.map +1 -0
  16. package/lib/commonjs/{extractPathFromURL.cjs → extractPathFromURL.js} +1 -1
  17. package/lib/commonjs/{index.cjs → index.js} +38 -14
  18. package/lib/commonjs/index.js.map +1 -0
  19. package/lib/commonjs/package.json +1 -0
  20. package/lib/commonjs/theming/{DarkTheme.cjs → DarkTheme.js} +2 -2
  21. package/lib/commonjs/theming/{DefaultTheme.cjs → DefaultTheme.js} +2 -2
  22. package/lib/commonjs/theming/{fonts.cjs → fonts.js} +1 -1
  23. package/lib/commonjs/{types.cjs → types.js} +1 -1
  24. package/lib/commonjs/{useBackButton.cjs → useBackButton.js} +2 -1
  25. package/lib/commonjs/useBackButton.js.map +1 -0
  26. package/lib/commonjs/{useBackButton.native.cjs → useBackButton.native.js} +1 -1
  27. package/lib/commonjs/{useDocumentTitle.cjs → useDocumentTitle.js} +1 -1
  28. package/lib/commonjs/useDocumentTitle.native.js +11 -0
  29. package/lib/commonjs/{useDocumentTitle.native.cjs.map → useDocumentTitle.native.js.map} +1 -1
  30. package/lib/commonjs/{useLinkBuilder.cjs → useLinkBuilder.js} +2 -2
  31. package/lib/commonjs/{useLinkProps.cjs → useLinkProps.js} +2 -2
  32. package/lib/commonjs/{useLinkTo.cjs → useLinkTo.js} +2 -2
  33. package/lib/commonjs/{useLinking.cjs → useLinking.js} +3 -3
  34. package/lib/commonjs/{useLinking.native.cjs → useLinking.native.js} +2 -2
  35. package/lib/commonjs/{useLocale.cjs → useLocale.js} +2 -2
  36. package/lib/commonjs/{useScrollToTop.cjs → useScrollToTop.js} +1 -1
  37. package/lib/commonjs/{useThenable.cjs → useThenable.js} +1 -1
  38. package/lib/commonjs/{useUnhandledLinking.cjs → useUnhandledLinking.js} +3 -3
  39. package/lib/module/{Link.mjs → Link.js} +5 -5
  40. package/lib/module/Link.js.map +1 -0
  41. package/lib/module/{LinkingContext.mjs → LinkingContext.js} +3 -1
  42. package/lib/module/LinkingContext.js.map +1 -0
  43. package/lib/module/{LocaleDirContext.mjs → LocaleDirContext.js} +3 -1
  44. package/lib/module/LocaleDirContext.js.map +1 -0
  45. package/lib/module/{NavigationContainer.mjs → NavigationContainer.js} +13 -8
  46. package/lib/module/NavigationContainer.js.map +1 -0
  47. package/lib/module/{ServerContainer.mjs → ServerContainer.js} +18 -10
  48. package/lib/module/ServerContainer.js.map +1 -0
  49. package/lib/module/{ServerContext.mjs → ServerContext.js} +3 -1
  50. package/lib/module/ServerContext.js.map +1 -0
  51. package/lib/module/{UnhandledLinkingContext.mjs → UnhandledLinkingContext.js} +3 -1
  52. package/lib/module/UnhandledLinkingContext.js.map +1 -0
  53. package/lib/module/__stubs__/{createStackNavigator.mjs → createStackNavigator.js} +3 -1
  54. package/lib/module/__stubs__/createStackNavigator.js.map +1 -0
  55. package/lib/module/__stubs__/{window.mjs → window.js} +3 -1
  56. package/lib/module/__stubs__/window.js.map +1 -0
  57. package/lib/module/{createMemoryHistory.mjs → createMemoryHistory.js} +3 -1
  58. package/lib/module/createMemoryHistory.js.map +1 -0
  59. package/lib/module/{createStaticNavigation.mjs → createStaticNavigation.js} +29 -19
  60. package/lib/module/createStaticNavigation.js.map +1 -0
  61. package/lib/module/{extractPathFromURL.mjs → extractPathFromURL.js} +3 -1
  62. package/lib/module/extractPathFromURL.js.map +1 -0
  63. package/lib/module/index.js +20 -0
  64. package/lib/module/index.js.map +1 -0
  65. package/lib/module/package.json +1 -0
  66. package/lib/module/theming/{DarkTheme.mjs → DarkTheme.js} +4 -2
  67. package/lib/module/theming/DarkTheme.js.map +1 -0
  68. package/lib/module/theming/{DefaultTheme.mjs → DefaultTheme.js} +4 -2
  69. package/lib/module/theming/DefaultTheme.js.map +1 -0
  70. package/lib/module/theming/{fonts.mjs → fonts.js} +3 -1
  71. package/lib/module/theming/fonts.js.map +1 -0
  72. package/lib/module/types.js +4 -0
  73. package/lib/module/useBackButton.js +8 -0
  74. package/lib/module/useBackButton.js.map +1 -0
  75. package/lib/module/{useBackButton.native.mjs → useBackButton.native.js} +3 -1
  76. package/lib/module/useBackButton.native.js.map +1 -0
  77. package/lib/module/{useDocumentTitle.mjs → useDocumentTitle.js} +3 -1
  78. package/lib/module/useDocumentTitle.js.map +1 -0
  79. package/lib/module/useDocumentTitle.native.js +7 -0
  80. package/lib/module/useDocumentTitle.native.js.map +1 -0
  81. package/lib/module/{useLinkBuilder.mjs → useLinkBuilder.js} +4 -2
  82. package/lib/module/useLinkBuilder.js.map +1 -0
  83. package/lib/module/{useLinkProps.mjs → useLinkProps.js} +4 -2
  84. package/lib/module/useLinkProps.js.map +1 -0
  85. package/lib/module/{useLinkTo.mjs → useLinkTo.js} +4 -2
  86. package/lib/module/useLinkTo.js.map +1 -0
  87. package/lib/module/{useLinking.mjs → useLinking.js} +5 -3
  88. package/lib/module/useLinking.js.map +1 -0
  89. package/lib/module/{useLinking.native.mjs → useLinking.native.js} +4 -2
  90. package/lib/module/useLinking.native.js.map +1 -0
  91. package/lib/module/{useLocale.mjs → useLocale.js} +4 -2
  92. package/lib/module/useLocale.js.map +1 -0
  93. package/lib/module/{useScrollToTop.mjs → useScrollToTop.js} +3 -1
  94. package/lib/module/useScrollToTop.js.map +1 -0
  95. package/lib/module/{useThenable.mjs → useThenable.js} +3 -1
  96. package/lib/module/useThenable.js.map +1 -0
  97. package/lib/module/{useUnhandledLinking.mjs → useUnhandledLinking.js} +5 -3
  98. package/lib/module/useUnhandledLinking.js.map +1 -0
  99. package/lib/typescript/commonjs/package.json +1 -0
  100. package/lib/typescript/commonjs/src/Link.d.ts.map +1 -0
  101. package/lib/typescript/commonjs/src/LinkingContext.d.ts.map +1 -0
  102. package/lib/typescript/commonjs/src/LocaleDirContext.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/src/NavigationContainer.d.ts.map +1 -0
  104. package/lib/typescript/commonjs/src/ServerContainer.d.ts.map +1 -0
  105. package/lib/typescript/commonjs/src/ServerContext.d.ts.map +1 -0
  106. package/lib/typescript/commonjs/src/UnhandledLinkingContext.d.ts.map +1 -0
  107. package/lib/typescript/commonjs/src/__stubs__/createStackNavigator.d.ts.map +1 -0
  108. package/lib/typescript/commonjs/src/__stubs__/window.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/src/createMemoryHistory.d.ts.map +1 -0
  110. package/lib/typescript/commonjs/src/createStaticNavigation.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/extractPathFromURL.d.ts.map +1 -0
  112. package/lib/typescript/{src → commonjs/src}/index.d.ts +3 -0
  113. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  114. package/lib/typescript/commonjs/src/theming/DarkTheme.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/theming/DefaultTheme.d.ts.map +1 -0
  116. package/lib/typescript/commonjs/src/theming/fonts.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
  118. package/lib/typescript/commonjs/src/useBackButton.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/src/useBackButton.native.d.ts.map +1 -0
  120. package/lib/typescript/commonjs/src/useDocumentTitle.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/src/useDocumentTitle.native.d.ts.map +1 -0
  122. package/lib/typescript/commonjs/src/useLinkBuilder.d.ts.map +1 -0
  123. package/lib/typescript/{src → commonjs/src}/useLinkProps.d.ts +9 -7
  124. package/lib/typescript/commonjs/src/useLinkProps.d.ts.map +1 -0
  125. package/lib/typescript/commonjs/src/useLinkTo.d.ts.map +1 -0
  126. package/lib/typescript/commonjs/src/useLinking.d.ts.map +1 -0
  127. package/lib/typescript/commonjs/src/useLinking.native.d.ts.map +1 -0
  128. package/lib/typescript/commonjs/src/useLocale.d.ts.map +1 -0
  129. package/lib/typescript/{src → commonjs/src}/useScrollToTop.d.ts +1 -1
  130. package/lib/typescript/commonjs/src/useScrollToTop.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/src/useThenable.d.ts.map +1 -0
  132. package/lib/typescript/commonjs/src/useUnhandledLinking.d.ts.map +1 -0
  133. package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -0
  134. package/lib/typescript/module/package.json +1 -0
  135. package/lib/typescript/module/src/Link.d.ts +22 -0
  136. package/lib/typescript/module/src/Link.d.ts.map +1 -0
  137. package/lib/typescript/module/src/LinkingContext.d.ts +7 -0
  138. package/lib/typescript/module/src/LinkingContext.d.ts.map +1 -0
  139. package/lib/typescript/module/src/LocaleDirContext.d.ts +4 -0
  140. package/lib/typescript/module/src/LocaleDirContext.d.ts.map +1 -0
  141. package/lib/typescript/module/src/NavigationContainer.d.ts +19 -0
  142. package/lib/typescript/module/src/NavigationContainer.d.ts.map +1 -0
  143. package/lib/typescript/module/src/ServerContainer.d.ts +14 -0
  144. package/lib/typescript/module/src/ServerContainer.d.ts.map +1 -0
  145. package/lib/typescript/module/src/ServerContext.d.ts +9 -0
  146. package/lib/typescript/module/src/ServerContext.d.ts.map +1 -0
  147. package/lib/typescript/module/src/UnhandledLinkingContext.d.ts +6 -0
  148. package/lib/typescript/module/src/UnhandledLinkingContext.d.ts.map +1 -0
  149. package/lib/typescript/module/src/__stubs__/createStackNavigator.d.ts +13 -0
  150. package/lib/typescript/module/src/__stubs__/createStackNavigator.d.ts.map +1 -0
  151. package/lib/typescript/module/src/__stubs__/window.d.ts +18 -0
  152. package/lib/typescript/module/src/__stubs__/window.d.ts.map +1 -0
  153. package/lib/typescript/module/src/createMemoryHistory.d.ts +25 -0
  154. package/lib/typescript/module/src/createMemoryHistory.d.ts.map +1 -0
  155. package/lib/typescript/module/src/createStaticNavigation.d.ts +34 -0
  156. package/lib/typescript/module/src/createStaticNavigation.d.ts.map +1 -0
  157. package/lib/typescript/module/src/extractPathFromURL.d.ts +2 -0
  158. package/lib/typescript/module/src/extractPathFromURL.d.ts.map +1 -0
  159. package/lib/typescript/module/src/index.d.ts +18 -0
  160. package/lib/typescript/module/src/index.d.ts.map +1 -0
  161. package/lib/typescript/module/src/theming/DarkTheme.d.ts +3 -0
  162. package/lib/typescript/module/src/theming/DarkTheme.d.ts.map +1 -0
  163. package/lib/typescript/module/src/theming/DefaultTheme.d.ts +3 -0
  164. package/lib/typescript/module/src/theming/DefaultTheme.d.ts.map +1 -0
  165. package/lib/typescript/module/src/theming/fonts.d.ts +53 -0
  166. package/lib/typescript/module/src/theming/fonts.d.ts.map +1 -0
  167. package/lib/typescript/module/src/types.d.ts +159 -0
  168. package/lib/typescript/module/src/types.d.ts.map +1 -0
  169. package/lib/typescript/module/src/useBackButton.d.ts +3 -0
  170. package/lib/typescript/module/src/useBackButton.d.ts.map +1 -0
  171. package/lib/typescript/module/src/useBackButton.native.d.ts +4 -0
  172. package/lib/typescript/module/src/useBackButton.native.d.ts.map +1 -0
  173. package/lib/typescript/module/src/useDocumentTitle.d.ts +8 -0
  174. package/lib/typescript/module/src/useDocumentTitle.d.ts.map +1 -0
  175. package/lib/typescript/module/src/useDocumentTitle.native.d.ts +2 -0
  176. package/lib/typescript/module/src/useDocumentTitle.native.d.ts.map +1 -0
  177. package/lib/typescript/module/src/useLinkBuilder.d.ts +25 -0
  178. package/lib/typescript/module/src/useLinkBuilder.d.ts.map +1 -0
  179. package/lib/typescript/module/src/useLinkProps.d.ts +34 -0
  180. package/lib/typescript/module/src/useLinkProps.d.ts.map +1 -0
  181. package/lib/typescript/module/src/useLinkTo.d.ts +6 -0
  182. package/lib/typescript/module/src/useLinkTo.d.ts.map +1 -0
  183. package/lib/typescript/module/src/useLinking.d.ts +14 -0
  184. package/lib/typescript/module/src/useLinking.d.ts.map +1 -0
  185. package/lib/typescript/module/src/useLinking.native.d.ts +33 -0
  186. package/lib/typescript/module/src/useLinking.native.d.ts.map +1 -0
  187. package/lib/typescript/module/src/useLocale.d.ts +7 -0
  188. package/lib/typescript/module/src/useLocale.d.ts.map +1 -0
  189. package/lib/typescript/module/src/useScrollToTop.d.ts +27 -0
  190. package/lib/typescript/module/src/useScrollToTop.d.ts.map +1 -0
  191. package/lib/typescript/module/src/useThenable.d.ts +2 -0
  192. package/lib/typescript/module/src/useThenable.d.ts.map +1 -0
  193. package/lib/typescript/module/src/useUnhandledLinking.d.ts +7 -0
  194. package/lib/typescript/module/src/useUnhandledLinking.d.ts.map +1 -0
  195. package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -0
  196. package/package.json +21 -14
  197. package/src/Link.tsx +0 -1
  198. package/src/NavigationContainer.tsx +2 -1
  199. package/src/ServerContainer.tsx +2 -0
  200. package/src/createStaticNavigation.tsx +39 -27
  201. package/src/index.tsx +3 -0
  202. package/src/useBackButton.tsx +1 -0
  203. package/src/useDocumentTitle.native.tsx +2 -1
  204. package/src/useLinkProps.tsx +5 -5
  205. package/src/useScrollToTop.tsx +1 -1
  206. package/lib/commonjs/NavigationContainer.cjs.map +0 -1
  207. package/lib/commonjs/createStaticNavigation.cjs.map +0 -1
  208. package/lib/commonjs/index.cjs.map +0 -1
  209. package/lib/commonjs/useBackButton.cjs.map +0 -1
  210. package/lib/commonjs/useDocumentTitle.native.cjs +0 -10
  211. package/lib/module/Link.mjs.map +0 -1
  212. package/lib/module/LinkingContext.mjs.map +0 -1
  213. package/lib/module/LocaleDirContext.mjs.map +0 -1
  214. package/lib/module/NavigationContainer.mjs.map +0 -1
  215. package/lib/module/ServerContainer.mjs.map +0 -1
  216. package/lib/module/ServerContext.mjs.map +0 -1
  217. package/lib/module/UnhandledLinkingContext.mjs.map +0 -1
  218. package/lib/module/__stubs__/createStackNavigator.mjs.map +0 -1
  219. package/lib/module/__stubs__/window.mjs.map +0 -1
  220. package/lib/module/createMemoryHistory.mjs.map +0 -1
  221. package/lib/module/createStaticNavigation.mjs.map +0 -1
  222. package/lib/module/extractPathFromURL.mjs.map +0 -1
  223. package/lib/module/index.mjs +0 -15
  224. package/lib/module/index.mjs.map +0 -1
  225. package/lib/module/theming/DarkTheme.mjs.map +0 -1
  226. package/lib/module/theming/DefaultTheme.mjs.map +0 -1
  227. package/lib/module/theming/fonts.mjs.map +0 -1
  228. package/lib/module/types.mjs +0 -2
  229. package/lib/module/useBackButton.mjs +0 -5
  230. package/lib/module/useBackButton.mjs.map +0 -1
  231. package/lib/module/useBackButton.native.mjs.map +0 -1
  232. package/lib/module/useDocumentTitle.mjs.map +0 -1
  233. package/lib/module/useDocumentTitle.native.mjs +0 -4
  234. package/lib/module/useDocumentTitle.native.mjs.map +0 -1
  235. package/lib/module/useLinkBuilder.mjs.map +0 -1
  236. package/lib/module/useLinkProps.mjs.map +0 -1
  237. package/lib/module/useLinkTo.mjs.map +0 -1
  238. package/lib/module/useLinking.mjs.map +0 -1
  239. package/lib/module/useLinking.native.mjs.map +0 -1
  240. package/lib/module/useLocale.mjs.map +0 -1
  241. package/lib/module/useScrollToTop.mjs.map +0 -1
  242. package/lib/module/useThenable.mjs.map +0 -1
  243. package/lib/module/useUnhandledLinking.mjs.map +0 -1
  244. package/lib/typescript/src/Link.d.ts.map +0 -1
  245. package/lib/typescript/src/LinkingContext.d.ts.map +0 -1
  246. package/lib/typescript/src/LocaleDirContext.d.ts.map +0 -1
  247. package/lib/typescript/src/NavigationContainer.d.ts.map +0 -1
  248. package/lib/typescript/src/ServerContainer.d.ts.map +0 -1
  249. package/lib/typescript/src/ServerContext.d.ts.map +0 -1
  250. package/lib/typescript/src/UnhandledLinkingContext.d.ts.map +0 -1
  251. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +0 -1
  252. package/lib/typescript/src/__stubs__/window.d.ts.map +0 -1
  253. package/lib/typescript/src/createMemoryHistory.d.ts.map +0 -1
  254. package/lib/typescript/src/createStaticNavigation.d.ts.map +0 -1
  255. package/lib/typescript/src/extractPathFromURL.d.ts.map +0 -1
  256. package/lib/typescript/src/index.d.ts.map +0 -1
  257. package/lib/typescript/src/theming/DarkTheme.d.ts.map +0 -1
  258. package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
  259. package/lib/typescript/src/theming/fonts.d.ts.map +0 -1
  260. package/lib/typescript/src/types.d.ts.map +0 -1
  261. package/lib/typescript/src/useBackButton.d.ts.map +0 -1
  262. package/lib/typescript/src/useBackButton.native.d.ts.map +0 -1
  263. package/lib/typescript/src/useDocumentTitle.d.ts.map +0 -1
  264. package/lib/typescript/src/useDocumentTitle.native.d.ts.map +0 -1
  265. package/lib/typescript/src/useLinkBuilder.d.ts.map +0 -1
  266. package/lib/typescript/src/useLinkProps.d.ts.map +0 -1
  267. package/lib/typescript/src/useLinkTo.d.ts.map +0 -1
  268. package/lib/typescript/src/useLinking.d.ts.map +0 -1
  269. package/lib/typescript/src/useLinking.native.d.ts.map +0 -1
  270. package/lib/typescript/src/useLocale.d.ts.map +0 -1
  271. package/lib/typescript/src/useScrollToTop.d.ts.map +0 -1
  272. package/lib/typescript/src/useThenable.d.ts.map +0 -1
  273. package/lib/typescript/src/useUnhandledLinking.d.ts.map +0 -1
  274. /package/lib/commonjs/{LinkingContext.cjs.map → LinkingContext.js.map} +0 -0
  275. /package/lib/commonjs/{LocaleDirContext.cjs.map → LocaleDirContext.js.map} +0 -0
  276. /package/lib/commonjs/{ServerContext.cjs.map → ServerContext.js.map} +0 -0
  277. /package/lib/commonjs/{UnhandledLinkingContext.cjs.map → UnhandledLinkingContext.js.map} +0 -0
  278. /package/lib/commonjs/__stubs__/{createStackNavigator.cjs.map → createStackNavigator.js.map} +0 -0
  279. /package/lib/commonjs/__stubs__/{window.cjs.map → window.js.map} +0 -0
  280. /package/lib/commonjs/{createMemoryHistory.cjs.map → createMemoryHistory.js.map} +0 -0
  281. /package/lib/commonjs/{extractPathFromURL.cjs.map → extractPathFromURL.js.map} +0 -0
  282. /package/lib/commonjs/theming/{DarkTheme.cjs.map → DarkTheme.js.map} +0 -0
  283. /package/lib/commonjs/theming/{DefaultTheme.cjs.map → DefaultTheme.js.map} +0 -0
  284. /package/lib/commonjs/theming/{fonts.cjs.map → fonts.js.map} +0 -0
  285. /package/lib/commonjs/{types.cjs.map → types.js.map} +0 -0
  286. /package/lib/commonjs/{useBackButton.native.cjs.map → useBackButton.native.js.map} +0 -0
  287. /package/lib/commonjs/{useDocumentTitle.cjs.map → useDocumentTitle.js.map} +0 -0
  288. /package/lib/commonjs/{useLinkBuilder.cjs.map → useLinkBuilder.js.map} +0 -0
  289. /package/lib/commonjs/{useLinkProps.cjs.map → useLinkProps.js.map} +0 -0
  290. /package/lib/commonjs/{useLinkTo.cjs.map → useLinkTo.js.map} +0 -0
  291. /package/lib/commonjs/{useLinking.cjs.map → useLinking.js.map} +0 -0
  292. /package/lib/commonjs/{useLinking.native.cjs.map → useLinking.native.js.map} +0 -0
  293. /package/lib/commonjs/{useLocale.cjs.map → useLocale.js.map} +0 -0
  294. /package/lib/commonjs/{useScrollToTop.cjs.map → useScrollToTop.js.map} +0 -0
  295. /package/lib/commonjs/{useThenable.cjs.map → useThenable.js.map} +0 -0
  296. /package/lib/commonjs/{useUnhandledLinking.cjs.map → useUnhandledLinking.js.map} +0 -0
  297. /package/lib/module/{types.mjs.map → types.js.map} +0 -0
  298. /package/lib/typescript/{src → commonjs/src}/Link.d.ts +0 -0
  299. /package/lib/typescript/{src → commonjs/src}/LinkingContext.d.ts +0 -0
  300. /package/lib/typescript/{src → commonjs/src}/LocaleDirContext.d.ts +0 -0
  301. /package/lib/typescript/{src → commonjs/src}/NavigationContainer.d.ts +0 -0
  302. /package/lib/typescript/{src → commonjs/src}/ServerContainer.d.ts +0 -0
  303. /package/lib/typescript/{src → commonjs/src}/ServerContext.d.ts +0 -0
  304. /package/lib/typescript/{src → commonjs/src}/UnhandledLinkingContext.d.ts +0 -0
  305. /package/lib/typescript/{src → commonjs/src}/__stubs__/createStackNavigator.d.ts +0 -0
  306. /package/lib/typescript/{src → commonjs/src}/__stubs__/window.d.ts +0 -0
  307. /package/lib/typescript/{src → commonjs/src}/createMemoryHistory.d.ts +0 -0
  308. /package/lib/typescript/{src → commonjs/src}/createStaticNavigation.d.ts +0 -0
  309. /package/lib/typescript/{src → commonjs/src}/extractPathFromURL.d.ts +0 -0
  310. /package/lib/typescript/{src → commonjs/src}/theming/DarkTheme.d.ts +0 -0
  311. /package/lib/typescript/{src → commonjs/src}/theming/DefaultTheme.d.ts +0 -0
  312. /package/lib/typescript/{src → commonjs/src}/theming/fonts.d.ts +0 -0
  313. /package/lib/typescript/{src → commonjs/src}/types.d.ts +0 -0
  314. /package/lib/typescript/{src → commonjs/src}/useBackButton.d.ts +0 -0
  315. /package/lib/typescript/{src → commonjs/src}/useBackButton.native.d.ts +0 -0
  316. /package/lib/typescript/{src → commonjs/src}/useDocumentTitle.d.ts +0 -0
  317. /package/lib/typescript/{src → commonjs/src}/useDocumentTitle.native.d.ts +0 -0
  318. /package/lib/typescript/{src → commonjs/src}/useLinkBuilder.d.ts +0 -0
  319. /package/lib/typescript/{src → commonjs/src}/useLinkTo.d.ts +0 -0
  320. /package/lib/typescript/{src → commonjs/src}/useLinking.d.ts +0 -0
  321. /package/lib/typescript/{src → commonjs/src}/useLinking.native.d.ts +0 -0
  322. /package/lib/typescript/{src → commonjs/src}/useLocale.d.ts +0 -0
  323. /package/lib/typescript/{src → commonjs/src}/useThenable.d.ts +0 -0
  324. /package/lib/typescript/{src → commonjs/src}/useUnhandledLinking.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../../src/theming/fonts.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDkC,CAAC"}
@@ -0,0 +1,159 @@
1
+ import type { getActionFromState as getActionFromStateDefault, getPathFromState as getPathFromStateDefault, getStateFromPath as getStateFromPathDefault, PathConfigMap, Route } from '@react-navigation/core';
2
+ declare global {
3
+ namespace ReactNavigation {
4
+ interface Theme extends NativeTheme {
5
+ }
6
+ }
7
+ }
8
+ type FontStyle = {
9
+ fontFamily: string;
10
+ fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
11
+ };
12
+ interface NativeTheme {
13
+ dark: boolean;
14
+ colors: {
15
+ primary: string;
16
+ background: string;
17
+ card: string;
18
+ text: string;
19
+ border: string;
20
+ notification: string;
21
+ };
22
+ fonts: {
23
+ regular: FontStyle;
24
+ medium: FontStyle;
25
+ bold: FontStyle;
26
+ heavy: FontStyle;
27
+ };
28
+ }
29
+ export type Theme = NativeTheme;
30
+ export type LocaleDirection = 'ltr' | 'rtl';
31
+ export type LinkingOptions<ParamList extends {}> = {
32
+ /**
33
+ * Whether deep link handling should be enabled.
34
+ * Defaults to true.
35
+ */
36
+ enabled?: boolean;
37
+ /**
38
+ * The prefixes are stripped from the URL before parsing them.
39
+ * Usually they are the `scheme` + `host` (e.g. `myapp://chat?user=jane`)
40
+ *
41
+ * This is not supported on Web.
42
+ *
43
+ * @example
44
+ * ```js
45
+ * {
46
+ * prefixes: [
47
+ * "myapp://", // App-specific scheme
48
+ * "https://example.com", // Prefix for universal links
49
+ * "https://*.example.com" // Prefix which matches any subdomain
50
+ * ]
51
+ * }
52
+ * ```
53
+ */
54
+ prefixes: string[];
55
+ /**
56
+ * Optional function which takes an incoming URL returns a boolean
57
+ * indicating whether React Navigation should handle it.
58
+ *
59
+ * This can be used to disable deep linking for specific URLs.
60
+ * e.g. URLs used for authentication, and not for deep linking to screens.
61
+ *
62
+ * This is not supported on Web.
63
+ *
64
+ * @example
65
+ * ```js
66
+ * {
67
+ * // Filter out URLs used by expo-auth-session
68
+ * filter: (url) => !url.includes('+expo-auth-session')
69
+ * }
70
+ * ```
71
+ */
72
+ filter?: (url: string) => boolean;
73
+ /**
74
+ * Config to fine-tune how to parse the path.
75
+ *
76
+ * @example
77
+ * ```js
78
+ * {
79
+ * Chat: {
80
+ * path: 'chat/:author/:id',
81
+ * parse: { id: Number }
82
+ * }
83
+ * }
84
+ * ```
85
+ */
86
+ config?: {
87
+ /**
88
+ * Path string to match against for the whole navigation tree.
89
+ * It's not possible to specify params here since this doesn't belong to a screen.
90
+ * This is useful when the whole app is under a specific path.
91
+ * e.g. all of the screens are under `/admin` in `https://example.com/admin`
92
+ */
93
+ path?: string;
94
+ /**
95
+ * Path configuration for child screens.
96
+ */
97
+ screens: PathConfigMap<ParamList>;
98
+ /**
99
+ * Name of the initial route to use for the root navigator.
100
+ */
101
+ initialRouteName?: keyof ParamList;
102
+ };
103
+ /**
104
+ * Custom function to get the initial URL used for linking.
105
+ * Uses `Linking.getInitialURL()` by default.
106
+ *
107
+ * This is not supported on Web.
108
+ *
109
+ * @example
110
+ * ```js
111
+ * {
112
+ * getInitialURL () => Linking.getInitialURL(),
113
+ * }
114
+ * ```
115
+ */
116
+ getInitialURL?: () => string | null | undefined | Promise<string | null | undefined>;
117
+ /**
118
+ * Custom function to get subscribe to URL updates.
119
+ * Uses `Linking.addEventListener('url', callback)` by default.
120
+ *
121
+ * This is not supported on Web.
122
+ *
123
+ * @example
124
+ * ```js
125
+ * {
126
+ * subscribe: (listener) => {
127
+ * const onReceiveURL = ({ url }) => listener(url);
128
+ *
129
+ * Linking.addEventListener('url', onReceiveURL);
130
+ *
131
+ * return () => Linking.removeEventListener('url', onReceiveURL);
132
+ * }
133
+ * }
134
+ * ```
135
+ */
136
+ subscribe?: (listener: (url: string) => void) => undefined | void | (() => void);
137
+ /**
138
+ * Custom function to parse the URL to a valid navigation state (advanced).
139
+ */
140
+ getStateFromPath?: typeof getStateFromPathDefault;
141
+ /**
142
+ * Custom function to convert the state object to a valid URL (advanced).
143
+ * Only applicable on Web.
144
+ */
145
+ getPathFromState?: typeof getPathFromStateDefault;
146
+ /**
147
+ * Custom function to convert the state object to a valid action (advanced).
148
+ */
149
+ getActionFromState?: typeof getActionFromStateDefault;
150
+ };
151
+ export type DocumentTitleOptions = {
152
+ enabled?: boolean;
153
+ formatter?: (options: Record<string, any> | undefined, route: Route<string> | undefined) => string;
154
+ };
155
+ export type ServerContainerRef = {
156
+ getCurrentOptions(): Record<string, any> | undefined;
157
+ };
158
+ export {};
159
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,gBAAgB,IAAI,uBAAuB,EAC3C,gBAAgB,IAAI,uBAAuB,EAC3C,aAAa,EACb,KAAK,EACN,MAAM,wBAAwB,CAAC;AAEhC,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,eAAe,CAAC;QACxB,UAAU,KAAM,SAAQ,WAAW;SAAG;KACvC;CACF;AAED,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EACN,QAAQ,GACR,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;CACX,CAAC;AAEF,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,SAAS,CAAC;QACnB,MAAM,EAAE,SAAS,CAAC;QAClB,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;CACH;AAED,MAAM,MAAM,KAAK,GAAG,WAAW,CAAC;AAEhC,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,CAAC;AAE5C,MAAM,MAAM,cAAc,CAAC,SAAS,SAAS,EAAE,IAAI;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAClC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE;QACP;;;;;WAKG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QAClC;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,SAAS,CAAC;KACpC,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MACZ,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACvC;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KAC5B,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EACxC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,KAC7B,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
2
+ export declare function useBackButton(_: React.RefObject<NavigationContainerRef<ParamListBase>>): void;
3
+ //# sourceMappingURL=useBackButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBackButton.d.ts","sourceRoot":"","sources":["../../../../src/useBackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAGhC,wBAAgB,aAAa,CAC3B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,QAI1D"}
@@ -0,0 +1,4 @@
1
+ import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
2
+ import * as React from 'react';
3
+ export declare function useBackButton(ref: React.RefObject<NavigationContainerRef<ParamListBase>>): void;
4
+ //# sourceMappingURL=useBackButton.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBackButton.native.d.ts","sourceRoot":"","sources":["../../../../src/useBackButton.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,aAAa,CAC3B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,QAwB5D"}
@@ -0,0 +1,8 @@
1
+ import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
2
+ import * as React from 'react';
3
+ import type { DocumentTitleOptions } from './types';
4
+ /**
5
+ * Set the document title for the active screen
6
+ */
7
+ export declare function useDocumentTitle(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { enabled, formatter, }?: DocumentTitleOptions): void;
8
+ //# sourceMappingURL=useDocumentTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../../src/useDocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,EAC3D,EACE,OAAc,EACd,SAA6D,GAC9D,GAAE,oBAAyB,QAwB7B"}
@@ -0,0 +1,2 @@
1
+ export declare function useDocumentTitle(): void;
2
+ //# sourceMappingURL=useDocumentTitle.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentTitle.native.d.ts","sourceRoot":"","sources":["../../../../src/useDocumentTitle.native.tsx"],"names":[],"mappings":"AACA,wBAAgB,gBAAgB,SAE/B"}
@@ -0,0 +1,25 @@
1
+ import { CommonActions, type ParamListBase } from '@react-navigation/core';
2
+ /**
3
+ * Helpers to build href or action based on the linking options.
4
+ * @returns `buildHref` to build an `href` for screen and `buildAction` to build an action from an `href`.
5
+ */
6
+ export declare function useLinkBuilder(): {
7
+ buildHref: (name: string, params?: object) => string | undefined;
8
+ buildAction: (href: string) => {
9
+ type: "NAVIGATE";
10
+ payload: {
11
+ name: string;
12
+ params?: import("@react-navigation/core").NavigatorScreenParams<Readonly<{
13
+ key: string;
14
+ index: number;
15
+ routeNames: string[];
16
+ history?: unknown[];
17
+ routes: import("@react-navigation/core").NavigationRoute<ParamListBase, string>[];
18
+ type: string;
19
+ stale: false;
20
+ }>>;
21
+ path?: string;
22
+ };
23
+ } | CommonActions.Action;
24
+ };
25
+ //# sourceMappingURL=useLinkBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkBuilder.d.ts","sourceRoot":"","sources":["../../../../src/useLinkBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAOb,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAqChC;;;GAGG;AACH,wBAAgB,cAAc;sBAKnB,MAAM,WAAW,MAAM;wBA6BvB,MAAM;;;;;;;;;;;;;;;;EA0BhB"}
@@ -0,0 +1,34 @@
1
+ import { type NavigationAction } from '@react-navigation/core';
2
+ import * as React from 'react';
3
+ import { type GestureResponderEvent } from 'react-native';
4
+ export type LinkProps<ParamList extends ReactNavigation.RootParamList, RouteName extends keyof ParamList = keyof ParamList> = ({
5
+ href?: string;
6
+ action?: NavigationAction;
7
+ } & {
8
+ [Screen in keyof ParamList]: undefined extends ParamList[Screen] ? {
9
+ screen: Screen;
10
+ params?: ParamList[Screen];
11
+ } : {
12
+ screen: Screen;
13
+ params: ParamList[Screen];
14
+ };
15
+ }[RouteName]) | {
16
+ href?: string;
17
+ action: NavigationAction;
18
+ screen?: undefined;
19
+ params?: undefined;
20
+ };
21
+ /**
22
+ * Hook to get props for an anchor tag so it can work with in page navigation.
23
+ *
24
+ * @param props.screen Name of the screen to navigate to (e.g. `'Feeds'`).
25
+ * @param props.params Params to pass to the screen to navigate to (e.g. `{ sort: 'hot' }`).
26
+ * @param props.href Optional absolute path to use for the href (e.g. `/feeds/hot`).
27
+ * @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.
28
+ */
29
+ export declare function useLinkProps<ParamList extends ReactNavigation.RootParamList>({ screen, params, href, action, }: LinkProps<ParamList>): {
30
+ href: string | undefined;
31
+ accessibilityRole: "link";
32
+ onPress: (e?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
33
+ };
34
+ //# sourceMappingURL=useLinkProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkProps.d.ts","sourceRoot":"","sources":["../../../../src/useLinkProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAKtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,qBAAqB,EAAY,MAAM,cAAc,CAAC;AAIpE,MAAM,MAAM,SAAS,CACnB,SAAS,SAAS,eAAe,CAAC,aAAa,EAC/C,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,SAAS,IAEjD,CAAC;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B,GAAG;KACD,MAAM,IAAI,MAAM,SAAS,GAAG,SAAS,SAAS,SAAS,CAAC,MAAM,CAAC,GAC5D;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;KAAE,GAC9C;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;KAAE;CAClD,CAAC,SAAS,CAAC,CAAC,GACb;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AA+BN;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,SAAS,SAAS,eAAe,CAAC,aAAa,EAAE,EAC5E,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,GACP,EAAE,SAAS,CAAC,SAAS,CAAC;;;kBAMf,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,qBAAqB;EA+D9E"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Helper to navigate to a screen using a href based on the linking options.
3
+ * @returns function that receives the href to navigate to.
4
+ */
5
+ export declare function useLinkTo(): (href: string) => void;
6
+ //# sourceMappingURL=useLinkTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkTo.d.ts","sourceRoot":"","sources":["../../../../src/useLinkTo.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,SAAS,WAKd,MAAM,UAehB"}
@@ -0,0 +1,14 @@
1
+ import { getStateFromPath as getStateFromPathDefault, type NavigationContainerRef, type ParamListBase } from '@react-navigation/core';
2
+ import * as React from 'react';
3
+ import type { LinkingOptions } from './types';
4
+ type ResultState = ReturnType<typeof getStateFromPathDefault>;
5
+ /**
6
+ * Run async function in series as it's called.
7
+ */
8
+ export declare const series: (cb: () => Promise<void>) => () => void;
9
+ type Options = LinkingOptions<ParamListBase>;
10
+ export declare function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { enabled, config, getStateFromPath, getPathFromState, getActionFromState, }: Options, onUnhandledLinking: (lastUnhandledLining: string | undefined) => void): {
11
+ getInitialState: () => PromiseLike<ResultState | undefined>;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=useLinking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinking.d.ts","sourceRoot":"","sources":["../../../../src/useLinking.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,gBAAgB,IAAI,uBAAuB,EAC3C,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AA0C9D;;GAEG;AACH,eAAO,MAAM,MAAM,OAAQ,MAAM,OAAO,CAAC,IAAI,CAAC,eAO7C,CAAC;AAIF,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE7C,wBAAgB,UAAU,CACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,EAC3D,EACE,OAAc,EACd,MAAM,EACN,gBAA0C,EAC1C,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO,EACV,kBAAkB,EAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI;2BAmGhD,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC;EAkQ1D"}
@@ -0,0 +1,33 @@
1
+ import { type NavigationContainerRef, type ParamListBase } from '@react-navigation/core';
2
+ import * as React from 'react';
3
+ import type { LinkingOptions } from './types';
4
+ type Options = LinkingOptions<ParamListBase>;
5
+ export declare function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { enabled, prefixes, filter, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: Options, onUnhandledLinking: (lastUnhandledLining: string | undefined) => void): {
6
+ getInitialState: () => PromiseLike<(Partial<Omit<Readonly<{
7
+ key: string;
8
+ index: number;
9
+ routeNames: string[];
10
+ history?: unknown[];
11
+ routes: import("@react-navigation/core").NavigationRoute<ParamListBase, string>[];
12
+ type: string;
13
+ stale: false;
14
+ }>, "stale" | "routes">> & Readonly<{
15
+ stale?: true;
16
+ routes: import("@react-navigation/core").PartialRoute<import("@react-navigation/core").Route<string, object | undefined>>[];
17
+ }> & {
18
+ state?: Partial<Omit<Readonly<{
19
+ key: string;
20
+ index: number;
21
+ routeNames: string[];
22
+ history?: unknown[];
23
+ routes: import("@react-navigation/core").NavigationRoute<ParamListBase, string>[];
24
+ type: string;
25
+ stale: false;
26
+ }>, "stale" | "routes">> & Readonly<{
27
+ stale?: true;
28
+ routes: import("@react-navigation/core").PartialRoute<import("@react-navigation/core").Route<string, object | undefined>>[];
29
+ }> & any;
30
+ }) | undefined>;
31
+ };
32
+ export {};
33
+ //# sourceMappingURL=useLinking.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAI7C,wBAAgB,UAAU,CACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,EAC3D,EACE,OAAc,EACd,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAmBC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO,EACV,kBAAkB,EAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;EAkKtE"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Hook to access the text direction specified in the `NavigationContainer`.
3
+ */
4
+ export declare function useLocale(): {
5
+ direction: import("./types").LocaleDirection;
6
+ };
7
+ //# sourceMappingURL=useLocale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../../src/useLocale.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,SAAS;;EAUxB"}
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+ import type { ScrollView } from 'react-native';
3
+ type ScrollOptions = {
4
+ x?: number;
5
+ y?: number;
6
+ animated?: boolean;
7
+ };
8
+ type ScrollableView = {
9
+ scrollToTop(): void;
10
+ } | {
11
+ scrollTo(options: ScrollOptions): void;
12
+ } | {
13
+ scrollToOffset(options: {
14
+ offset: number;
15
+ animated?: boolean;
16
+ }): void;
17
+ } | {
18
+ scrollResponderScrollTo(options: ScrollOptions): void;
19
+ };
20
+ type ScrollableWrapper = {
21
+ getScrollResponder(): React.ReactNode | ScrollView;
22
+ } | {
23
+ getNode(): ScrollableView;
24
+ } | ScrollableView;
25
+ export declare function useScrollToTop(ref: React.RefObject<ScrollableWrapper>): void;
26
+ export {};
27
+ //# sourceMappingURL=useScrollToTop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollToTop.d.ts","sourceRoot":"","sources":["../../../../src/useScrollToTop.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,KAAK,aAAa,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEpE,KAAK,cAAc,GACf;IAAE,WAAW,IAAI,IAAI,CAAA;CAAE,GACvB;IAAE,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;CAAE,GAC1C;IAAE,cAAc,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GACzE;IAAE,uBAAuB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;CAAE,CAAC;AAE9D,KAAK,iBAAiB,GAClB;IAAE,kBAAkB,IAAI,KAAK,CAAC,SAAS,GAAG,UAAU,CAAA;CAAE,GACtD;IAAE,OAAO,IAAI,cAAc,CAAA;CAAE,GAC7B,cAAc,CAAC;AA8BnB,wBAAgB,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,QAoErE"}
@@ -0,0 +1,2 @@
1
+ export declare function useThenable<T>(create: () => PromiseLike<T>): [boolean, T | undefined];
2
+ //# sourceMappingURL=useThenable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThenable.d.ts","sourceRoot":"","sources":["../../../../src/useThenable.tsx"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,4BAuC1D"}
@@ -0,0 +1,7 @@
1
+ import { type NavigationState, type PartialState } from '@react-navigation/core';
2
+ export declare function UNSTABLE_useUnhandledLinking(): {
3
+ lastUnhandledLink: string | undefined;
4
+ getStateForRouteNamesChange: (currentState: NavigationState) => PartialState<NavigationState> | undefined;
5
+ clearUnhandledLink: () => void;
6
+ };
7
+ //# sourceMappingURL=useUnhandledLinking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnhandledLinking.d.ts","sourceRoot":"","sources":["../../../../src/useUnhandledLinking.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AA2BhC,wBAAgB,4BAA4B;;gDAU1B,eAAe,KAC5B,YAAY,CAAC,eAAe,CAAC,GAAG,SAAS;;EA+C7C"}