@react-navigation/native 8.0.0-alpha.2 → 8.0.0-alpha.20

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 (365) hide show
  1. package/android/build.gradle +96 -15
  2. package/android/src/main/java/org/reactnavigation/MaterialSymbolModule.kt +58 -58
  3. package/android/src/main/java/org/reactnavigation/MaterialSymbolTypeface.kt +81 -4
  4. package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +52 -7
  5. package/android/src/main/java/org/reactnavigation/MaterialSymbolViewManager.kt +14 -7
  6. package/android/src/main/java/org/reactnavigation/ReactNavigationPackage.kt +14 -15
  7. package/assets/fonts/MaterialSymbolsOutlined_100.ttf +0 -0
  8. package/assets/fonts/MaterialSymbolsOutlined_200.ttf +0 -0
  9. package/assets/fonts/MaterialSymbolsOutlined_300.ttf +0 -0
  10. package/{android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsOutlined.ttf → assets/fonts/MaterialSymbolsOutlined_400.ttf} +0 -0
  11. package/assets/fonts/MaterialSymbolsOutlined_500.ttf +0 -0
  12. package/assets/fonts/MaterialSymbolsOutlined_600.ttf +0 -0
  13. package/assets/fonts/MaterialSymbolsOutlined_700.ttf +0 -0
  14. package/assets/fonts/MaterialSymbolsRounded_100.ttf +0 -0
  15. package/assets/fonts/MaterialSymbolsRounded_200.ttf +0 -0
  16. package/assets/fonts/MaterialSymbolsRounded_300.ttf +0 -0
  17. package/assets/fonts/{MaterialSymbolsRounded.ttf → MaterialSymbolsRounded_400.ttf} +0 -0
  18. package/assets/fonts/MaterialSymbolsRounded_500.ttf +0 -0
  19. package/assets/fonts/MaterialSymbolsRounded_600.ttf +0 -0
  20. package/assets/fonts/MaterialSymbolsRounded_700.ttf +0 -0
  21. package/assets/fonts/MaterialSymbolsSharp_100.ttf +0 -0
  22. package/assets/fonts/MaterialSymbolsSharp_200.ttf +0 -0
  23. package/assets/fonts/MaterialSymbolsSharp_300.ttf +0 -0
  24. package/assets/fonts/{MaterialSymbolsSharp.ttf → MaterialSymbolsSharp_400.ttf} +0 -0
  25. package/assets/fonts/MaterialSymbolsSharp_500.ttf +0 -0
  26. package/assets/fonts/MaterialSymbolsSharp_600.ttf +0 -0
  27. package/assets/fonts/MaterialSymbolsSharp_700.ttf +0 -0
  28. package/ios/ReactNavigationCornerInsetView.h +14 -0
  29. package/ios/ReactNavigationCornerInsetView.mm +182 -0
  30. package/ios/ReactNavigationCornerInsetView.swift +193 -0
  31. package/ios/ReactNavigationCornerInsetViewComponentDescriptor.h +23 -0
  32. package/ios/ReactNavigationCornerInsetViewShadowNode.h +27 -0
  33. package/ios/ReactNavigationCornerInsetViewShadowNode.mm +42 -0
  34. package/ios/ReactNavigationCornerInsetViewState.h +19 -0
  35. package/ios/ReactNavigationSFSymbolView.mm +21 -0
  36. package/ios/ReactNavigationSFSymbolView.swift +257 -7
  37. package/lib/module/NavigationContainer.js +16 -11
  38. package/lib/module/NavigationContainer.js.map +1 -1
  39. package/lib/module/ServerContainer.js +5 -4
  40. package/lib/module/ServerContainer.js.map +1 -1
  41. package/lib/module/ServerContext.js.map +1 -1
  42. package/lib/module/__stubs__/createStackNavigator.js +1 -3
  43. package/lib/module/__stubs__/createStackNavigator.js.map +1 -1
  44. package/lib/module/createStaticNavigation.js +5 -4
  45. package/lib/module/createStaticNavigation.js.map +1 -1
  46. package/lib/module/index.js +3 -1
  47. package/lib/module/index.js.map +1 -1
  48. package/lib/module/native/CornerInset.ios.js +66 -0
  49. package/lib/module/native/CornerInset.ios.js.map +1 -0
  50. package/lib/module/native/CornerInset.js +17 -0
  51. package/lib/module/native/CornerInset.js.map +1 -0
  52. package/lib/module/native/MaterialSymbol.android.js +8 -15
  53. package/lib/module/native/MaterialSymbol.android.js.map +1 -1
  54. package/lib/module/native/MaterialSymbolData.js +0 -9
  55. package/lib/module/native/MaterialSymbolData.js.map +1 -1
  56. package/lib/module/native/MaterialSymbolViewNativeComponent.ts +6 -2
  57. package/lib/module/native/ReactNavigationCornerInsetViewNativeComponent.ts +32 -0
  58. package/lib/module/native/SFSymbol.ios.js +24 -1
  59. package/lib/module/native/SFSymbol.ios.js.map +1 -1
  60. package/lib/module/native/SFSymbolViewNativeComponent.ts +15 -1
  61. package/lib/module/native/constants.js +14 -0
  62. package/lib/module/native/constants.js.map +1 -0
  63. package/lib/module/theming/DarkTheme.js +4 -4
  64. package/lib/module/theming/{DefaultTheme.js → LightTheme.js} +5 -5
  65. package/lib/module/theming/LightTheme.js.map +1 -0
  66. package/lib/module/theming/MaterialTheme.android.js +29 -0
  67. package/lib/module/theming/MaterialTheme.android.js.map +1 -0
  68. package/lib/module/theming/MaterialTheme.js +18 -0
  69. package/lib/module/theming/MaterialTheme.js.map +1 -0
  70. package/lib/module/useBackButton.js.map +1 -1
  71. package/lib/module/useDocumentTitle.js.map +1 -1
  72. package/lib/module/useLinkBuilder.js +4 -4
  73. package/lib/module/useLinkBuilder.js.map +1 -1
  74. package/lib/module/useLinkProps.js +5 -26
  75. package/lib/module/useLinkProps.js.map +1 -1
  76. package/lib/module/useLinkTo.js +1 -1
  77. package/lib/module/useLinkTo.js.map +1 -1
  78. package/lib/module/useLinking.js +40 -4
  79. package/lib/module/useLinking.js.map +1 -1
  80. package/lib/module/useLinking.native.js +20 -3
  81. package/lib/module/useLinking.native.js.map +1 -1
  82. package/lib/module/useLocale.js +1 -1
  83. package/lib/module/useLocale.js.map +1 -1
  84. package/lib/module/useRoutePath.js +1 -1
  85. package/lib/module/useRoutePath.js.map +1 -1
  86. package/lib/module/useScrollToTop.js +1 -1
  87. package/lib/module/useScrollToTop.js.map +1 -1
  88. package/lib/typescript/src/NavigationContainer.d.ts +12 -5
  89. package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
  90. package/lib/typescript/src/ServerContainer.d.ts +6 -3
  91. package/lib/typescript/src/ServerContainer.d.ts.map +1 -1
  92. package/lib/typescript/src/ServerContext.d.ts +1 -1
  93. package/lib/typescript/src/ServerContext.d.ts.map +1 -1
  94. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts +5 -8
  95. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +1 -1
  96. package/lib/typescript/src/createStaticNavigation.d.ts +5 -5
  97. package/lib/typescript/src/createStaticNavigation.d.ts.map +1 -1
  98. package/lib/typescript/src/index.d.ts +3 -1
  99. package/lib/typescript/src/index.d.ts.map +1 -1
  100. package/lib/typescript/src/native/CornerInset.d.ts +28 -0
  101. package/lib/typescript/src/native/CornerInset.d.ts.map +1 -0
  102. package/lib/typescript/src/native/CornerInset.ios.d.ts +8 -0
  103. package/lib/typescript/src/native/CornerInset.ios.d.ts.map +1 -0
  104. package/lib/typescript/src/native/MaterialSymbol.android.d.ts +2 -2
  105. package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
  106. package/lib/typescript/src/native/MaterialSymbolData.d.ts +0 -5
  107. package/lib/typescript/src/native/MaterialSymbolData.d.ts.map +1 -1
  108. package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts +3 -2
  109. package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts.map +1 -1
  110. package/lib/typescript/src/native/NativeMaterialSymbolModule.d.ts +1 -1
  111. package/lib/typescript/src/native/NativeMaterialSymbolModule.d.ts.map +1 -1
  112. package/lib/typescript/src/native/ReactNavigationCornerInsetViewNativeComponent.d.ts +14 -0
  113. package/lib/typescript/src/native/ReactNavigationCornerInsetViewNativeComponent.d.ts.map +1 -0
  114. package/lib/typescript/src/native/SFSymbol.ios.d.ts +1 -1
  115. package/lib/typescript/src/native/SFSymbol.ios.d.ts.map +1 -1
  116. package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts +15 -1
  117. package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts.map +1 -1
  118. package/lib/typescript/src/native/constants.d.ts +12 -0
  119. package/lib/typescript/src/native/constants.d.ts.map +1 -0
  120. package/lib/typescript/src/native/types.d.ts +143 -7
  121. package/lib/typescript/src/native/types.d.ts.map +1 -1
  122. package/lib/typescript/src/theming/DarkTheme.d.ts +4 -4
  123. package/lib/typescript/src/theming/{DefaultTheme.d.ts → LightTheme.d.ts} +5 -5
  124. package/lib/typescript/src/theming/LightTheme.d.ts.map +1 -0
  125. package/lib/typescript/src/theming/MaterialTheme.android.d.ts +127 -0
  126. package/lib/typescript/src/theming/MaterialTheme.android.d.ts.map +1 -0
  127. package/lib/typescript/src/theming/MaterialTheme.d.ts +114 -0
  128. package/lib/typescript/src/theming/MaterialTheme.d.ts.map +1 -0
  129. package/lib/typescript/src/types.d.ts +13 -13
  130. package/lib/typescript/src/types.d.ts.map +1 -1
  131. package/lib/typescript/src/useBackButton.d.ts +1 -1
  132. package/lib/typescript/src/useBackButton.d.ts.map +1 -1
  133. package/lib/typescript/src/useDocumentTitle.d.ts +1 -1
  134. package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -1
  135. package/lib/typescript/src/useLinkBuilder.d.ts +56 -66
  136. package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
  137. package/lib/typescript/src/useLinkProps.d.ts.map +1 -1
  138. package/lib/typescript/src/useLinking.d.ts +11 -13
  139. package/lib/typescript/src/useLinking.d.ts.map +1 -1
  140. package/lib/typescript/src/useLinking.native.d.ts +21 -23
  141. package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
  142. package/package.json +43 -26
  143. package/src/NavigationContainer.tsx +41 -32
  144. package/src/ServerContainer.tsx +3 -5
  145. package/src/ServerContext.tsx +6 -4
  146. package/src/__stubs__/createStackNavigator.tsx +6 -12
  147. package/src/createStaticNavigation.tsx +13 -17
  148. package/src/index.tsx +7 -1
  149. package/src/native/CornerInset.ios.tsx +85 -0
  150. package/src/native/CornerInset.tsx +40 -0
  151. package/src/native/MaterialSymbol.android.tsx +8 -19
  152. package/src/native/MaterialSymbolData.tsx +0 -6
  153. package/src/native/MaterialSymbolViewNativeComponent.ts +6 -2
  154. package/src/native/NativeMaterialSymbolModule.ts +3 -3
  155. package/src/native/ReactNavigationCornerInsetViewNativeComponent.ts +32 -0
  156. package/src/native/SFSymbol.ios.tsx +24 -1
  157. package/src/native/SFSymbolViewNativeComponent.ts +15 -1
  158. package/src/native/constants.tsx +11 -0
  159. package/src/native/types.tsx +182 -7
  160. package/src/theming/DarkTheme.tsx +4 -4
  161. package/src/theming/{DefaultTheme.tsx → LightTheme.tsx} +4 -4
  162. package/src/theming/MaterialTheme.android.tsx +30 -0
  163. package/src/theming/MaterialTheme.tsx +19 -0
  164. package/src/types.tsx +38 -36
  165. package/src/useBackButton.tsx +2 -2
  166. package/src/useDocumentTitle.tsx +2 -2
  167. package/src/useLinkBuilder.tsx +11 -5
  168. package/src/useLinkProps.tsx +8 -41
  169. package/src/useLinkTo.tsx +1 -1
  170. package/src/useLinking.native.tsx +41 -20
  171. package/src/useLinking.tsx +68 -9
  172. package/src/useLocale.tsx +1 -1
  173. package/src/useRoutePath.tsx +1 -1
  174. package/src/useScrollToTop.tsx +1 -1
  175. package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/results.bin +0 -1
  176. package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/transformed/classes/classes_dex/classes.dex +0 -0
  177. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/results.bin +0 -1
  178. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.dex +0 -0
  179. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.dex +0 -0
  180. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.dex +0 -0
  181. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.dex +0 -0
  182. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.dex +0 -0
  183. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/BuildConfig.dex +0 -0
  184. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$Companion.dex +0 -0
  185. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$WhenMappings.dex +0 -0
  186. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$getImageSource$future$1$1$1.dex +0 -0
  187. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule.dex +0 -0
  188. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolTypeface.dex +0 -0
  189. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolView.dex +0 -0
  190. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolViewManager$Companion.dex +0 -0
  191. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolViewManager.dex +0 -0
  192. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/ReactNavigationPackage.dex +0 -0
  193. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  194. package/android/build/generated/source/buildConfig/debug/org/reactnavigation/BuildConfig.java +0 -10
  195. package/android/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.java +0 -38
  196. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.java +0 -42
  197. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.java +0 -21
  198. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.java +0 -39
  199. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.java +0 -20
  200. package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
  201. package/android/build/generated/source/codegen/jni/ReactNavigationSpec-generated.cpp +0 -32
  202. package/android/build/generated/source/codegen/jni/ReactNavigationSpec.h +0 -31
  203. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ComponentDescriptors.cpp +0 -23
  204. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ComponentDescriptors.h +0 -25
  205. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/EventEmitters.cpp +0 -17
  206. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/EventEmitters.h +0 -30
  207. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.cpp +0 -101
  208. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.h +0 -55
  209. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI-generated.cpp +0 -31
  210. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI.h +0 -71
  211. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ShadowNodes.cpp +0 -18
  212. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ShadowNodes.h +0 -43
  213. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/States.cpp +0 -16
  214. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/States.h +0 -22
  215. package/android/build/generated/source/codegen/schema.json +0 -1
  216. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
  217. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  218. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  219. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  220. package/android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsRounded.ttf +0 -0
  221. package/android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsSharp.ttf +0 -0
  222. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  223. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  224. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  225. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  226. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  227. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  228. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  229. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  230. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-navigation_native_debug.kotlin_module +0 -0
  231. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.class +0 -0
  232. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.class +0 -0
  233. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.class +0 -0
  234. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
  235. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
  236. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/reactnavigation/BuildConfig.class +0 -0
  237. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  238. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
  239. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
  240. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  241. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  242. package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsOutlined.ttf +0 -0
  243. package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsRounded.ttf +0 -0
  244. package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsSharp.ttf +0 -0
  245. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-navigation_native_debug.kotlin_module +0 -0
  246. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.class +0 -0
  247. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.class +0 -0
  248. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.class +0 -0
  249. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
  250. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
  251. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/BuildConfig.class +0 -0
  252. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$Companion.class +0 -0
  253. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$WhenMappings.class +0 -0
  254. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$getImageSource$future$1$1$1.class +0 -0
  255. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule.class +0 -0
  256. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolTypeface.class +0 -0
  257. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolView.class +0 -0
  258. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolViewManager$Companion.class +0 -0
  259. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolViewManager.class +0 -0
  260. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/ReactNavigationPackage.class +0 -0
  261. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  262. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  263. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  264. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  265. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  266. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  267. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  268. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  269. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  270. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  271. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  272. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  273. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  274. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  275. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  276. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  277. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  278. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  279. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  280. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  281. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  282. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  283. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  284. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  285. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  286. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  287. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  288. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  289. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  290. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  291. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  292. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  293. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  294. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  295. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  296. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  297. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  298. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  299. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  300. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  301. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  302. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  303. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  304. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  305. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  306. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  307. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  308. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  309. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  310. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  311. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  312. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  313. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  314. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  315. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  316. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  317. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  318. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  319. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  320. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  321. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  322. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  323. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  324. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  325. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  326. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  327. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  328. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  329. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  330. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  331. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  332. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  333. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  334. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  335. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  336. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  337. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  338. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  339. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  340. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  341. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  342. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  343. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  344. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  345. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  346. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  347. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  348. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  349. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  350. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
  351. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  352. package/android/build/tmp/kotlin-classes/debug/META-INF/react-navigation_native_debug.kotlin_module +0 -0
  353. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$Companion.class +0 -0
  354. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$WhenMappings.class +0 -0
  355. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$getImageSource$future$1$1$1.class +0 -0
  356. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule.class +0 -0
  357. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolTypeface.class +0 -0
  358. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolView.class +0 -0
  359. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolViewManager$Companion.class +0 -0
  360. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolViewManager.class +0 -0
  361. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/ReactNavigationPackage.class +0 -0
  362. package/android/gradle.properties +0 -5
  363. package/assets/fonts/MaterialSymbolsOutlined.ttf +0 -0
  364. package/lib/module/theming/DefaultTheme.js.map +0 -1
  365. package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import type { ColorValue } from 'react-native';
