@react-navigation/native 8.0.0-alpha.1 → 8.0.0-alpha.10
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.
- package/android/build.gradle +96 -15
- package/android/src/main/java/org/reactnavigation/MaterialSymbolModule.kt +43 -54
- package/android/src/main/java/org/reactnavigation/MaterialSymbolTypeface.kt +54 -3
- package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +52 -7
- package/android/src/main/java/org/reactnavigation/MaterialSymbolViewManager.kt +14 -7
- package/android/src/main/java/org/reactnavigation/ReactNavigationPackage.kt +11 -14
- package/assets/fonts/MaterialSymbolsOutlined_100.ttf +0 -0
- package/assets/fonts/MaterialSymbolsOutlined_200.ttf +0 -0
- package/assets/fonts/MaterialSymbolsOutlined_300.ttf +0 -0
- package/{android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsOutlined.ttf → assets/fonts/MaterialSymbolsOutlined_400.ttf} +0 -0
- package/assets/fonts/MaterialSymbolsOutlined_500.ttf +0 -0
- package/assets/fonts/MaterialSymbolsOutlined_600.ttf +0 -0
- package/assets/fonts/MaterialSymbolsOutlined_700.ttf +0 -0
- package/assets/fonts/MaterialSymbolsRounded_100.ttf +0 -0
- package/assets/fonts/MaterialSymbolsRounded_200.ttf +0 -0
- package/assets/fonts/MaterialSymbolsRounded_300.ttf +0 -0
- package/assets/fonts/{MaterialSymbolsRounded.ttf → MaterialSymbolsRounded_400.ttf} +0 -0
- package/assets/fonts/MaterialSymbolsRounded_500.ttf +0 -0
- package/assets/fonts/MaterialSymbolsRounded_600.ttf +0 -0
- package/assets/fonts/MaterialSymbolsRounded_700.ttf +0 -0
- package/assets/fonts/MaterialSymbolsSharp_100.ttf +0 -0
- package/assets/fonts/MaterialSymbolsSharp_200.ttf +0 -0
- package/assets/fonts/MaterialSymbolsSharp_300.ttf +0 -0
- package/assets/fonts/{MaterialSymbolsSharp.ttf → MaterialSymbolsSharp_400.ttf} +0 -0
- package/assets/fonts/MaterialSymbolsSharp_500.ttf +0 -0
- package/assets/fonts/MaterialSymbolsSharp_600.ttf +0 -0
- package/assets/fonts/MaterialSymbolsSharp_700.ttf +0 -0
- package/ios/ReactNavigationSFSymbolView.mm +21 -0
- package/ios/ReactNavigationSFSymbolView.swift +257 -7
- package/lib/module/NavigationContainer.js +7 -2
- package/lib/module/NavigationContainer.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/MaterialSymbol.android.js +11 -10
- package/lib/module/native/MaterialSymbol.android.js.map +1 -1
- package/lib/module/native/MaterialSymbolData.js +0 -9
- package/lib/module/native/MaterialSymbolData.js.map +1 -1
- package/lib/module/native/MaterialSymbolViewNativeComponent.ts +6 -2
- package/lib/module/native/SFSymbol.ios.js +24 -1
- package/lib/module/native/SFSymbol.ios.js.map +1 -1
- package/lib/module/native/SFSymbolViewNativeComponent.ts +15 -1
- package/lib/module/native/constants.js +14 -0
- package/lib/module/native/constants.js.map +1 -0
- package/lib/module/theming/{DefaultTheme.js → LightTheme.js} +2 -2
- package/lib/module/theming/LightTheme.js.map +1 -0
- package/lib/module/theming/MaterialTheme.android.js +29 -0
- package/lib/module/theming/MaterialTheme.android.js.map +1 -0
- package/lib/module/theming/MaterialTheme.js +18 -0
- package/lib/module/theming/MaterialTheme.js.map +1 -0
- package/lib/module/useLinking.native.js +20 -3
- package/lib/module/useLinking.native.js.map +1 -1
- package/lib/typescript/src/NavigationContainer.d.ts +6 -1
- package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts +2 -2
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbolData.d.ts +0 -5
- package/lib/typescript/src/native/MaterialSymbolData.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts +3 -2
- package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/native/NativeMaterialSymbolModule.d.ts +1 -1
- package/lib/typescript/src/native/NativeMaterialSymbolModule.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbol.ios.d.ts +1 -1
- package/lib/typescript/src/native/SFSymbol.ios.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts +15 -1
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/native/constants.d.ts +12 -0
- package/lib/typescript/src/native/constants.d.ts.map +1 -0
- package/lib/typescript/src/native/types.d.ts +139 -3
- package/lib/typescript/src/native/types.d.ts.map +1 -1
- package/lib/typescript/src/theming/{DefaultTheme.d.ts → LightTheme.d.ts} +2 -2
- package/lib/typescript/src/theming/LightTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts +127 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialTheme.d.ts +114 -0
- package/lib/typescript/src/theming/MaterialTheme.d.ts.map +1 -0
- package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
- package/package.json +26 -11
- package/src/NavigationContainer.tsx +20 -3
- package/src/index.tsx +2 -1
- package/src/native/MaterialSymbol.android.tsx +12 -10
- package/src/native/MaterialSymbolData.tsx +0 -6
- package/src/native/MaterialSymbolViewNativeComponent.ts +6 -2
- package/src/native/NativeMaterialSymbolModule.ts +3 -3
- package/src/native/SFSymbol.ios.tsx +24 -1
- package/src/native/SFSymbolViewNativeComponent.ts +15 -1
- package/src/native/constants.tsx +11 -0
- package/src/native/types.tsx +174 -3
- package/src/theming/{DefaultTheme.tsx → LightTheme.tsx} +1 -1
- package/src/theming/MaterialTheme.android.tsx +30 -0
- package/src/theming/MaterialTheme.tsx +19 -0
- package/src/useLinking.native.tsx +38 -15
- package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/results.bin +0 -1
- package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/results.bin +0 -1
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/BuildConfig.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$Companion.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$WhenMappings.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule$getImageSource$future$1$1$1.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolModule.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolTypeface.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolView.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolViewManager$Companion.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolViewManager.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/ReactNavigationPackage.dex +0 -0
- package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/org/reactnavigation/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.java +0 -38
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.java +0 -42
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.java +0 -21
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.java +0 -39
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.java +0 -20
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
- package/android/build/generated/source/codegen/jni/ReactNavigationSpec-generated.cpp +0 -32
- package/android/build/generated/source/codegen/jni/ReactNavigationSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ComponentDescriptors.cpp +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ComponentDescriptors.h +0 -25
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/EventEmitters.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/EventEmitters.h +0 -30
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.cpp +0 -101
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.h +0 -55
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI-generated.cpp +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI.h +0 -71
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ShadowNodes.cpp +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ShadowNodes.h +0 -43
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/States.h +0 -22
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsRounded.ttf +0 -0
- package/android/build/intermediates/assets/debug/mergeDebugAssets/fonts/MaterialSymbolsSharp.ttf +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-navigation_native_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/reactnavigation/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsOutlined.ttf +0 -0
- package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsRounded.ttf +0 -0
- package/android/build/intermediates/react-navigation/fonts/MaterialSymbolsSharp.ttf +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-navigation_native_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/fbreact/specs/NativeMaterialSymbolModuleSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerDelegate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$WhenMappings.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule$getImageSource$future$1$1$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolTypeface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolViewManager$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolViewManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/ReactNavigationPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-navigation_native_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule$getImageSource$future$1$1$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolTypeface.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolViewManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/ReactNavigationPackage.class +0 -0
- package/android/gradle.properties +0 -5
- package/assets/fonts/MaterialSymbolsOutlined.ttf +0 -0
- package/lib/module/theming/DefaultTheme.js.map +0 -1
- package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAI7C,wBAAgB,UAAU,CACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,EAClE,EACE,OAAc,EACd,QAAgB,EAChB,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAQC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAI7C,wBAAgB,UAAU,CACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,EAClE,EACE,OAAc,EACd,QAAgB,EAChB,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAQC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyKX"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/native",
|
|
3
3
|
"description": "React Native integration for React Navigation",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.10",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"react-navigation",
|
|
@@ -30,12 +30,23 @@
|
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"src",
|
|
33
|
-
"assets",
|
|
34
33
|
"lib",
|
|
35
|
-
"
|
|
34
|
+
"assets",
|
|
36
35
|
"android",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
36
|
+
"ios",
|
|
37
|
+
"cpp",
|
|
38
|
+
"*.podspec",
|
|
39
|
+
"react-native.config.js",
|
|
40
|
+
"!ios/build",
|
|
41
|
+
"!android/build",
|
|
42
|
+
"!android/gradle",
|
|
43
|
+
"!android/gradlew",
|
|
44
|
+
"!android/gradlew.bat",
|
|
45
|
+
"!android/local.properties",
|
|
46
|
+
"!**/__tests__",
|
|
47
|
+
"!**/__fixtures__",
|
|
48
|
+
"!**/__mocks__",
|
|
49
|
+
"!**/.*"
|
|
39
50
|
],
|
|
40
51
|
"sideEffects": false,
|
|
41
52
|
"publishConfig": {
|
|
@@ -46,7 +57,7 @@
|
|
|
46
57
|
"clean": "del lib"
|
|
47
58
|
},
|
|
48
59
|
"dependencies": {
|
|
49
|
-
"@react-navigation/core": "^8.0.0-alpha.
|
|
60
|
+
"@react-navigation/core": "^8.0.0-alpha.3",
|
|
50
61
|
"escape-string-regexp": "^4.0.0",
|
|
51
62
|
"fast-deep-equal": "^3.1.3",
|
|
52
63
|
"nanoid": "^3.3.11",
|
|
@@ -93,15 +104,19 @@
|
|
|
93
104
|
"type": "all",
|
|
94
105
|
"jsSrcsDir": "src/native",
|
|
95
106
|
"android": {
|
|
96
|
-
"
|
|
97
|
-
"ReactNavigationMaterialSymbolView":
|
|
107
|
+
"components": {
|
|
108
|
+
"ReactNavigationMaterialSymbolView": {
|
|
109
|
+
"className": "ReactNavigationMaterialSymbolView"
|
|
110
|
+
}
|
|
98
111
|
}
|
|
99
112
|
},
|
|
100
113
|
"ios": {
|
|
101
|
-
"
|
|
102
|
-
"ReactNavigationSFSymbolView":
|
|
114
|
+
"components": {
|
|
115
|
+
"ReactNavigationSFSymbolView": {
|
|
116
|
+
"className": "ReactNavigationSFSymbolView"
|
|
117
|
+
}
|
|
103
118
|
}
|
|
104
119
|
}
|
|
105
120
|
},
|
|
106
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "4bf35245d085655607d8c658407a4a0c8e641f8d"
|
|
107
122
|
}
|
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
type InitialState,
|
|
7
7
|
type NavigationContainerProps,
|
|
8
8
|
type NavigationContainerRef,
|
|
9
|
+
type NavigationState,
|
|
9
10
|
type ParamListBase,
|
|
11
|
+
type PartialState,
|
|
10
12
|
type RootParamList,
|
|
11
13
|
ThemeProvider,
|
|
12
14
|
validatePathConfig,
|
|
@@ -16,7 +18,7 @@ import { I18nManager, Platform } from 'react-native';
|
|
|
16
18
|
|
|
17
19
|
import { LinkingContext } from './LinkingContext';
|
|
18
20
|
import { LocaleDirContext } from './LocaleDirContext';
|
|
19
|
-
import {
|
|
21
|
+
import { LightTheme } from './theming/LightTheme';
|
|
20
22
|
import type {
|
|
21
23
|
DocumentTitleOptions,
|
|
22
24
|
LinkingOptions,
|
|
@@ -31,7 +33,16 @@ import { type Thenable, useThenable } from './useThenable';
|
|
|
31
33
|
declare global {
|
|
32
34
|
var REACT_NAVIGATION_DEVTOOLS: WeakMap<
|
|
33
35
|
NavigationContainerRef<any>,
|
|
34
|
-
{
|
|
36
|
+
{
|
|
37
|
+
readonly linking: LinkingOptions<any>;
|
|
38
|
+
readonly listeners: Set<
|
|
39
|
+
(data: {
|
|
40
|
+
type: 'link';
|
|
41
|
+
url: string;
|
|
42
|
+
state: PartialState<NavigationState> | undefined;
|
|
43
|
+
}) => void
|
|
44
|
+
>;
|
|
45
|
+
}
|
|
35
46
|
>;
|
|
36
47
|
}
|
|
37
48
|
|
|
@@ -103,7 +114,7 @@ const RESTORE_STATE_ERROR =
|
|
|
103
114
|
function NavigationContainerInner(
|
|
104
115
|
{
|
|
105
116
|
direction = I18nManager.getConstants().isRTL ? 'rtl' : 'ltr',
|
|
106
|
-
theme =
|
|
117
|
+
theme = LightTheme,
|
|
107
118
|
linking,
|
|
108
119
|
persistor,
|
|
109
120
|
fallback = null,
|
|
@@ -150,10 +161,16 @@ function NavigationContainerInner(
|
|
|
150
161
|
// This will be used by the devtools
|
|
151
162
|
React.useEffect(() => {
|
|
152
163
|
if (refContainer.current) {
|
|
164
|
+
const previous = REACT_NAVIGATION_DEVTOOLS.get(refContainer.current);
|
|
165
|
+
const listeners = previous?.listeners ?? new Set();
|
|
166
|
+
|
|
153
167
|
REACT_NAVIGATION_DEVTOOLS.set(refContainer.current, {
|
|
154
168
|
get linking() {
|
|
155
169
|
return linkingConfig.options;
|
|
156
170
|
},
|
|
171
|
+
get listeners() {
|
|
172
|
+
return listeners;
|
|
173
|
+
},
|
|
157
174
|
});
|
|
158
175
|
}
|
|
159
176
|
});
|
package/src/index.tsx
CHANGED
|
@@ -10,7 +10,8 @@ export { SFSymbol, type SFSymbolProps } from './native/SFSymbol';
|
|
|
10
10
|
export { NavigationContainer } from './NavigationContainer';
|
|
11
11
|
export { ServerContainer } from './ServerContainer';
|
|
12
12
|
export { DarkTheme } from './theming/DarkTheme';
|
|
13
|
-
export { DefaultTheme } from './theming/
|
|
13
|
+
export { LightTheme as DefaultTheme } from './theming/LightTheme';
|
|
14
|
+
export { MaterialDarkTheme, MaterialLightTheme } from './theming/MaterialTheme';
|
|
14
15
|
export * from './types';
|
|
15
16
|
export { useLinkBuilder } from './useLinkBuilder';
|
|
16
17
|
export { type LinkProps, useLinkProps } from './useLinkProps';
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
type ViewProps,
|
|
6
6
|
} from 'react-native';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { FONT_WEIGHTS } from './constants';
|
|
9
9
|
import MaterialSymbolViewNativeComponent from './MaterialSymbolViewNativeComponent';
|
|
10
10
|
import NativeMaterialSymbolModule from './NativeMaterialSymbolModule';
|
|
11
11
|
import type { MaterialSymbolOptions } from './types';
|
|
@@ -16,16 +16,16 @@ const imageSourceCache = new Map<string, ImageSourcePropType>();
|
|
|
16
16
|
|
|
17
17
|
export function MaterialSymbol({
|
|
18
18
|
name,
|
|
19
|
-
|
|
19
|
+
weight,
|
|
20
20
|
size = 24,
|
|
21
|
-
color
|
|
21
|
+
color,
|
|
22
22
|
style,
|
|
23
23
|
...rest
|
|
24
24
|
}: MaterialSymbolProps): React.ReactElement {
|
|
25
25
|
return (
|
|
26
26
|
<MaterialSymbolViewNativeComponent
|
|
27
27
|
name={name}
|
|
28
|
-
|
|
28
|
+
weight={typeof weight === 'string' ? FONT_WEIGHTS[weight] : (weight ?? 0)}
|
|
29
29
|
size={size}
|
|
30
30
|
color={color}
|
|
31
31
|
style={[
|
|
@@ -42,18 +42,20 @@ export function MaterialSymbol({
|
|
|
42
42
|
|
|
43
43
|
MaterialSymbol.getImageSource = ({
|
|
44
44
|
name,
|
|
45
|
-
variant
|
|
45
|
+
variant,
|
|
46
|
+
weight,
|
|
46
47
|
size = 24,
|
|
47
48
|
color = 'black',
|
|
48
49
|
}: MaterialSymbolOptions): ImageSourcePropType => {
|
|
49
|
-
const hash = MATERIAL_SYMBOL_FONT_HASHES[variant];
|
|
50
50
|
const processedColor = processColor(color);
|
|
51
51
|
|
|
52
52
|
if (processedColor == null) {
|
|
53
53
|
throw new Error(`Invalid color value: ${String(color)}`);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
const
|
|
56
|
+
const scale = PixelRatio.get();
|
|
57
|
+
|
|
58
|
+
const cacheKey = `${name}:${variant}:${weight}:${size}:${scale}:${JSON.stringify(processedColor)}`;
|
|
57
59
|
const cached = imageSourceCache.get(cacheKey);
|
|
58
60
|
|
|
59
61
|
if (cached !== undefined) {
|
|
@@ -63,14 +65,14 @@ MaterialSymbol.getImageSource = ({
|
|
|
63
65
|
const uri = NativeMaterialSymbolModule.getImageSource(
|
|
64
66
|
name,
|
|
65
67
|
variant,
|
|
68
|
+
typeof weight === 'string' ? FONT_WEIGHTS[weight] : weight,
|
|
66
69
|
size,
|
|
67
|
-
{ value: processedColor }
|
|
68
|
-
hash
|
|
70
|
+
{ value: processedColor }
|
|
69
71
|
);
|
|
70
72
|
|
|
71
73
|
const source: ImageSourcePropType = {
|
|
72
74
|
uri,
|
|
73
|
-
scale
|
|
75
|
+
scale,
|
|
74
76
|
width: size,
|
|
75
77
|
height: size,
|
|
76
78
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// Auto-generated by scripts/update-material-symbols.ts
|
|
2
2
|
// Do not edit manually
|
|
3
3
|
|
|
4
|
-
export const MATERIAL_SYMBOL_FONT_HASHES = {
|
|
5
|
-
outlined: 'bc5ec91a',
|
|
6
|
-
rounded: 'eb75c001',
|
|
7
|
-
sharp: '66ecc6b8',
|
|
8
|
-
} as const;
|
|
9
|
-
|
|
10
4
|
export type MaterialSymbolName =
|
|
11
5
|
| '10k'
|
|
12
6
|
| '10mp'
|
|
@@ -9,9 +9,13 @@ import {
|
|
|
9
9
|
|
|
10
10
|
export interface NativeProps extends ViewProps {
|
|
11
11
|
name: string;
|
|
12
|
-
variant
|
|
12
|
+
variant?: string;
|
|
13
|
+
weight?: CodegenTypes.WithDefault<
|
|
14
|
+
0 | 100 | 200 | 300 | 400 | 500 | 600 | 700,
|
|
15
|
+
0
|
|
16
|
+
>;
|
|
13
17
|
size: CodegenTypes.Float;
|
|
14
|
-
color
|
|
18
|
+
color?: ColorValue;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -5,12 +5,12 @@ import { type TurboModule, TurboModuleRegistry } from 'react-native';
|
|
|
5
5
|
export interface Spec extends TurboModule {
|
|
6
6
|
getImageSource(
|
|
7
7
|
name: string,
|
|
8
|
-
variant: string,
|
|
8
|
+
variant: string | undefined,
|
|
9
|
+
weight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | undefined,
|
|
9
10
|
size: number,
|
|
10
11
|
// Codegen requires using `Object` instead of `object
|
|
11
12
|
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
|
|
12
|
-
color: Object
|
|
13
|
-
hash: string
|
|
13
|
+
color: Object
|
|
14
14
|
): string;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
|
|
3
|
+
import { FONT_WEIGHTS } from './constants';
|
|
3
4
|
import SFSymbolViewNativeComponent from './SFSymbolViewNativeComponent';
|
|
4
5
|
import type { SFSymbolOptions } from './types';
|
|
5
6
|
|
|
@@ -8,15 +9,37 @@ export type SFSymbolProps = SFSymbolOptions & ViewProps;
|
|
|
8
9
|
export function SFSymbol({
|
|
9
10
|
name,
|
|
10
11
|
size = 24,
|
|
11
|
-
color
|
|
12
|
+
color,
|
|
13
|
+
weight,
|
|
14
|
+
scale = 'medium',
|
|
15
|
+
mode = 'monochrome',
|
|
16
|
+
colors,
|
|
17
|
+
animation,
|
|
12
18
|
style,
|
|
13
19
|
...rest
|
|
14
20
|
}: SFSymbolProps): React.ReactElement {
|
|
21
|
+
const animConfig =
|
|
22
|
+
typeof animation === 'string' ? { effect: animation } : animation;
|
|
23
|
+
|
|
15
24
|
return (
|
|
16
25
|
<SFSymbolViewNativeComponent
|
|
17
26
|
name={name}
|
|
18
27
|
size={size}
|
|
19
28
|
color={color}
|
|
29
|
+
weight={typeof weight === 'string' ? FONT_WEIGHTS[weight] : (weight ?? 0)}
|
|
30
|
+
scale={scale}
|
|
31
|
+
mode={mode}
|
|
32
|
+
colorPrimary={colors?.primary ?? color}
|
|
33
|
+
colorSecondary={colors?.secondary}
|
|
34
|
+
colorTertiary={colors?.tertiary}
|
|
35
|
+
animation={animConfig?.effect ?? ''}
|
|
36
|
+
animationRepeating={animConfig?.repeating ?? false}
|
|
37
|
+
animationRepeatCount={animConfig?.repeatCount ?? 0}
|
|
38
|
+
animationSpeed={animConfig?.speed ?? 1}
|
|
39
|
+
animationWholeSymbol={animConfig?.wholeSymbol ?? false}
|
|
40
|
+
animationDirection={animConfig?.direction ?? ''}
|
|
41
|
+
animationReversing={animConfig?.reversing ?? false}
|
|
42
|
+
animationCumulative={animConfig?.cumulative ?? false}
|
|
20
43
|
style={[
|
|
21
44
|
{
|
|
22
45
|
width: size,
|
|
@@ -10,7 +10,21 @@ import {
|
|
|
10
10
|
export interface NativeProps extends ViewProps {
|
|
11
11
|
name: string;
|
|
12
12
|
size: CodegenTypes.Float;
|
|
13
|
-
color
|
|
13
|
+
color?: ColorValue;
|
|
14
|
+
weight: CodegenTypes.Int32;
|
|
15
|
+
scale: string;
|
|
16
|
+
mode: string;
|
|
17
|
+
colorPrimary?: ColorValue;
|
|
18
|
+
colorSecondary?: ColorValue;
|
|
19
|
+
colorTertiary?: ColorValue;
|
|
20
|
+
animation: string;
|
|
21
|
+
animationRepeating: boolean;
|
|
22
|
+
animationRepeatCount: CodegenTypes.Int32;
|
|
23
|
+
animationSpeed: CodegenTypes.Float;
|
|
24
|
+
animationWholeSymbol: boolean;
|
|
25
|
+
animationDirection: string;
|
|
26
|
+
animationReversing: boolean;
|
|
27
|
+
animationCumulative: boolean;
|
|
14
28
|
}
|
|
15
29
|
|
|
16
30
|
export default codegenNativeComponent<NativeProps>(
|
package/src/native/types.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { ColorValue } from 'react-native';
|
|
2
2
|
|
|
3
|
+
import type { FONT_WEIGHTS } from './constants';
|
|
3
4
|
import type { MaterialSymbolName } from './MaterialSymbolData';
|
|
4
5
|
|
|
5
|
-
type MaterialSymbolVariant = 'outlined' | 'rounded' | 'sharp';
|
|
6
|
-
|
|
7
6
|
export type MaterialSymbolOptions = {
|
|
8
7
|
/**
|
|
9
8
|
* The name of the Material Symbol to display.
|
|
@@ -12,9 +11,65 @@ export type MaterialSymbolOptions = {
|
|
|
12
11
|
/**
|
|
13
12
|
* The variant of the symbol.
|
|
14
13
|
*
|
|
14
|
+
* Can be customized using `react-navigation` key in `package.json`:
|
|
15
|
+
*
|
|
16
|
+
* ```json
|
|
17
|
+
* "react-navigation": {
|
|
18
|
+
* "material-symbol": {
|
|
19
|
+
* "fonts": [
|
|
20
|
+
* {
|
|
21
|
+
* "variant": "rounded",
|
|
22
|
+
* "weight": 300,
|
|
23
|
+
* },
|
|
24
|
+
* ]
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Automatically set if a single variant is available.
|
|
30
|
+
*
|
|
15
31
|
* @default 'outlined'
|
|
16
32
|
*/
|
|
17
|
-
variant?:
|
|
33
|
+
variant?: 'outlined' | 'rounded' | 'sharp';
|
|
34
|
+
/**
|
|
35
|
+
* The weight of the symbol.
|
|
36
|
+
*
|
|
37
|
+
* Can be customized using `react-navigation` key in `package.json`:
|
|
38
|
+
*
|
|
39
|
+
* ```json
|
|
40
|
+
* "react-navigation": {
|
|
41
|
+
* "material-symbol": {
|
|
42
|
+
* "fonts": [
|
|
43
|
+
* {
|
|
44
|
+
* "variant": "rounded",
|
|
45
|
+
* "weight": 300,
|
|
46
|
+
* },
|
|
47
|
+
* ]
|
|
48
|
+
* }
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* Only numeric weights are supported in the configuration.
|
|
53
|
+
*
|
|
54
|
+
* Automatically set if a single weight is available.
|
|
55
|
+
*
|
|
56
|
+
* @default 400
|
|
57
|
+
*/
|
|
58
|
+
weight?:
|
|
59
|
+
| 'thin'
|
|
60
|
+
| 'ultralight'
|
|
61
|
+
| 'light'
|
|
62
|
+
| 'regular'
|
|
63
|
+
| 'medium'
|
|
64
|
+
| 'semibold'
|
|
65
|
+
| 'bold'
|
|
66
|
+
| 100
|
|
67
|
+
| 200
|
|
68
|
+
| 300
|
|
69
|
+
| 400
|
|
70
|
+
| 500
|
|
71
|
+
| 600
|
|
72
|
+
| 700;
|
|
18
73
|
/**
|
|
19
74
|
* The size of the symbol.
|
|
20
75
|
*
|
|
@@ -29,6 +84,77 @@ export type MaterialSymbolOptions = {
|
|
|
29
84
|
color?: ColorValue;
|
|
30
85
|
};
|
|
31
86
|
|
|
87
|
+
export type SFSymbolScale = 'small' | 'medium' | 'large';
|
|
88
|
+
|
|
89
|
+
export type SFSymbolMode =
|
|
90
|
+
| 'monochrome'
|
|
91
|
+
| 'hierarchical'
|
|
92
|
+
| 'palette'
|
|
93
|
+
| 'multicolor';
|
|
94
|
+
|
|
95
|
+
export type SFSymbolAnimationEffect =
|
|
96
|
+
| 'bounce'
|
|
97
|
+
| 'pulse'
|
|
98
|
+
| 'appear'
|
|
99
|
+
| 'disappear'
|
|
100
|
+
| 'variableColor'
|
|
101
|
+
| 'breathe'
|
|
102
|
+
| 'wiggle'
|
|
103
|
+
| 'rotate';
|
|
104
|
+
|
|
105
|
+
export type SFSymbolAnimationConfig = {
|
|
106
|
+
/**
|
|
107
|
+
* The animation effect to apply.
|
|
108
|
+
*/
|
|
109
|
+
effect: SFSymbolAnimationEffect;
|
|
110
|
+
/**
|
|
111
|
+
* Whether the animation repeats continuously.
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
repeating?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Number of times to repeat the animation.
|
|
118
|
+
* Ignored if `repeating` is `true`.
|
|
119
|
+
*/
|
|
120
|
+
repeatCount?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Speed multiplier for the animation.
|
|
123
|
+
*
|
|
124
|
+
* @default 1
|
|
125
|
+
*/
|
|
126
|
+
speed?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Whether to animate the whole symbol at once or layer by layer.
|
|
129
|
+
*
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
wholeSymbol?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Direction of the animation.
|
|
135
|
+
* Applicable to `bounce` and `wiggle`.
|
|
136
|
+
*/
|
|
137
|
+
direction?: 'up' | 'down';
|
|
138
|
+
/**
|
|
139
|
+
* Whether the variable color effect reverses with each cycle.
|
|
140
|
+
* Only applicable to `variableColor`.
|
|
141
|
+
*
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
reversing?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Whether each layer remains changed until the end of the cycle.
|
|
147
|
+
* Only applicable to `variableColor`.
|
|
148
|
+
*
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
cumulative?: boolean;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export type SFSymbolAnimation =
|
|
155
|
+
| SFSymbolAnimationEffect
|
|
156
|
+
| SFSymbolAnimationConfig;
|
|
157
|
+
|
|
32
158
|
export type SFSymbolOptions = {
|
|
33
159
|
/**
|
|
34
160
|
* The name of the SF Symbol to display.
|
|
@@ -41,7 +167,52 @@ export type SFSymbolOptions = {
|
|
|
41
167
|
size?: number;
|
|
42
168
|
/**
|
|
43
169
|
* The color of the symbol.
|
|
170
|
+
* Used as the tint color in monochrome mode, and as the fallback for
|
|
171
|
+
* `colors.primary` in hierarchical and palette modes.
|
|
172
|
+
*
|
|
44
173
|
* @default 'black'
|
|
45
174
|
*/
|
|
46
175
|
color?: ColorValue;
|
|
176
|
+
/**
|
|
177
|
+
* The weight of the symbol.
|
|
178
|
+
*
|
|
179
|
+
* @default 'regular'
|
|
180
|
+
*/
|
|
181
|
+
weight?:
|
|
182
|
+
| keyof typeof FONT_WEIGHTS
|
|
183
|
+
| (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS];
|
|
184
|
+
/**
|
|
185
|
+
* The scale of the symbol relative to the font size.
|
|
186
|
+
*
|
|
187
|
+
* @default 'medium'
|
|
188
|
+
*/
|
|
189
|
+
scale?: SFSymbolScale;
|
|
190
|
+
/**
|
|
191
|
+
* The rendering mode of the symbol.
|
|
192
|
+
* - `monochrome`: Single color tint (default).
|
|
193
|
+
* - `hierarchical`: Derived hierarchy from a single color.
|
|
194
|
+
* - `palette`: Explicit colors for each layer.
|
|
195
|
+
* - `multicolor`: Uses the symbol's built-in multicolor scheme.
|
|
196
|
+
*
|
|
197
|
+
* @default 'monochrome'
|
|
198
|
+
*/
|
|
199
|
+
mode?: SFSymbolMode;
|
|
200
|
+
/**
|
|
201
|
+
* The colors for non-monochrome rendering modes.
|
|
202
|
+
* - `hierarchical`: uses `primary` as the base color.
|
|
203
|
+
* - `palette`: uses `primary`, `secondary`, and `tertiary` for each layer.
|
|
204
|
+
* - `multicolor`: ignored.
|
|
205
|
+
*
|
|
206
|
+
* Falls back to `color` for `primary` if not specified.
|
|
207
|
+
*/
|
|
208
|
+
colors?: {
|
|
209
|
+
primary?: ColorValue;
|
|
210
|
+
secondary?: ColorValue;
|
|
211
|
+
tertiary?: ColorValue;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* The animation effect to apply to the symbol.
|
|
215
|
+
* Requires iOS 17+. Ignored on earlier versions.
|
|
216
|
+
*/
|
|
217
|
+
animation?: SFSymbolAnimation;
|
|
47
218
|
};
|