react-native-screen-transitions 1.2.0 → 2.0.1

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 (344) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +211 -156
  3. package/lib/commonjs/__tests__ /geometry.test.js +178 -0
  4. package/lib/commonjs/__tests__ /geometry.test.js.map +1 -0
  5. package/lib/commonjs/components/bounds-activator.js +33 -0
  6. package/lib/commonjs/components/bounds-activator.js.map +1 -0
  7. package/lib/commonjs/components/controllers/screen-lifecycle.js +66 -0
  8. package/lib/commonjs/components/controllers/screen-lifecycle.js.map +1 -0
  9. package/lib/commonjs/components/create-transition-aware-component.js +96 -0
  10. package/lib/commonjs/components/create-transition-aware-component.js.map +1 -0
  11. package/lib/commonjs/components/root-transition-aware.js +56 -0
  12. package/lib/commonjs/components/root-transition-aware.js.map +1 -0
  13. package/lib/commonjs/configs/index.js +12 -0
  14. package/lib/commonjs/configs/index.js.map +1 -0
  15. package/lib/commonjs/configs/presets.js +206 -0
  16. package/lib/commonjs/configs/presets.js.map +1 -0
  17. package/lib/commonjs/configs/specs.js +14 -0
  18. package/lib/commonjs/configs/specs.js.map +1 -0
  19. package/lib/commonjs/hooks/animation/use-associated-style.js +36 -0
  20. package/lib/commonjs/hooks/animation/use-associated-style.js.map +1 -0
  21. package/lib/commonjs/hooks/animation/use-screen-animation.js +120 -0
  22. package/lib/commonjs/hooks/animation/use-screen-animation.js.map +1 -0
  23. package/lib/commonjs/hooks/bounds/use-bound-measurer.js +52 -0
  24. package/lib/commonjs/hooks/bounds/use-bound-measurer.js.map +1 -0
  25. package/lib/commonjs/hooks/gestures/use-build-gestures.js +239 -0
  26. package/lib/commonjs/hooks/gestures/use-build-gestures.js.map +1 -0
  27. package/lib/commonjs/hooks/gestures/use-scroll-progress.js +57 -0
  28. package/lib/commonjs/hooks/gestures/use-scroll-progress.js.map +1 -0
  29. package/lib/commonjs/hooks/use-stable-callback.js +17 -0
  30. package/lib/commonjs/hooks/use-stable-callback.js.map +1 -0
  31. package/lib/commonjs/index.js +37 -0
  32. package/lib/commonjs/index.js.map +1 -0
  33. package/lib/commonjs/integrations/native-stack/navigators/createNativeStackNavigator.js +68 -0
  34. package/lib/commonjs/integrations/native-stack/navigators/createNativeStackNavigator.js.map +1 -0
  35. package/lib/commonjs/integrations/native-stack/utils/debounce.js +16 -0
  36. package/lib/commonjs/integrations/native-stack/utils/debounce.js.map +1 -0
  37. package/lib/commonjs/integrations/native-stack/utils/getModalRoutesKeys.js +17 -0
  38. package/lib/commonjs/integrations/native-stack/utils/getModalRoutesKeys.js.map +1 -0
  39. package/lib/commonjs/integrations/native-stack/utils/useAnimatedHeaderHeight.js +18 -0
  40. package/lib/commonjs/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -0
  41. package/lib/commonjs/integrations/native-stack/utils/useDismissedRouteError.js +22 -0
  42. package/lib/commonjs/integrations/native-stack/utils/useDismissedRouteError.js.map +1 -0
  43. package/lib/commonjs/integrations/native-stack/utils/useInvalidPreventRemoveError.js +25 -0
  44. package/lib/commonjs/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -0
  45. package/lib/commonjs/integrations/native-stack/views/FontProcessor.js +10 -0
  46. package/lib/commonjs/integrations/native-stack/views/FontProcessor.js.map +1 -0
  47. package/lib/commonjs/integrations/native-stack/views/FontProcessor.native.js +18 -0
  48. package/lib/commonjs/integrations/native-stack/views/FontProcessor.native.js.map +1 -0
  49. package/lib/commonjs/integrations/native-stack/views/FooterComponent.js +17 -0
  50. package/lib/commonjs/integrations/native-stack/views/FooterComponent.js.map +1 -0
  51. package/lib/commonjs/integrations/native-stack/views/NativeStackView.js +138 -0
  52. package/lib/commonjs/integrations/native-stack/views/NativeStackView.js.map +1 -0
  53. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js +497 -0
  54. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +1 -0
  55. package/lib/commonjs/integrations/native-stack/views/useHeaderConfigProps.js +203 -0
  56. package/lib/commonjs/integrations/native-stack/views/useHeaderConfigProps.js.map +1 -0
  57. package/lib/commonjs/package.json +1 -0
  58. package/lib/commonjs/providers/gestures.js +64 -0
  59. package/lib/commonjs/providers/gestures.js.map +1 -0
  60. package/lib/commonjs/providers/keys.js +35 -0
  61. package/lib/commonjs/providers/keys.js.map +1 -0
  62. package/lib/commonjs/stores/animations.js +39 -0
  63. package/lib/commonjs/stores/animations.js.map +1 -0
  64. package/lib/commonjs/stores/bounds.js +64 -0
  65. package/lib/commonjs/stores/bounds.js.map +1 -0
  66. package/lib/commonjs/stores/gestures.js +38 -0
  67. package/lib/commonjs/stores/gestures.js.map +1 -0
  68. package/lib/commonjs/stores/navigator-dismiss-state.js +23 -0
  69. package/lib/commonjs/stores/navigator-dismiss-state.js.map +1 -0
  70. package/lib/commonjs/stores/utils/reset-stores-for-screen.js +20 -0
  71. package/lib/commonjs/stores/utils/reset-stores-for-screen.js.map +1 -0
  72. package/lib/commonjs/types/animation.js +6 -0
  73. package/lib/commonjs/types/animation.js.map +1 -0
  74. package/lib/commonjs/types/bounds.js +6 -0
  75. package/lib/commonjs/types/bounds.js.map +1 -0
  76. package/lib/commonjs/types/core.js +6 -0
  77. package/lib/commonjs/types/core.js.map +1 -0
  78. package/lib/commonjs/types/gesture.js +2 -0
  79. package/lib/commonjs/types/gesture.js.map +1 -0
  80. package/lib/commonjs/types/navigator.js +6 -0
  81. package/lib/commonjs/types/navigator.js.map +1 -0
  82. package/lib/commonjs/types/utils.js +2 -0
  83. package/lib/commonjs/types/utils.js.map +1 -0
  84. package/lib/commonjs/utils/animation/animate.js +18 -0
  85. package/lib/commonjs/utils/animation/animate.js.map +1 -0
  86. package/lib/commonjs/utils/animation/run-transition.js +48 -0
  87. package/lib/commonjs/utils/animation/run-transition.js.map +1 -0
  88. package/lib/commonjs/utils/bounds/_types/builder.js +6 -0
  89. package/lib/commonjs/utils/bounds/_types/builder.js.map +1 -0
  90. package/lib/commonjs/utils/bounds/_types/geometry.js +2 -0
  91. package/lib/commonjs/utils/bounds/_types/geometry.js.map +1 -0
  92. package/lib/commonjs/utils/bounds/_types/get-bounds.js +6 -0
  93. package/lib/commonjs/utils/bounds/_types/get-bounds.js.map +1 -0
  94. package/lib/commonjs/utils/bounds/build-bound-styles.js +145 -0
  95. package/lib/commonjs/utils/bounds/build-bound-styles.js.map +1 -0
  96. package/lib/commonjs/utils/bounds/constants.js +31 -0
  97. package/lib/commonjs/utils/bounds/constants.js.map +1 -0
  98. package/lib/commonjs/utils/bounds/flatten-styles.js +27 -0
  99. package/lib/commonjs/utils/bounds/flatten-styles.js.map +1 -0
  100. package/lib/commonjs/utils/bounds/geometry.js +94 -0
  101. package/lib/commonjs/utils/bounds/geometry.js.map +1 -0
  102. package/lib/commonjs/utils/bounds/get-bounds.js +51 -0
  103. package/lib/commonjs/utils/bounds/get-bounds.js.map +1 -0
  104. package/lib/commonjs/utils/bounds/index.js +38 -0
  105. package/lib/commonjs/utils/bounds/index.js.map +1 -0
  106. package/lib/commonjs/utils/bounds/style-composers.js +199 -0
  107. package/lib/commonjs/utils/bounds/style-composers.js.map +1 -0
  108. package/lib/commonjs/utils/gesture/apply-gesture-activation-criteria.js +81 -0
  109. package/lib/commonjs/utils/gesture/apply-gesture-activation-criteria.js.map +1 -0
  110. package/lib/commonjs/utils/gesture/map-gesture-to-progress.js +17 -0
  111. package/lib/commonjs/utils/gesture/map-gesture-to-progress.js.map +1 -0
  112. package/lib/commonjs/utils/gesture/normalize-gesture-translation.js +21 -0
  113. package/lib/commonjs/utils/gesture/normalize-gesture-translation.js.map +1 -0
  114. package/lib/commonjs/utils/index.js +17 -0
  115. package/lib/commonjs/utils/index.js.map +1 -0
  116. package/lib/module/__tests__ /geometry.test.js +178 -0
  117. package/lib/module/__tests__ /geometry.test.js.map +1 -0
  118. package/lib/module/components/bounds-activator.js +28 -0
  119. package/lib/module/components/bounds-activator.js.map +1 -0
  120. package/lib/module/components/controllers/screen-lifecycle.js +60 -0
  121. package/lib/module/components/controllers/screen-lifecycle.js.map +1 -0
  122. package/lib/module/components/create-transition-aware-component.js +91 -0
  123. package/lib/module/components/create-transition-aware-component.js.map +1 -0
  124. package/lib/module/components/root-transition-aware.js +51 -0
  125. package/lib/module/components/root-transition-aware.js.map +1 -0
  126. package/lib/module/configs/index.js +5 -0
  127. package/lib/module/configs/index.js.map +1 -0
  128. package/lib/module/configs/presets.js +197 -0
  129. package/lib/module/configs/presets.js.map +1 -0
  130. package/lib/module/configs/specs.js +10 -0
  131. package/lib/module/configs/specs.js.map +1 -0
  132. package/lib/module/hooks/animation/use-associated-style.js +32 -0
  133. package/lib/module/hooks/animation/use-associated-style.js.map +1 -0
  134. package/lib/module/hooks/animation/use-screen-animation.js +115 -0
  135. package/lib/module/hooks/animation/use-screen-animation.js.map +1 -0
  136. package/lib/module/hooks/bounds/use-bound-measurer.js +47 -0
  137. package/lib/module/hooks/bounds/use-bound-measurer.js.map +1 -0
  138. package/lib/module/hooks/gestures/use-build-gestures.js +234 -0
  139. package/lib/module/hooks/gestures/use-build-gestures.js.map +1 -0
  140. package/lib/module/hooks/gestures/use-scroll-progress.js +52 -0
  141. package/lib/module/hooks/gestures/use-scroll-progress.js.map +1 -0
  142. package/lib/module/hooks/use-stable-callback.js +13 -0
  143. package/lib/module/hooks/use-stable-callback.js.map +1 -0
  144. package/lib/module/index.js +21 -0
  145. package/lib/module/index.js.map +1 -0
  146. package/lib/module/integrations/native-stack/navigators/createNativeStackNavigator.js +63 -0
  147. package/lib/module/integrations/native-stack/navigators/createNativeStackNavigator.js.map +1 -0
  148. package/lib/module/integrations/native-stack/utils/debounce.js +12 -0
  149. package/lib/module/integrations/native-stack/utils/debounce.js.map +1 -0
  150. package/lib/module/integrations/native-stack/utils/getModalRoutesKeys.js +12 -0
  151. package/lib/module/integrations/native-stack/utils/getModalRoutesKeys.js.map +1 -0
  152. package/lib/module/integrations/native-stack/utils/useAnimatedHeaderHeight.js +12 -0
  153. package/lib/module/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -0
  154. package/lib/module/integrations/native-stack/utils/useDismissedRouteError.js +17 -0
  155. package/lib/module/integrations/native-stack/utils/useDismissedRouteError.js.map +1 -0
  156. package/lib/module/integrations/native-stack/utils/useInvalidPreventRemoveError.js +20 -0
  157. package/lib/module/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -0
  158. package/lib/module/integrations/native-stack/views/FontProcessor.js +6 -0
  159. package/lib/module/integrations/native-stack/views/FontProcessor.js.map +1 -0
  160. package/lib/module/integrations/native-stack/views/FontProcessor.native.js +12 -0
  161. package/lib/module/integrations/native-stack/views/FontProcessor.native.js.map +1 -0
  162. package/lib/module/integrations/native-stack/views/FooterComponent.js +13 -0
  163. package/lib/module/integrations/native-stack/views/FooterComponent.js.map +1 -0
  164. package/lib/module/integrations/native-stack/views/NativeStackView.js +133 -0
  165. package/lib/module/integrations/native-stack/views/NativeStackView.js.map +1 -0
  166. package/lib/module/integrations/native-stack/views/NativeStackView.native.js +492 -0
  167. package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +1 -0
  168. package/lib/module/integrations/native-stack/views/useHeaderConfigProps.js +199 -0
  169. package/lib/module/integrations/native-stack/views/useHeaderConfigProps.js.map +1 -0
  170. package/lib/module/providers/gestures.js +58 -0
  171. package/lib/module/providers/gestures.js.map +1 -0
  172. package/lib/module/providers/keys.js +29 -0
  173. package/lib/module/providers/keys.js.map +1 -0
  174. package/lib/module/stores/animations.js +33 -0
  175. package/lib/module/stores/animations.js.map +1 -0
  176. package/lib/module/stores/bounds.js +60 -0
  177. package/lib/module/stores/bounds.js.map +1 -0
  178. package/lib/module/stores/gestures.js +34 -0
  179. package/lib/module/stores/gestures.js.map +1 -0
  180. package/lib/module/stores/navigator-dismiss-state.js +19 -0
  181. package/lib/module/stores/navigator-dismiss-state.js.map +1 -0
  182. package/lib/module/stores/utils/reset-stores-for-screen.js +16 -0
  183. package/lib/module/stores/utils/reset-stores-for-screen.js.map +1 -0
  184. package/lib/module/types/animation.js +4 -0
  185. package/lib/module/types/animation.js.map +1 -0
  186. package/lib/module/types/bounds.js +4 -0
  187. package/lib/module/types/bounds.js.map +1 -0
  188. package/lib/module/types/core.js +4 -0
  189. package/lib/module/types/core.js.map +1 -0
  190. package/lib/module/types/gesture.js +2 -0
  191. package/lib/module/types/gesture.js.map +1 -0
  192. package/lib/module/types/navigator.js +4 -0
  193. package/lib/module/types/navigator.js.map +1 -0
  194. package/lib/module/types/utils.js +2 -0
  195. package/lib/module/types/utils.js.map +1 -0
  196. package/lib/module/utils/animation/animate.js +13 -0
  197. package/lib/module/utils/animation/animate.js.map +1 -0
  198. package/lib/module/utils/animation/run-transition.js +43 -0
  199. package/lib/module/utils/animation/run-transition.js.map +1 -0
  200. package/lib/module/utils/bounds/_types/builder.js +4 -0
  201. package/lib/module/utils/bounds/_types/builder.js.map +1 -0
  202. package/lib/module/utils/bounds/_types/geometry.js +2 -0
  203. package/lib/module/utils/bounds/_types/geometry.js.map +1 -0
  204. package/lib/module/utils/bounds/_types/get-bounds.js +4 -0
  205. package/lib/module/utils/bounds/_types/get-bounds.js.map +1 -0
  206. package/lib/module/utils/bounds/build-bound-styles.js +141 -0
  207. package/lib/module/utils/bounds/build-bound-styles.js.map +1 -0
  208. package/lib/module/utils/bounds/constants.js +26 -0
  209. package/lib/module/utils/bounds/constants.js.map +1 -0
  210. package/lib/module/utils/bounds/flatten-styles.js +23 -0
  211. package/lib/module/utils/bounds/flatten-styles.js.map +1 -0
  212. package/lib/module/utils/bounds/geometry.js +89 -0
  213. package/lib/module/utils/bounds/geometry.js.map +1 -0
  214. package/lib/module/utils/bounds/get-bounds.js +46 -0
  215. package/lib/module/utils/bounds/get-bounds.js.map +1 -0
  216. package/lib/module/utils/bounds/index.js +33 -0
  217. package/lib/module/utils/bounds/index.js.map +1 -0
  218. package/lib/module/utils/bounds/style-composers.js +191 -0
  219. package/lib/module/utils/bounds/style-composers.js.map +1 -0
  220. package/lib/module/utils/gesture/apply-gesture-activation-criteria.js +76 -0
  221. package/lib/module/utils/gesture/apply-gesture-activation-criteria.js.map +1 -0
  222. package/lib/module/utils/gesture/map-gesture-to-progress.js +12 -0
  223. package/lib/module/utils/gesture/map-gesture-to-progress.js.map +1 -0
  224. package/lib/module/utils/gesture/normalize-gesture-translation.js +16 -0
  225. package/lib/module/utils/gesture/normalize-gesture-translation.js.map +1 -0
  226. package/lib/module/utils/index.js +4 -0
  227. package/lib/module/utils/index.js.map +1 -0
  228. package/lib/typescript/components/bounds-activator.d.ts +8 -0
  229. package/lib/typescript/components/bounds-activator.d.ts.map +1 -0
  230. package/lib/typescript/components/controllers/screen-lifecycle.d.ts +6 -0
  231. package/lib/typescript/components/controllers/screen-lifecycle.d.ts.map +1 -0
  232. package/lib/typescript/components/create-transition-aware-component.d.ts +9 -0
  233. package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -0
  234. package/lib/typescript/components/root-transition-aware.d.ts +6 -0
  235. package/lib/typescript/components/root-transition-aware.d.ts.map +1 -0
  236. package/lib/typescript/configs/index.d.ts +3 -0
  237. package/lib/typescript/configs/index.d.ts.map +1 -0
  238. package/lib/typescript/configs/presets.d.ts +9 -0
  239. package/lib/typescript/configs/presets.d.ts.map +1 -0
  240. package/lib/typescript/configs/specs.d.ts +3 -0
  241. package/lib/typescript/configs/specs.d.ts.map +1 -0
  242. package/lib/typescript/hooks/animation/use-associated-style.d.ts +11 -0
  243. package/lib/typescript/hooks/animation/use-associated-style.d.ts.map +1 -0
  244. package/lib/typescript/hooks/animation/use-screen-animation.d.ts +7 -0
  245. package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +1 -0
  246. package/lib/typescript/hooks/bounds/use-bound-measurer.d.ts +18 -0
  247. package/lib/typescript/hooks/bounds/use-bound-measurer.d.ts.map +1 -0
  248. package/lib/typescript/hooks/gestures/use-build-gestures.d.ts +11 -0
  249. package/lib/typescript/hooks/gestures/use-build-gestures.d.ts.map +1 -0
  250. package/lib/typescript/hooks/gestures/use-scroll-progress.d.ts +14 -0
  251. package/lib/typescript/hooks/gestures/use-scroll-progress.d.ts.map +1 -0
  252. package/lib/typescript/hooks/use-stable-callback.d.ts +2 -0
  253. package/lib/typescript/hooks/use-stable-callback.d.ts.map +1 -0
  254. package/lib/typescript/index.d.ts +1275 -0
  255. package/lib/typescript/index.d.ts.map +1 -0
  256. package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts +16 -0
  257. package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -0
  258. package/lib/typescript/integrations/native-stack/utils/debounce.d.ts +2 -0
  259. package/lib/typescript/integrations/native-stack/utils/debounce.d.ts.map +1 -0
  260. package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts +4 -0
  261. package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts.map +1 -0
  262. package/lib/typescript/integrations/native-stack/utils/useAnimatedHeaderHeight.d.ts +5 -0
  263. package/lib/typescript/integrations/native-stack/utils/useAnimatedHeaderHeight.d.ts.map +1 -0
  264. package/lib/typescript/integrations/native-stack/utils/useDismissedRouteError.d.ts +6 -0
  265. package/lib/typescript/integrations/native-stack/utils/useDismissedRouteError.d.ts.map +1 -0
  266. package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts +3 -0
  267. package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +1 -0
  268. package/lib/typescript/integrations/native-stack/views/FontProcessor.d.ts +2 -0
  269. package/lib/typescript/integrations/native-stack/views/FontProcessor.d.ts.map +1 -0
  270. package/lib/typescript/integrations/native-stack/views/FontProcessor.native.d.ts +2 -0
  271. package/lib/typescript/integrations/native-stack/views/FontProcessor.native.d.ts.map +1 -0
  272. package/lib/typescript/integrations/native-stack/views/FooterComponent.d.ts +7 -0
  273. package/lib/typescript/integrations/native-stack/views/FooterComponent.d.ts.map +1 -0
  274. package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts +11 -0
  275. package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts.map +1 -0
  276. package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts +11 -0
  277. package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts.map +1 -0
  278. package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts +44 -0
  279. package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts.map +1 -0
  280. package/lib/typescript/providers/gestures.d.ts +22 -0
  281. package/lib/typescript/providers/gestures.d.ts.map +1 -0
  282. package/lib/typescript/providers/keys.d.ts +16 -0
  283. package/lib/typescript/providers/keys.d.ts.map +1 -0
  284. package/lib/typescript/stores/animations.d.ts +17 -0
  285. package/lib/typescript/stores/animations.d.ts.map +1 -0
  286. package/lib/typescript/stores/bounds.d.ts +21 -0
  287. package/lib/typescript/stores/bounds.d.ts.map +1 -0
  288. package/lib/typescript/stores/gestures.d.ts +21 -0
  289. package/lib/typescript/stores/gestures.d.ts.map +1 -0
  290. package/lib/typescript/stores/navigator-dismiss-state.d.ts +7 -0
  291. package/lib/typescript/stores/navigator-dismiss-state.d.ts.map +1 -0
  292. package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts +6 -0
  293. package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts.map +1 -0
  294. package/lib/typescript/types/animation.d.ts +65 -0
  295. package/lib/typescript/types/animation.d.ts.map +1 -0
  296. package/lib/typescript/types/bounds.d.ts +73 -0
  297. package/lib/typescript/types/bounds.d.ts.map +1 -0
  298. package/lib/typescript/types/core.d.ts +47 -0
  299. package/lib/typescript/types/core.d.ts.map +1 -0
  300. package/lib/typescript/types/gesture.d.ts +28 -0
  301. package/lib/typescript/types/gesture.d.ts.map +1 -0
  302. package/lib/typescript/types/navigator.d.ts +683 -0
  303. package/lib/typescript/types/navigator.d.ts.map +1 -0
  304. package/lib/typescript/types/utils.d.ts +5 -0
  305. package/lib/typescript/types/utils.d.ts.map +1 -0
  306. package/lib/typescript/utils/animation/animate.d.ts +4 -0
  307. package/lib/typescript/utils/animation/animate.d.ts.map +1 -0
  308. package/lib/typescript/utils/animation/run-transition.d.ts +11 -0
  309. package/lib/typescript/utils/animation/run-transition.d.ts.map +1 -0
  310. package/lib/typescript/utils/bounds/_types/builder.d.ts +36 -0
  311. package/lib/typescript/utils/bounds/_types/builder.d.ts.map +1 -0
  312. package/lib/typescript/utils/bounds/_types/geometry.d.ts +16 -0
  313. package/lib/typescript/utils/bounds/_types/geometry.d.ts.map +1 -0
  314. package/lib/typescript/utils/bounds/_types/get-bounds.d.ts +10 -0
  315. package/lib/typescript/utils/bounds/_types/get-bounds.d.ts.map +1 -0
  316. package/lib/typescript/utils/bounds/build-bound-styles.d.ts +4 -0
  317. package/lib/typescript/utils/bounds/build-bound-styles.d.ts.map +1 -0
  318. package/lib/typescript/utils/bounds/constants.d.ts +7 -0
  319. package/lib/typescript/utils/bounds/constants.d.ts.map +1 -0
  320. package/lib/typescript/utils/bounds/flatten-styles.d.ts +2 -0
  321. package/lib/typescript/utils/bounds/flatten-styles.d.ts.map +1 -0
  322. package/lib/typescript/utils/bounds/geometry.d.ts +24 -0
  323. package/lib/typescript/utils/bounds/geometry.d.ts.map +1 -0
  324. package/lib/typescript/utils/bounds/get-bounds.d.ts +4 -0
  325. package/lib/typescript/utils/bounds/get-bounds.d.ts.map +1 -0
  326. package/lib/typescript/utils/bounds/index.d.ts +15 -0
  327. package/lib/typescript/utils/bounds/index.d.ts.map +1 -0
  328. package/lib/typescript/utils/bounds/style-composers.d.ts +40 -0
  329. package/lib/typescript/utils/bounds/style-composers.d.ts.map +1 -0
  330. package/lib/typescript/utils/gesture/apply-gesture-activation-criteria.d.ts +17 -0
  331. package/lib/typescript/utils/gesture/apply-gesture-activation-criteria.d.ts.map +1 -0
  332. package/lib/typescript/utils/gesture/map-gesture-to-progress.d.ts +5 -0
  333. package/lib/typescript/utils/gesture/map-gesture-to-progress.d.ts.map +1 -0
  334. package/lib/typescript/utils/gesture/normalize-gesture-translation.d.ts +6 -0
  335. package/lib/typescript/utils/gesture/normalize-gesture-translation.d.ts.map +1 -0
  336. package/lib/typescript/utils/index.d.ts +2 -0
  337. package/lib/typescript/utils/index.d.ts.map +1 -0
  338. package/package.json +67 -54
  339. package/dist/index.d.mts +0 -1513
  340. package/dist/index.d.ts +0 -1513
  341. package/dist/index.js +0 -1283
  342. package/dist/index.js.map +0 -1
  343. package/dist/index.mjs +0 -1279
  344. package/dist/index.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3C,wBAYE;AAEF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mEAAmE,CAAC;AAE/G,YAAY,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type NavigatorTypeBagBase, type ParamListBase, type StackNavigationState, type StaticConfig, type TypedNavigator } from "@react-navigation/native";