2
+ import type { FONT_WEIGHTS } from './constants';
2
3
  import type { MaterialSymbolName } from './MaterialSymbolData';
3
- type MaterialSymbolVariant = 'outlined' | 'rounded' | 'sharp';
4
4
  export type MaterialSymbolOptions = {
5
5
  /**
6
6
  * The name of the Material Symbol to display.
@@ -9,22 +9,116 @@ export type MaterialSymbolOptions = {
9
9
  /**
10
10
  * The variant of the symbol.
11
11
  *
12
+ * Can be customized using `react-navigation` key in `package.json`:
13
+ *
14
+ * ```json
15
+ * "react-navigation": {
16
+ * "material-symbol": {
17
+ * "fonts": [
18
+ * {
19
+ * "variant": "rounded",
20
+ * "weight": 300,
21
+ * },
22
+ * ]
23
+ * }
24
+ * }
25
+ * ```
26
+ *
27
+ * Automatically set if a single variant is available.
28
+ *
12
29
  * @default 'outlined'
13
30
  */
14
- variant?: MaterialSymbolVariant;
31
+ variant?: 'outlined' | 'rounded' | 'sharp' | undefined;
32
+ /**
33
+ * The weight of the symbol.
34
+ *
35
+ * Can be customized using `react-navigation` key in `package.json`:
36
+ *
37
+ * ```json
38
+ * "react-navigation": {
39
+ * "material-symbol": {
40
+ * "fonts": [
41
+ * {
42
+ * "variant": "rounded",
43
+ * "weight": 300,
44
+ * },
45
+ * ]
46
+ * }
47
+ * }
48
+ * ```
49
+ *
50
+ * Only numeric weights are supported in the configuration.
51
+ *
52
+ * Automatically set if a single weight is available.
53
+ *
54
+ * @default 400
55
+ */
56
+ weight?: 'thin' | 'ultralight' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | undefined;
15
57
  /**
16
58
  * The size of the symbol.
17
59
  *
18
60
  * @default 24
19
61
  */
20
- size?: number;
62
+ size?: number | undefined;
21
63
  /**
22
64
  * The color of the symbol.
23
65
  *
24
66
  * @default 'black'
25
67
  */
26
- color?: ColorValue;
68
+ color?: ColorValue | undefined;
27
69
  };