2
+ import type { NativeStackNavigationEventMap, NativeStackNavigationOptions, NativeStackNavigationProp, NativeStackNavigatorProps } from "../../../types/navigator";
3
+ declare function NativeStackNavigator({ id, initialRouteName, children, layout, screenListeners, screenOptions, screenLayout, ...rest }: NativeStackNavigatorProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function createNativeStackNavigator<const ParamList extends ParamListBase, const NavigatorID extends string | undefined = undefined, const TypeBag extends NavigatorTypeBagBase = {
5
+ ParamList: ParamList;
6
+ NavigatorID: NavigatorID;
7
+ State: StackNavigationState<ParamList>;
8
+ ScreenOptions: NativeStackNavigationOptions;
9
+ EventMap: NativeStackNavigationEventMap;
10
+ NavigationList: {
11
+ [RouteName in keyof ParamList]: NativeStackNavigationProp<ParamList, RouteName, NavigatorID>;
12
+ };
13
+ Navigator: typeof NativeStackNavigator;
14
+ }, const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>>(config?: Config): TypedNavigator<TypeBag, Config>;
15
+ export {};
16
+ //# sourceMappingURL=createNativeStackNavigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createNativeStackNavigator.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/navigators/createNativeStackNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAGlB,KAAK,oBAAoB,EAGzB,KAAK,YAAY,EACjB,KAAK,cAAc,EAEnB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,KAAK,EACX,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,MAAM,0BAA0B,CAAC;AAGlC,iBAAS,oBAAoB,CAAC,EAC7B,EAAE,EACF,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,GAAG,IAAI,EACP,EAAE,yBAAyB,2CAuD3B;AAED,wBAAgB,0BAA0B,CACzC,KAAK,CAAC,SAAS,SAAS,aAAa,EACrC,KAAK,CAAC,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EACxD,KAAK,CAAC,OAAO,SAAS,oBAAoB,GAAG;IAC5C,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACvC,aAAa,EAAE,4BAA4B,CAAC;IAC5C,QAAQ,EAAE,6BAA6B,CAAC;IACxC,cAAc,EAAE;SACd,SAAS,IAAI,MAAM,SAAS,GAAG,yBAAyB,CACxD,SAAS,EACT,SAAS,EACT,WAAW,CACX;KACD,CAAC;IACF,SAAS,EAAE,OAAO,oBAAoB,CAAC;CACvC,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,EACjE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAElD"}
@@ -0,0 +1,2 @@
1
+ export declare function debounce<T extends (...args: any[]) => void>(func: T, duration: number): T;
2
+ //# sourceMappingURL=debounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/utils/debounce.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,MAAM,GACf,CAAC,CAUH"}
@@ -0,0 +1,4 @@
1
+ import type { Route } from "@react-navigation/native";
2
+ import type { NativeStackDescriptorMap } from "../../../types/navigator";
3
+ export declare const getModalRouteKeys: (routes: Route<string>[], descriptors: NativeStackDescriptorMap) => string[];
4
+ //# sourceMappingURL=getModalRoutesKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getModalRoutesKeys.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/utils/getModalRoutesKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,iBAAiB,GAC7B,QAAQ,KAAK,CAAC,MAAM,CAAC,EAAE,EACvB,aAAa,wBAAwB,aAc/B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import type { Animated } from 'react-native';
3
+ export declare const AnimatedHeaderHeightContext: React.Context<Animated.AnimatedInterpolation<number> | undefined>;
4
+ export declare function useAnimatedHeaderHeight(): Animated.AnimatedInterpolation<number>;
5
+ //# sourceMappingURL=useAnimatedHeaderHeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnimatedHeaderHeight.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/utils/useAnimatedHeaderHeight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,2BAA2B,mEAE5B,CAAC;AAEb,wBAAgB,uBAAuB,2CAUtC"}
@@ -0,0 +1,6 @@
1
+ import type { ParamListBase, StackNavigationState } from '@react-navigation/native';
2
+ import * as React from 'react';
3
+ export declare function useDismissedRouteError(state: StackNavigationState<ParamListBase>): {
4
+ setNextDismissedKey: React.Dispatch<React.SetStateAction<string | null>>;
5
+ };
6
+ //# sourceMappingURL=useDismissedRouteError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDismissedRouteError.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/utils/useDismissedRouteError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC;;EAsB3C"}
@@ -0,0 +1,3 @@
1
+ import type { NativeStackDescriptorMap } from "../../../types/navigator";
2
+ export declare function useInvalidPreventRemoveError(descriptors: NativeStackDescriptorMap): void;
3
+ //# sourceMappingURL=useInvalidPreventRemoveError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInvalidPreventRemoveError.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/utils/useInvalidPreventRemoveError.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,wBAAgB,4BAA4B,CAC3C,WAAW,EAAE,wBAAwB,QAwBrC"}
@@ -0,0 +1,2 @@
1
+ export declare function processFonts(_: (string | undefined)[]): (string | undefined)[];
2
+ //# sourceMappingURL=FontProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FontProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/FontProcessor.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAC1B,CAAC,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GACxB,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAExB"}
@@ -0,0 +1,2 @@
1
+ export declare function processFonts(fontFamilies: (string | undefined)[]): (string | undefined)[];
2
+ //# sourceMappingURL=FontProcessor.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FontProcessor.native.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/FontProcessor.native.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAC1B,YAAY,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GACnC,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAMxB"}
@@ -0,0 +1,7 @@
1
+ import type React from "react";
2
+ type FooterProps = {
3
+ children?: React.ReactNode;
4
+ };
5
+ export declare function FooterComponent({ children }: FooterProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=FooterComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterComponent.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/FooterComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,WAAW,2CAExD"}
@@ -0,0 +1,11 @@
1
+ import { type ParamListBase, type RouteProp, type StackNavigationState } from "@react-navigation/native";
2
+ import type { NativeStackDescriptor, NativeStackDescriptorMap, NativeStackNavigationHelpers } from "../../../types/navigator";
3
+ type Props = {
4
+ state: StackNavigationState<ParamListBase>;
5
+ navigation: NativeStackNavigationHelpers;
6
+ descriptors: NativeStackDescriptorMap;
7
+ describe: (route: RouteProp<ParamListBase>, placeholder: boolean) => NativeStackDescriptor;
8
+ };
9
+ export declare function NativeStackView({ state, descriptors, describe }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=NativeStackView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeStackView.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/NativeStackView.tsx"],"names":[],"mappings":"AASA,OAAO,EACN,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,oBAAoB,EAEzB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EACX,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,MAAM,0BAA0B,CAAC;AAGlC,KAAK,KAAK,GAAG;IACZ,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAE3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACT,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KAChB,qBAAqB,CAAC;CAC3B,CAAC;AAOF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA4ItE"}
@@ -0,0 +1,11 @@
1
+ import { type ParamListBase, type RouteProp, type StackNavigationState } from "@react-navigation/native";
2
+ import type { NativeStackDescriptor, NativeStackDescriptorMap, NativeStackNavigationHelpers } from "../../../types/navigator";
3
+ type Props = {
4
+ state: StackNavigationState<ParamListBase>;
5
+ navigation: NativeStackNavigationHelpers;
6
+ descriptors: NativeStackDescriptorMap;
7
+ describe: (route: RouteProp<ParamListBase>, placeholder: boolean) => NativeStackDescriptor;
8
+ };
9
+ export declare function NativeStackView({ state, navigation, descriptors, describe, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=NativeStackView.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/NativeStackView.native.tsx"],"names":[],"mappings":"AASA,OAAO,EAGN,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAGzB,MAAM,0BAA0B,CAAC;AAoBlC,OAAO,KAAK,EACX,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,MAAM,0BAA0B,CAAC;AAiclC,KAAK,KAAK,GAAG;IACZ,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACT,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KAChB,qBAAqB,CAAC;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAQ,GACR,EAAE,KAAK,2CA4HP"}
@@ -0,0 +1,44 @@
1
+ import { type Route } from "@react-navigation/native";
2
+ import type { NativeStackNavigationOptions } from "../../../types/navigator";
3
+ type Props = NativeStackNavigationOptions & {
4
+ headerTopInsetEnabled: boolean;
5
+ headerHeight: number;
6
+ headerBack: {
7
+ title?: string | undefined;
8
+ href: undefined;
9
+ } | undefined;
10
+ route: Route<string>;
11
+ };
12
+ export declare function useHeaderConfigProps({ headerBackImageSource, headerBackButtonDisplayMode, headerBackButtonMenuEnabled, headerBackTitle, headerBackTitleStyle, headerBackVisible, headerShadowVisible, headerLargeStyle, headerLargeTitle, headerLargeTitleShadowVisible, headerLargeTitleStyle, headerBackground, headerLeft, headerRight, headerShown, headerStyle, headerBlurEffect, headerTintColor, headerTitle, headerTitleAlign, headerTitleStyle, headerTransparent, headerSearchBarOptions, headerTopInsetEnabled, headerBack, route, title, }: Props): {
13
+ readonly backButtonInCustomView: boolean;
14
+ readonly backgroundColor: string;
15
+ readonly backTitle: string | undefined;
16
+ readonly backTitleVisible: boolean | undefined;
17
+ readonly backButtonDisplayMode: import("react-native-screens").BackButtonDisplayMode | undefined;
18
+ readonly backTitleFontFamily: string | undefined;
19
+ readonly backTitleFontSize: number | undefined;
20
+ readonly blurEffect: import("react-native-screens").BlurEffectTypes | undefined;
21
+ readonly color: string;
22
+ readonly direction: import("@react-navigation/native").LocaleDirection;
23
+ readonly disableBackButtonMenu: boolean;
24
+ readonly hidden: boolean;
25
+ readonly hideBackButton: boolean;
26
+ readonly hideShadow: boolean | undefined;
27
+ readonly largeTitle: boolean | undefined;
28
+ readonly largeTitleBackgroundColor: string | undefined;
29
+ readonly largeTitleColor: string | undefined;
30
+ readonly largeTitleFontFamily: string | undefined;
31
+ readonly largeTitleFontSize: number | undefined;
32
+ readonly largeTitleFontWeight: string | undefined;
33
+ readonly largeTitleHideShadow: boolean;
34
+ readonly title: string;
35
+ readonly titleColor: string | undefined;
36
+ readonly titleFontFamily: string | undefined;
37
+ readonly titleFontSize: number | undefined;
38
+ readonly titleFontWeight: string;
39
+ readonly topInsetEnabled: boolean;
40
+ readonly translucent: boolean;
41
+ readonly children: import("react/jsx-runtime").JSX.Element;
42
+ };
43
+ export {};
44
+ //# sourceMappingURL=useHeaderConfigProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderConfigProps.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/useHeaderConfigProps.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAuB,MAAM,0BAA0B,CAAC;AAY3E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAG7E,KAAK,KAAK,GAAG,4BAA4B,GAAG;IAC3C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG,SAAS,CAAC;IACxE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACpC,qBAAqB,EACrB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,UAAU,EACV,KAAK,EACL,KAAK,GACL,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmPP"}
@@ -0,0 +1,22 @@
1
+ import type { GestureType } from "react-native-gesture-handler";
2
+ import type { SharedValue } from "react-native-reanimated";
3
+ export type ScrollProgress = {
4
+ x: number;
5
+ y: number;
6
+ contentHeight: number;
7
+ contentWidth: number;
8
+ layoutHeight: number;
9
+ layoutWidth: number;
10
+ };
11
+ export interface GestureContextType {
12
+ panGesture: GestureType;
13
+ nativeGesture: GestureType;
14
+ scrollProgress: SharedValue<ScrollProgress>;
15
+ }
16
+ type ScreenGestureProviderProps = {
17
+ children: React.ReactNode;
18
+ };
19
+ export declare const ScreenGestureProvider: ({ children, }: ScreenGestureProviderProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const useGestureContext: () => GestureContextType;
21
+ export {};
22
+ //# sourceMappingURL=gestures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../src/providers/gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,MAAM,MAAM,cAAc,GAAG;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAClC,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;IAC3B,cAAc,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CAC5C;AAED,KAAK,0BAA0B,GAAG;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAaF,eAAO,MAAM,qBAAqB,GAAI,eAEnC,0BAA0B,4CA2B5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,0BAU7B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { NativeStackDescriptor } from "../types/navigator";
2
+ interface KeysContextType {
3
+ previous?: NativeStackDescriptor;
4
+ current: NativeStackDescriptor;
5
+ next?: NativeStackDescriptor;
6
+ }
7
+ interface KeysProviderProps {
8
+ children: React.ReactNode;
9
+ previous?: NativeStackDescriptor;
10
+ current: NativeStackDescriptor;
11
+ next?: NativeStackDescriptor;
12
+ }
13
+ export declare const KeysProvider: ({ children, previous, current, next, }: KeysProviderProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const useKeys: () => KeysContextType;
15
+ export {};
16
+ //# sourceMappingURL=keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/providers/keys.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,UAAU,eAAe;IACxB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC7B;AAID,UAAU,iBAAiB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,GAAI,wCAK1B,iBAAiB,4CAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,QAAO,eAM1B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type SharedValue } from "react-native-reanimated";
2
+ import type { ScreenKey } from "../types/navigator";
3
+ export type AnimationMap = {
4
+ progress: SharedValue<number>;
5
+ closing: SharedValue<number>;
6
+ animating: SharedValue<number>;
7
+ };
8
+ export declare function getAnimation(key: ScreenKey, type: "progress" | "closing" | "animating"): SharedValue<number>;
9
+ export declare function getAll(key: ScreenKey): AnimationMap;
10
+ declare function clear(routeKey: ScreenKey): void;
11
+ export declare const Animations: {
12
+ getAnimation: typeof getAnimation;
13
+ clear: typeof clear;
14
+ getAll: typeof getAll;
15
+ };
16
+ export {};
17
+ //# sourceMappingURL=animations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../src/stores/animations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAiBF,wBAAgB,YAAY,CAC3B,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,WAAW,GACxC,WAAW,CAAC,MAAM,CAAC,CAErB;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,SAAS,gBAEpC;AAED,iBAAS,KAAK,CAAC,QAAQ,EAAE,SAAS,QAGjC;AAED,eAAO,MAAM,UAAU;;;;CAItB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type MeasuredDimensions, type StyleProps } from "react-native-reanimated";
2
+ import type { ScreenKey } from "../types/navigator";
3
+ declare function setBounds(screenId: string, boundId: string, bounds?: MeasuredDimensions | null, styles?: StyleProps): void;
4
+ declare function getBounds(screenId: string): Record<string, {
5
+ bounds: MeasuredDimensions;
6
+ styles: StyleProps;
7
+ }>;
8
+ declare function setActiveBoundId(boundId: string): void;
9
+ declare function getActiveBoundId(): string | null;
10
+ declare function clear(routeKey: ScreenKey): void;
11
+ declare function clearActive(): void;
12
+ export declare const Bounds: {
13
+ setBounds: typeof setBounds;
14
+ getBounds: typeof getBounds;
15
+ setActiveBoundId: typeof setActiveBoundId;
16
+ getActiveBoundId: typeof getActiveBoundId;
17
+ clear: typeof clear;
18
+ clearActive: typeof clearActive;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=bounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../src/stores/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,UAAU,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAWpD,iBAAS,SAAS,CACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,kBAAkB,GAAG,IAAW,EACxC,MAAM,GAAE,UAAe,QAYvB;AAED,iBAAS,SAAS,CAAC,QAAQ,EAAE,MAAM;YAxBT,kBAAkB;YAAU,UAAU;GA2B/D;AAED,iBAAS,gBAAgB,CAAC,OAAO,EAAE,MAAM,QAGxC;AAED,iBAAS,gBAAgB,kBAGxB;AAED,iBAAS,KAAK,CAAC,QAAQ,EAAE,SAAS,QAOjC;AAED,iBAAS,WAAW,SAGnB;AAED,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type SharedValue } from "react-native-reanimated";
2
+ import type { ScreenKey } from "../types/navigator";
3
+ export type GestureKey = "x" | "y" | "normalizedX" | "normalizedY" | "isDismissing" | "isDragging";
4
+ export type GestureMap = {
5
+ x: SharedValue<number>;
6
+ y: SharedValue<number>;
7
+ normalizedX: SharedValue<number>;
8
+ normalizedY: SharedValue<number>;
9
+ isDismissing: SharedValue<number>;
10
+ isDragging: SharedValue<number>;
11
+ };
12
+ declare function getGesture(routeKey: ScreenKey, gestureKey: GestureKey): SharedValue<number>;
13
+ declare function getRouteGestures(routeKey: ScreenKey): GestureMap;
14
+ declare function clear(routeKey: ScreenKey): void;
15
+ export declare const Gestures: {
16
+ getGesture: typeof getGesture;
17
+ getRouteGestures: typeof getRouteGestures;
18
+ clear: typeof clear;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=gestures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../src/stores/gestures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,UAAU,GACnB,GAAG,GACH,GAAG,GACH,aAAa,GACb,aAAa,GACb,cAAc,GACd,YAAY,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG;IACxB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAoBF,iBAAS,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,uBAE9D;AAED,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,SAAS,cAE5C;AAED,iBAAS,KAAK,CAAC,QAAQ,EAAE,SAAS,QAEjC;AAED,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const NavigatorDismissState: {
2
+ get(id: string | undefined): boolean;
3
+ set(id: string, val: boolean): void;
4
+ remove(id: string): void;
5
+ clear(): void;
6
+ };
7
+ //# sourceMappingURL=navigator-dismiss-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator-dismiss-state.d.ts","sourceRoot":"","sources":["../../../src/stores/navigator-dismiss-state.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;YACzB,MAAM,GAAG,SAAS,GAAG,OAAO;YAI5B,MAAM,OAAO,OAAO;eAGjB,MAAM;;CAMjB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { NativeStackDescriptor } from "../../types/navigator";
2
+ /**
3
+ * Reset all stores for a given screen
4
+ */
5
+ export declare const resetStoresForScreen: (current: NativeStackDescriptor) => void;
6
+ //# sourceMappingURL=reset-stores-for-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-stores-for-screen.d.ts","sourceRoot":"","sources":["../../../../src/stores/utils/reset-stores-for-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAKnE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,qBAAqB,SAKlE,CAAC"}
@@ -0,0 +1,65 @@
1
+ import type { ParamListBase, RouteProp } from "@react-navigation/native";
2
+ import type { StyleProps, WithSpringConfig, WithTimingConfig } from "react-native-reanimated";
3
+ import type { EdgeInsets } from "react-native-safe-area-context";
4
+ import type { BoundEntry, BoundsAccessor } from "./bounds";
5
+ import type { GestureValues } from "./gesture";
6
+ export type ScreenTransitionState = {
7
+ progress: number;
8
+ closing: number;
9
+ animating: number;
10
+ gesture: GestureValues;
11
+ bounds: Record<string, BoundEntry>;
12
+ route: RouteProp<ParamListBase>;
13
+ };
14
+ export interface ScreenInterpolationProps {
15
+ /** Values for the screen that is the focus of the transition (e.g., the one opening). */
16
+ previous: ScreenTransitionState | undefined;
17
+ current: ScreenTransitionState;
18
+ /** Values for the screen immediately behind the current one in the screen. */
19
+ next: ScreenTransitionState | undefined;
20
+ /** Layout measurements for the screen. */
21
+ layouts: {
22
+ /** The `width` and `height` of the screen container. */
23
+ screen: {
24
+ width: number;
25
+ height: number;
26
+ };
27
+ };
28
+ /** The safe area insets for the screen. */
29
+ insets: EdgeInsets;
30
+ /** The id of the active bound. */
31
+ activeBoundId: string;
32
+ /** Whether the screen is focused. */
33
+ focused: boolean;
34
+ /** The progress of the screen transitions (0-2). */
35
+ progress: number;
36
+ /** A function that returns a bounds builder for the screen. */
37
+ bounds: BoundsAccessor;
38
+ }
39
+ export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => TransitionInterpolatedStyle;
40
+ export type TransitionInterpolatedStyle = {
41
+ /**
42
+ * Animated style for the main screen view. Styles are only applied when Transition.View is present.
43
+ */
44
+ contentStyle?: StyleProps;
45
+ /**
46
+ * Animated style for a semi-transparent overlay. Styles are only applied when Transition.View is present.
47
+ */
48
+ overlayStyle?: StyleProps;
49
+ /**
50
+ * Define your own custom styles by using an id as the key: [id]: StyleProps
51
+ */
52
+ [id: string]: StyleProps | undefined;
53
+ };
54
+ /**
55
+ * A Reanimated animation configuration object.
56
+ */
57
+ export type AnimationConfig = WithSpringConfig | WithTimingConfig;
58
+ /**
59
+ * Defines separate animation configurations for opening and closing a screen.
60
+ */
61
+ export interface TransitionSpec {
62
+ open?: AnimationConfig;
63
+ close?: AnimationConfig;
64
+ }
65
+ //# sourceMappingURL=animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/types/animation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACxC,yFAAyF;IACzF,QAAQ,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC5C,OAAO,EAAE,qBAAqB,CAAC;IAC/B,8EAA8E;IAC9E,IAAI,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACxC,0CAA0C;IAC1C,OAAO,EAAE;QACR,wDAAwD;QACxD,MAAM,EAAE;YACP,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;SACf,CAAC;KACF,CAAC;IACF,2CAA2C;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,MAAM,EAAE,cAAc,CAAC;CACvB;AAED,MAAM,MAAM,uBAAuB,GAAG,CACrC,KAAK,EAAE,wBAAwB,KAC3B,2BAA2B,CAAC;AAEjC,MAAM,MAAM,2BAA2B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;OAEG;IACH,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,eAAe,CAAC;CACxB"}
@@ -0,0 +1,73 @@
1
+ import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
2
+ import type { ScreenPhase } from "./core";
3
+ /**
4
+ * Target style computation.
5
+ * - "transform": translates and scales (scaleX/scaleY), no width/height size
6
+ * - "size": translates and sizes (width/height), no scaleX/scaleY
7
+ * - "content": screen-level content transform that aligns the destination screen
8
+ * so the target bound matches the source at progress start
9
+ */
10
+ export type BoundsMethod = "transform" | "size" | "content";
11
+ export type BoundsBuilder = {
12
+ /**
13
+ * Include gesture offsets (x/y) in the computed transform for all methods.
14
+ * This syncs the focused screen’s gesture deltas with the previous screen’s bound
15
+ * to give the shared look while interacting.
16
+ */
17
+ gestures: (options?: {
18
+ x?: number;
19
+ y?: number;
20
+ }) => BoundsBuilder;
21
+ /**
22
+ * Animate to the full screen bounds as the destination.
23
+ * Useful when the next screen does not define a bound for the same id.
24
+ */
25
+ toFullscreen: () => BoundsBuilder;
26
+ /**
27
+ * Compute using absolute window coordinates (pageX/pageY).
28
+ * No relative delta math—good when elements are unconstrained by parent layout.
29
+ */
30
+ absolute: () => BoundsBuilder;
31
+ /**
32
+ * Compute using relative deltas between start/end bounds (dx/dy, scale).
33
+ * This makes the math bound-relative; great when elements are within layout constraints.
34
+ */
35
+ relative: () => BoundsBuilder;
36
+ /**
37
+ * Select transform method: translate + scaleX/scaleY (no width/height size).
38
+ * Note: x/y translation is applied for all methods when applicable.
39
+ */
40
+ transform: () => BoundsBuilder;
41
+ /**
42
+ * Select size method: translate + width/height interpolation (no scaleX/scaleY).
43
+ */
44
+ size: () => BoundsBuilder;
45
+ /**
46
+ * Select content method: screen-level transform to align destination content
47
+ * so its bound matches the source at progress start. This modifies where the
48
+ * bound sits within the screen rather than the bound’s own local transform.
49
+ */
50
+ content: () => BoundsBuilder;
51
+ /**
52
+ * Select content scale mode: "aspectFill" (fill), "aspectFit" (fit), or "auto" (default).
53
+ */
54
+ contentFill: () => BoundsBuilder;
55
+ /**
56
+ * Select content scale mode: "aspectFill" (fill), "aspectFit" (fit), or "auto" (default).
57
+ */
58
+ contentFit: () => BoundsBuilder;
59
+ /**
60
+ * Build the final animated style.
61
+ * If a method is not explicitly selected via transform/resize/content,
62
+ * the provided argument will be used; defaults to "transform".
63
+ */
64
+ build: (method?: BoundsMethod) => StyleProps;
65
+ };
66
+ export type BoundEntry = {
67
+ bounds: MeasuredDimensions;
68
+ styles: StyleProps;
69
+ };
70
+ export type BoundsAccessor = ((id?: string) => BoundsBuilder) & {
71
+ get: (id?: string, phase?: ScreenPhase) => BoundEntry;
72
+ };
73
+ //# sourceMappingURL=bounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../src/types/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,aAAa,CAAC;IAElE;;;OAGG;IACH,YAAY,EAAE,MAAM,aAAa,CAAC;IAElC;;;OAGG;IACH,QAAQ,EAAE,MAAM,aAAa,CAAC;IAE9B;;;OAGG;IACH,QAAQ,EAAE,MAAM,aAAa,CAAC;IAE9B;;;OAGG;IACH,SAAS,EAAE,MAAM,aAAa,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,MAAM,aAAa,CAAC;IAE1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,aAAa,CAAC;IAE7B;;OAEG;IACH,WAAW,EAAE,MAAM,aAAa,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,aAAa,CAAC;IAEhC;;;;OAIG;IACH,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,KAAK,UAAU,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,aAAa,CAAC,GAAG;IAC/D,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,KAAK,UAAU,CAAC;CACtD,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { AnimatedProps } from "react-native-reanimated";
2
+ import type { TransitionSpec } from "./animation";
3
+ export type ScreenPhase = "previous" | "current" | "next";
4
+ export type TransitionAwareProps<T extends object> = AnimatedProps<T> & {
5
+ /**
6
+ * Connects this component to custom animated styles defined in screenStyleInterpolator.
7
+ *
8
+ * When you return custom styles from your interpolator with a matching key,
9
+ * those styles will be applied to this component during transitions.
10
+ *
11
+ * @example
12
+ * // In your component:
13
+ * <Transition.View styleId="hero-image">
14
+ * <Image source={...} />
15
+ * </Transition.View>
16
+ *
17
+ * // In your screenStyleInterpolator:
18
+ * return {
19
+ * 'hero-image': {
20
+ * opacity: interpolate(progress, [0, 1], [0, 1]),
21
+ * transform: [{ scale: interpolate(progress, [0, 1], [0.8, 1]) }]
22
+ * }
23
+ * }
24
+ */
25
+ styleId?: string;
26
+ /**
27
+ * Marks this component for measurement to enable shared element transitions.
28
+ * Components with the same tag across different screens will animate between each other.
29
+ *
30
+ * @example
31
+ * // Screen A:
32
+ * <Transition.View sharedBoundTag="profile-avatar">
33
+ * <Avatar size="small" />
34
+ * </Transition.View>
35
+ *
36
+ * // Screen B:
37
+ * <Transition.View sharedBoundTag="profile-avatar">
38
+ * <Avatar size="large" />
39
+ * </Transition.View>
40
+ */
41
+ sharedBoundTag?: string;
42
+ };
43
+ export type TransitionConfig = {
44
+ open: TransitionSpec;
45
+ close: TransitionSpec;
46
+ };
47
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/types/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG;IACvE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;;;;OAcG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC;CACtB,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type GestureDirection = "horizontal" | "horizontal-inverted" | "vertical" | "vertical-inverted" | "bidirectional";
2
+ export type GestureValues = {
3
+ /**
4
+ * A `SharedValue` indicating if the user's finger is on the screen (0 or 1).
5
+ */
6
+ isDragging: number;
7
+ /**
8
+ * The live horizontal translation of the gesture.
9
+ */
10
+ x: number;
11
+ /**
12
+ * The live vertical translation of the gesture.
13
+ */
14
+ y: number;
15
+ /**
16
+ * The live normalized horizontal translation of the gesture (-1 to 1).
17
+ */
18
+ normalizedX: number;
19
+ /**
20
+ * The live normalized vertical translation of the gesture (-1 to 1).
21
+ */
22
+ normalizedY: number;
23
+ /**
24
+ * A flag indicating if the screen is in the process of dismissing.
25
+ */
26
+ isDismissing: number;
27
+ };
28
+ //# sourceMappingURL=gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../src/types/gesture.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACzB,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC"}