70
+ export type SFSymbolScale = 'small' | 'medium' | 'large';
71
+ export type SFSymbolMode = 'monochrome' | 'hierarchical' | 'palette' | 'multicolor';
72
+ export type SFSymbolAnimationEffect = 'bounce' | 'pulse' | 'appear' | 'disappear' | 'variableColor' | 'breathe' | 'wiggle' | 'rotate';
73
+ export type SFSymbolAnimationConfig = {
74
+ /**
75
+ * The animation effect to apply.
76
+ */
77
+ effect: SFSymbolAnimationEffect;
78
+ /**
79
+ * Whether the animation repeats continuously.
80
+ *
81
+ * @default false
82
+ */
83
+ repeating?: boolean | undefined;
84
+ /**
85
+ * Number of times to repeat the animation.
86
+ * Ignored if `repeating` is `true`.
87
+ */
88
+ repeatCount?: number | undefined;
89
+ /**
90
+ * Speed multiplier for the animation.
91
+ *
92
+ * @default 1
93
+ */
94
+ speed?: number | undefined;
95
+ /**
96
+ * Whether to animate the whole symbol at once or layer by layer.
97
+ *
98
+ * @default false
99
+ */
100
+ wholeSymbol?: boolean | undefined;
101
+ /**
102
+ * Direction of the animation.
103
+ * Applicable to `bounce` and `wiggle`.
104
+ */
105
+ direction?: 'up' | 'down' | undefined;
106
+ /**
107
+ * Whether the variable color effect reverses with each cycle.
108
+ * Only applicable to `variableColor`.
109
+ *
110
+ * @default false
111
+ */
112
+ reversing?: boolean | undefined;
113
+ /**
114
+ * Whether each layer remains changed until the end of the cycle.
115
+ * Only applicable to `variableColor`.
116
+ *
117
+ * @default false
118
+ */
119
+ cumulative?: boolean | undefined;
120
+ };
121
+ export type SFSymbolAnimation = SFSymbolAnimationEffect | SFSymbolAnimationConfig;
28
122
  export type SFSymbolOptions = {
29
123
  /**
30
124
  * The name of the SF Symbol to display.
@@ -34,12 +128,54 @@ export type SFSymbolOptions = {
34
128
  * The size of the symbol.
35
129
  * @default 24
36
130
  */
37
- size?: number;
131
+ size?: number | undefined;
38
132
  /**
39
133
  * The color of the symbol.
134
+ * Used as the tint color in monochrome mode, and as the fallback for
135
+ * `colors.primary` in hierarchical and palette modes.
136
+ *
40
137
  * @default 'black'
41
138
  */
42
- color?: ColorValue;
139
+ color?: ColorValue | undefined;
140
+ /**
141
+ * The weight of the symbol.
142
+ *
143
+ * @default 'regular'
144
+ */
145
+ weight?: keyof typeof FONT_WEIGHTS | (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS] | undefined;
146
+ /**
147
+ * The scale of the symbol relative to the font size.
148
+ *
149
+ * @default 'medium'
150
+ */
151
+ scale?: SFSymbolScale | undefined;
152
+ /**
153
+ * The rendering mode of the symbol.
154
+ * - `monochrome`: Single color tint (default).
155
+ * - `hierarchical`: Derived hierarchy from a single color.
156
+ * - `palette`: Explicit colors for each layer.
157
+ * - `multicolor`: Uses the symbol's built-in multicolor scheme.
158
+ *
159
+ * @default 'monochrome'
160
+ */
161
+ mode?: SFSymbolMode | undefined;
162
+ /**
163
+ * The colors for non-monochrome rendering modes.
164
+ * - `hierarchical`: uses `primary` as the base color.
165
+ * - `palette`: uses `primary`, `secondary`, and `tertiary` for each layer.
166
+ * - `multicolor`: ignored.
167
+ *
168
+ * Falls back to `color` for `primary` if not specified.
169
+ */
170
+ colors?: {
171
+ primary?: ColorValue | undefined;
172
+ secondary?: ColorValue | undefined;
173
+ tertiary?: ColorValue | undefined;
174
+ } | undefined;
175
+ /**
176
+ * The animation effect to apply to the symbol.
177
+ * Requires iOS 17+. Ignored on earlier versions.
178
+ */
179
+ animation?: SFSymbolAnimation | undefined;
43
180
  };
44
- export {};
45
181
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/native/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,qBAAqB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,OAAO,uBAAuB,EAAE,QAAQ,CAAC;IAC/C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/native/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACvD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;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C5B;;OAEG;IACH,IAAI,EAAE,OAAO,uBAAuB,EAAE,QAAQ,CAAC;IAC/C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EACH,MAAM,OAAO,YAAY,GACzB,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,GAChD,SAAS,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAClC;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC;;;;;;;OAOG;IACH,MAAM,CAAC,EACH;QACE,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;QACjC,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;QACnC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACnC,GACD,SAAS,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C,CAAC"}
@@ -2,10 +2,10 @@ export declare const DarkTheme: {
2
2
  readonly dark: true;
3
3
  readonly colors: {
4
4
  readonly primary: "rgb(10, 132, 255)";
5
- readonly background: "rgb(1, 1, 1)";
6
- readonly card: "rgb(18, 18, 18)";
7
- readonly text: "rgb(229, 229, 231)";
8
- readonly border: "rgb(39, 39, 41)";
5
+ readonly background: "rgb(0, 0, 0)";
6
+ readonly card: "rgb(28, 28, 30)";
7
+ readonly text: "rgb(255, 255, 255)";
8
+ readonly border: "rgb(56, 56, 58)";
9
9
  readonly notification: "rgb(255, 69, 58)";
10
10
  };
11
11
  readonly fonts: {
@@ -1,11 +1,11 @@
1
- export declare const DefaultTheme: {
1
+ export declare const LightTheme: {
2
2
  readonly dark: false;
3
3
  readonly colors: {
4
4
  readonly primary: "rgb(0, 122, 255)";
5
- readonly background: "rgb(242, 242, 242)";
5
+ readonly background: "rgb(242, 242, 247)";
6
6
  readonly card: "rgb(255, 255, 255)";
7
- readonly text: "rgb(28, 28, 30)";
8
- readonly border: "rgb(178, 178, 178)";
7
+ readonly text: "rgb(0, 0, 0)";
8
+ readonly border: "rgb(198, 198, 200)";
9
9
  readonly notification: "rgb(255, 59, 48)";
10
10
  };
11
11
  readonly fonts: {
@@ -61,4 +61,4 @@ export declare const DefaultTheme: {
61
61
  };
62
62
  };
63
63
  };
64
- //# sourceMappingURL=DefaultTheme.d.ts.map
64
+ //# sourceMappingURL=LightTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LightTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/LightTheme.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWG,CAAC"}
@@ -0,0 +1,127 @@
1
+ export declare const MaterialLightTheme: {
2
+ readonly dark: false;
3
+ readonly colors: {
4
+ readonly primary: import("react-native").OpaqueColorValue;
5
+ readonly background: import("react-native").OpaqueColorValue;
6
+ readonly card: import("react-native").OpaqueColorValue;
7
+ readonly text: import("react-native").OpaqueColorValue;
8
+ readonly border: import("react-native").OpaqueColorValue;
9
+ readonly notification: import("react-native").OpaqueColorValue;
10
+ };
11
+ readonly fonts: {
12
+ readonly regular: {
13
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
14
+ readonly fontWeight: "400";
15
+ };
16
+ readonly medium: {
17
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
18
+ readonly fontWeight: "500";
19
+ };
20
+ readonly bold: {
21
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
22
+ readonly fontWeight: "600";
23
+ };
24
+ readonly heavy: {
25
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
26
+ readonly fontWeight: "700";
27
+ };
28
+ } | {
29
+ readonly regular: {
30
+ readonly fontFamily: "System";
31
+ readonly fontWeight: "400";
32
+ };
33
+ readonly medium: {
34
+ readonly fontFamily: "System";
35
+ readonly fontWeight: "500";
36
+ };
37
+ readonly bold: {
38
+ readonly fontFamily: "System";
39
+ readonly fontWeight: "600";
40
+ };
41
+ readonly heavy: {
42
+ readonly fontFamily: "System";
43
+ readonly fontWeight: "700";
44
+ };
45
+ } | {
46
+ readonly regular: {
47
+ readonly fontFamily: "sans-serif";
48
+ readonly fontWeight: "normal";
49
+ };
50
+ readonly medium: {
51
+ readonly fontFamily: "sans-serif-medium";
52
+ readonly fontWeight: "normal";
53
+ };
54
+ readonly bold: {
55
+ readonly fontFamily: "sans-serif";
56
+ readonly fontWeight: "600";
57
+ };
58
+ readonly heavy: {
59
+ readonly fontFamily: "sans-serif";
60
+ readonly fontWeight: "700";
61
+ };
62
+ };
63
+ };
64
+ export declare const MaterialDarkTheme: {
65
+ readonly dark: true;
66
+ readonly colors: {
67
+ readonly primary: import("react-native").OpaqueColorValue;
68
+ readonly background: import("react-native").OpaqueColorValue;
69
+ readonly card: import("react-native").OpaqueColorValue;
70
+ readonly text: import("react-native").OpaqueColorValue;
71
+ readonly border: import("react-native").OpaqueColorValue;
72
+ readonly notification: import("react-native").OpaqueColorValue;
73
+ };
74
+ readonly fonts: {
75
+ readonly regular: {
76
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
77
+ readonly fontWeight: "400";
78
+ };
79
+ readonly medium: {
80
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
81
+ readonly fontWeight: "500";
82
+ };
83
+ readonly bold: {
84
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
85
+ readonly fontWeight: "600";
86
+ };
87
+ readonly heavy: {
88
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
89
+ readonly fontWeight: "700";
90
+ };
91
+ } | {
92
+ readonly regular: {
93
+ readonly fontFamily: "System";
94
+ readonly fontWeight: "400";
95
+ };
96
+ readonly medium: {
97
+ readonly fontFamily: "System";
98
+ readonly fontWeight: "500";
99
+ };
100
+ readonly bold: {
101
+ readonly fontFamily: "System";
102
+ readonly fontWeight: "600";
103
+ };
104
+ readonly heavy: {
105
+ readonly fontFamily: "System";
106
+ readonly fontWeight: "700";
107
+ };
108
+ } | {
109
+ readonly regular: {
110
+ readonly fontFamily: "sans-serif";
111
+ readonly fontWeight: "normal";
112
+ };
113
+ readonly medium: {
114
+ readonly fontFamily: "sans-serif-medium";
115
+ readonly fontWeight: "normal";
116
+ };
117
+ readonly bold: {
118
+ readonly fontFamily: "sans-serif";
119
+ readonly fontWeight: "600";
120
+ };
121
+ readonly heavy: {
122
+ readonly fontFamily: "sans-serif";
123
+ readonly fontWeight: "700";
124
+ };
125
+ };
126
+ };
127
+ //# sourceMappingURL=MaterialTheme.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaterialTheme.android.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.android.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWL,CAAC;AAE3B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWJ,CAAC"}
@@ -0,0 +1,114 @@
1
+ import type { Theme } from '@react-navigation/core';
2
+ export declare const MaterialLightTheme: {
3
+ readonly dark: false;
4
+ readonly colors: Theme["colors"];
5
+ readonly fonts: {
6
+ readonly regular: {
7
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
8
+ readonly fontWeight: "400";
9
+ };
10
+ readonly medium: {
11
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
12
+ readonly fontWeight: "500";
13
+ };
14
+ readonly bold: {
15
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
16
+ readonly fontWeight: "600";
17
+ };
18
+ readonly heavy: {
19
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
20
+ readonly fontWeight: "700";
21
+ };
22
+ } | {
23
+ readonly regular: {
24
+ readonly fontFamily: "System";
25
+ readonly fontWeight: "400";
26
+ };
27
+ readonly medium: {
28
+ readonly fontFamily: "System";
29
+ readonly fontWeight: "500";
30
+ };
31
+ readonly bold: {
32
+ readonly fontFamily: "System";
33
+ readonly fontWeight: "600";
34
+ };
35
+ readonly heavy: {
36
+ readonly fontFamily: "System";
37
+ readonly fontWeight: "700";
38
+ };
39
+ } | {
40
+ readonly regular: {
41
+ readonly fontFamily: "sans-serif";
42
+ readonly fontWeight: "normal";
43
+ };
44
+ readonly medium: {
45
+ readonly fontFamily: "sans-serif-medium";
46
+ readonly fontWeight: "normal";
47
+ };
48
+ readonly bold: {
49
+ readonly fontFamily: "sans-serif";
50
+ readonly fontWeight: "600";
51
+ };
52
+ readonly heavy: {
53
+ readonly fontFamily: "sans-serif";
54
+ readonly fontWeight: "700";
55
+ };
56
+ };
57
+ };
58
+ export declare const MaterialDarkTheme: {
59
+ readonly dark: true;
60
+ readonly colors: Theme["colors"];
61
+ readonly fonts: {
62
+ readonly regular: {
63
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
64
+ readonly fontWeight: "400";
65
+ };
66
+ readonly medium: {
67
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
68
+ readonly fontWeight: "500";
69
+ };
70
+ readonly bold: {
71
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
72
+ readonly fontWeight: "600";
73
+ };
74
+ readonly heavy: {
75
+ readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
76
+ readonly fontWeight: "700";
77
+ };
78
+ } | {
79
+ readonly regular: {
80
+ readonly fontFamily: "System";
81
+ readonly fontWeight: "400";
82
+ };
83
+ readonly medium: {
84
+ readonly fontFamily: "System";
85
+ readonly fontWeight: "500";
86
+ };
87
+ readonly bold: {
88
+ readonly fontFamily: "System";
89
+ readonly fontWeight: "600";
90
+ };
91
+ readonly heavy: {
92
+ readonly fontFamily: "System";
93
+ readonly fontWeight: "700";
94
+ };
95
+ } | {
96
+ readonly regular: {
97
+ readonly fontFamily: "sans-serif";
98
+ readonly fontWeight: "normal";
99
+ };
100
+ readonly medium: {
101
+ readonly fontFamily: "sans-serif-medium";
102
+ readonly fontWeight: "normal";
103
+ };
104
+ readonly bold: {
105
+ readonly fontFamily: "sans-serif";
106
+ readonly fontWeight: "600";
107
+ };
108
+ readonly heavy: {
109
+ readonly fontFamily: "sans-serif";
110
+ readonly fontWeight: "700";
111
+ };
112
+ };
113
+ };
114
+ //# sourceMappingURL=MaterialTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaterialTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAIpD,eAAO,MAAM,kBAAkB;;qBAEf,KAAK,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIL,CAAC;AAE3B,eAAO,MAAM,iBAAiB;;qBAEd,KAAK,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIL,CAAC"}
@@ -34,7 +34,7 @@ export type LinkingOptions<ParamList extends {}> = {
34
34
  *
35
35
  * Defaults to `true` when a linking config is specified.
36
36
  */
37
- enabled?: boolean;
37
+ enabled?: boolean | undefined;
38
38
  /**
39
39
  * The prefixes to match to determine whether to handle a URL.
40
40
  *
@@ -62,7 +62,7 @@ export type LinkingOptions<ParamList extends {}> = {
62
62
  * }
63
63
  * ```
64
64
  */
65
- prefixes?: LinkingPrefix[];
65
+ prefixes?: LinkingPrefix[] | undefined;
66
66
  /**
67
67
  * Optional function which takes an incoming URL returns a boolean
68
68
  * indicating whether React Navigation should handle it.
@@ -80,7 +80,7 @@ export type LinkingOptions<ParamList extends {}> = {
80
80
  * }
81
81
  * ```
82
82
  */
83
- filter?: (url: string) => boolean;
83
+ filter?: ((url: string) => boolean) | undefined;
84
84
  /**
85
85
  * Config to fine-tune how to parse the path.
86
86
  *
@@ -101,7 +101,7 @@ export type LinkingOptions<ParamList extends {}> = {
101
101
  * This is useful when the whole app is under a specific path.
102
102
  * e.g. all of the screens are under `/admin` in `https://example.com/admin`
103
103
  */
104
- path?: string;
104
+ path?: string | undefined;
105
105
  /**
106
106
  * Path configuration for child screens.
107
107
  */
@@ -109,8 +109,8 @@ export type LinkingOptions<ParamList extends {}> = {
109
109
  /**
110
110
  * Name of the initial route to use for the root navigator.
111
111
  */
112
- initialRouteName?: keyof ParamList;
113
- };
112
+ initialRouteName?: Extract<keyof ParamList, string> | undefined;
113
+ } | undefined;
114
114
  /**
115
115
  * Custom function to get the initial URL used for linking.
116
116
  * Uses `Linking.getInitialURL()` by default.
@@ -124,7 +124,7 @@ export type LinkingOptions<ParamList extends {}> = {
124
124
  * }
125
125
  * ```
126
126
  */
127
- getInitialURL?: () => string | null | undefined | Promise<string | null | undefined>;
127
+ getInitialURL?: (() => string | null | undefined | Promise<string | null | undefined>) | undefined;
128
128
  /**
129
129
  * Custom function to get subscribe to URL updates.
130
130
  * Uses `Linking.addEventListener('url', callback)` by default.
@@ -146,24 +146,24 @@ export type LinkingOptions<ParamList extends {}> = {
146
146
  * }
147
147
  * ```
148
148
  */
149
- subscribe?: (listener: (url: string) => void) => undefined | void | (() => void);
149
+ subscribe?: ((listener: (url: string) => void) => undefined | void | (() => void)) | undefined;
150
150
  /**
151
151
  * Custom function to parse the URL to a valid navigation state (advanced).
152
152
  */
153
- getStateFromPath?: typeof getStateFromPathDefault;
153
+ getStateFromPath?: typeof getStateFromPathDefault | undefined;
154
154
  /**
155
155
  * Custom function to convert the state object to a valid URL (advanced).
156
156
  * Only applicable on Web.
157
157
  */
158
- getPathFromState?: typeof getPathFromStateDefault;
158
+ getPathFromState?: typeof getPathFromStateDefault | undefined;
159
159
  /**
160
160
  * Custom function to convert the state object to a valid action (advanced).
161
161
  */
162
- getActionFromState?: typeof getActionFromStateDefault;
162
+ getActionFromState?: typeof getActionFromStateDefault | undefined;
163
163
  };
164
164
  export type DocumentTitleOptions = {
165
- enabled?: boolean;
166
- formatter?: (options: Record<string, any> | undefined, route: Route<string> | undefined) => string;
165
+ enabled?: boolean | undefined;
166
+ formatter?: ((options: Record<string, any> | undefined, route: Route<string> | undefined) => string) | undefined;
167
167
  };
168
168
  export type Persistor = {
169
169
  /**
@@ -1 +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,YAAY,EACZ,eAAe,EACf,aAAa,EACb,KAAK,EACN,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAExE,KAAK,UAAU,GACX,IAAI,MAAM,EAAE,GACZ,OAAO,MAAM,GAAG,GAChB,QAAQ,MAAM,GAAG,GACjB,OAAO,MAAM,GAAG,GAChB,QAAQ,MAAM,GAAG,GACjB,OAAO,MAAM,GAAG,GAChB,QAAQ,MAAM,GAAG,GACjB,SAAS,MAAM,GAAG,GAClB,qBAAqB,CAAC;AAE1B,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,UAAU,CAAC;QACpB,UAAU,EAAE,UAAU,CAAC;QACvB,IAAI,EAAE,UAAU,CAAC;QACjB,IAAI,EAAE,UAAU,CAA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SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI,CAAC;IAClD;;;;;OAKG;IACH,OAAO,IAAI,WAAW,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,YAAY,GAAG,SAAS,CAAC;CAC7E,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
2
- export declare function useBackButton(_: React.RefObject<NavigationContainerRef<ParamListBase> | null>): void;
2
+ export declare function useBackButton<ParamList extends ParamListBase>(_: React.RefObject<NavigationContainerRef<ParamList> | null>): void;
3
3
  //# sourceMappingURL=useBackButton.d.ts.map
@@ -1 +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;AAEhC,wBAAgB,aAAa,CAC3B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,QAIjE"}
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;AAEhC,wBAAgB,aAAa,CAAC,SAAS,SAAS,aAAa,EAC3D,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,QAI7D"}
@@ -4,5 +4,5 @@ import type { DocumentTitleOptions } from './types';
4
4
  /**
5
5
  * Set the document title for the active screen
6
6
  */
7
- export declare function useDocumentTitle(ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>, { enabled, formatter, }?: DocumentTitleOptions): void;
7
+ export declare function useDocumentTitle<ParamList extends ParamListBase>(ref: React.RefObject<NavigationContainerRef<ParamList> | null>, { enabled, formatter, }?: DocumentTitleOptions): void;
8
8
  //# sourceMappingURL=useDocumentTitle.d.ts.map
@@ -1 +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,GAAG,IAAI,CAAC,EAClE,EACE,OAAc,EACd,SAA6D,GAC9D,GAAE,oBAAyB,QAwB7B"}
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,CAAC,SAAS,SAAS,aAAa,EAC9D,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAC9D,EACE,OAAc,EACd,SAA6D,GAC9D,GAAE,oBAAyB,QAwB7B"}