@react-navigation/native 8.0.0-alpha.3 → 8.0.0-alpha.31
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 +80 -6
- package/android/src/main/java/org/reactnavigation/MaterialSymbolModule.kt +33 -12
- package/android/src/main/java/org/reactnavigation/MaterialSymbolTypeface.kt +81 -8
- package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +39 -6
- package/android/src/main/java/org/reactnavigation/MaterialSymbolViewManager.kt +14 -7
- package/android/src/main/java/org/reactnavigation/ReactNavigationPackage.kt +3 -1
- 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/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.codepoints +4102 -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_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.codepoints +4102 -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_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/ReactNavigationCornerInsetView.h +14 -0
- package/ios/ReactNavigationCornerInsetView.mm +182 -0
- package/ios/ReactNavigationCornerInsetView.swift +193 -0
- package/ios/ReactNavigationCornerInsetViewComponentDescriptor.h +23 -0
- package/ios/ReactNavigationCornerInsetViewShadowNode.h +27 -0
- package/ios/ReactNavigationCornerInsetViewShadowNode.mm +42 -0
- package/ios/ReactNavigationCornerInsetViewState.h +19 -0
- package/ios/ReactNavigationSFSymbolView.mm +34 -0
- package/ios/ReactNavigationSFSymbolView.swift +543 -7
- package/lib/module/NavigationContainer.js +16 -11
- package/lib/module/NavigationContainer.js.map +1 -1
- package/lib/module/__stubs__/createStackNavigator.js +10 -4
- package/lib/module/__stubs__/createStackNavigator.js.map +1 -1
- package/lib/module/__stubs__/window.js +3 -0
- package/lib/module/__stubs__/window.js.map +1 -1
- package/lib/module/createMemoryHistory.js +15 -6
- package/lib/module/createMemoryHistory.js.map +1 -1
- package/lib/module/createStandardNavigationFactories.js +99 -0
- package/lib/module/createStandardNavigationFactories.js.map +1 -0
- package/lib/module/createStaticNavigation.js +5 -4
- package/lib/module/createStaticNavigation.js.map +1 -1
- package/lib/module/extractPathFromURL.js +2 -2
- package/lib/module/extractPathFromURL.js.map +1 -1
- package/lib/module/getStateFromHref.js +2 -2
- package/lib/module/getStateFromHref.js.map +1 -1
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/CornerInset.ios.js +66 -0
- package/lib/module/native/CornerInset.ios.js.map +1 -0
- package/lib/module/native/CornerInset.js +17 -0
- package/lib/module/native/CornerInset.js.map +1 -0
- package/lib/module/native/MaterialSymbol.android.js +9 -20
- package/lib/module/native/MaterialSymbol.android.js.map +1 -1
- package/lib/module/native/MaterialSymbolData.js +0 -7
- package/lib/module/native/MaterialSymbolData.js.map +1 -1
- package/lib/module/native/MaterialSymbolViewNativeComponent.ts +4 -4
- package/lib/module/native/NativeMaterialSymbolModule.js.map +1 -1
- package/lib/module/native/ReactNavigationCornerInsetViewNativeComponent.ts +32 -0
- package/lib/module/native/SFSymbol.ios.js +45 -1
- package/lib/module/native/SFSymbol.ios.js.map +1 -1
- package/lib/module/native/SFSymbolViewNativeComponent.ts +28 -1
- package/lib/module/native/constants.js +14 -0
- package/lib/module/native/constants.js.map +1 -0
- package/lib/module/server/ServerContext.js.map +1 -0
- package/lib/module/server/index.js +21 -0
- package/lib/module/server/index.js.map +1 -0
- package/lib/module/theming/DarkTheme.js +4 -4
- package/lib/module/theming/{DefaultTheme.js → LightTheme.js} +5 -5
- package/lib/module/theming/LightTheme.js.map +1 -0
- package/lib/module/theming/MaterialFallbackTheme.js +28 -0
- package/lib/module/theming/MaterialFallbackTheme.js.map +1 -0
- package/lib/module/theming/MaterialTheme.android.js +33 -0
- package/lib/module/theming/MaterialTheme.android.js.map +1 -0
- package/lib/module/theming/MaterialTheme.js +4 -0
- package/lib/module/theming/MaterialTheme.js.map +1 -0
- package/lib/module/useBackButton.js.map +1 -1
- package/lib/module/useDocumentTitle.js.map +1 -1
- package/lib/module/useLinkBuilder.js +8 -7
- package/lib/module/useLinkBuilder.js.map +1 -1
- package/lib/module/useLinkProps.js +5 -26
- package/lib/module/useLinkProps.js.map +1 -1
- package/lib/module/useLinkTo.js +1 -1
- package/lib/module/useLinkTo.js.map +1 -1
- package/lib/module/useLinking.js +81 -11
- package/lib/module/useLinking.js.map +1 -1
- package/lib/module/useLinking.native.js +25 -8
- package/lib/module/useLinking.native.js.map +1 -1
- package/lib/module/useLocale.js +1 -1
- package/lib/module/useLocale.js.map +1 -1
- package/lib/module/useMemoArray.js +25 -0
- package/lib/module/useMemoArray.js.map +1 -0
- package/lib/module/useRoutePath.js +1 -1
- package/lib/module/useRoutePath.js.map +1 -1
- package/lib/module/useScrollToTop.js +3 -2
- package/lib/module/useScrollToTop.js.map +1 -1
- package/lib/typescript/src/Link.d.ts +1 -1
- package/lib/typescript/src/Link.d.ts.map +1 -1
- package/lib/typescript/src/LinkingContext.d.ts +1 -1
- package/lib/typescript/src/LinkingContext.d.ts.map +1 -1
- package/lib/typescript/src/LocaleDirContext.d.ts +1 -1
- package/lib/typescript/src/LocaleDirContext.d.ts.map +1 -1
- package/lib/typescript/src/NavigationContainer.d.ts +13 -6
- package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts +6 -9
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +1 -1
- package/lib/typescript/src/__stubs__/window.d.ts.map +1 -1
- package/lib/typescript/src/createMemoryHistory.d.ts +1 -1
- package/lib/typescript/src/createMemoryHistory.d.ts.map +1 -1
- package/lib/typescript/src/createStandardNavigationFactories.d.ts +31 -0
- package/lib/typescript/src/createStandardNavigationFactories.d.ts.map +1 -0
- package/lib/typescript/src/createStaticNavigation.d.ts +7 -7
- package/lib/typescript/src/createStaticNavigation.d.ts.map +1 -1
- package/lib/typescript/src/extractPathFromURL.d.ts +1 -1
- package/lib/typescript/src/extractPathFromURL.d.ts.map +1 -1
- package/lib/typescript/src/getStateFromHref.d.ts +3 -3
- package/lib/typescript/src/getStateFromHref.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +17 -15
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/CornerInset.d.ts +28 -0
- package/lib/typescript/src/native/CornerInset.d.ts.map +1 -0
- package/lib/typescript/src/native/CornerInset.ios.d.ts +8 -0
- package/lib/typescript/src/native/CornerInset.ios.d.ts.map +1 -0
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts +3 -3
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbol.d.ts +1 -1
- package/lib/typescript/src/native/MaterialSymbol.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbolData.d.ts +0 -3
- package/lib/typescript/src/native/MaterialSymbolData.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts +3 -3
- 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/ReactNavigationCornerInsetViewNativeComponent.d.ts +14 -0
- package/lib/typescript/src/native/ReactNavigationCornerInsetViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/native/SFSymbol.d.ts +1 -1
- package/lib/typescript/src/native/SFSymbol.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbol.ios.d.ts +2 -2
- package/lib/typescript/src/native/SFSymbol.ios.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts +28 -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 +345 -5
- package/lib/typescript/src/native/types.d.ts.map +1 -1
- package/lib/typescript/src/{ServerContext.d.ts → server/ServerContext.d.ts} +1 -4
- package/lib/typescript/src/server/ServerContext.d.ts.map +1 -0
- package/lib/typescript/src/server/index.d.ts +10 -0
- package/lib/typescript/src/server/index.d.ts.map +1 -0
- package/lib/typescript/src/theming/DarkTheme.d.ts +4 -4
- package/lib/typescript/src/theming/{DefaultTheme.d.ts → LightTheme.d.ts} +5 -5
- package/lib/typescript/src/theming/LightTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialFallbackTheme.d.ts +127 -0
- package/lib/typescript/src/theming/MaterialFallbackTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts +251 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialTheme.d.ts +2 -0
- package/lib/typescript/src/theming/MaterialTheme.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +13 -16
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/useBackButton.d.ts +1 -1
- package/lib/typescript/src/useBackButton.d.ts.map +1 -1
- package/lib/typescript/src/useDocumentTitle.d.ts +2 -2
- package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -1
- package/lib/typescript/src/useLinkBuilder.d.ts +54 -66
- package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
- package/lib/typescript/src/useLinkProps.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.d.ts +17 -19
- package/lib/typescript/src/useLinking.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.native.d.ts +31 -33
- package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
- package/lib/typescript/src/useLocale.d.ts +1 -1
- package/lib/typescript/src/useMemoArray.d.ts +2 -0
- package/lib/typescript/src/useMemoArray.d.ts.map +1 -0
- package/lib/typescript/src/useScrollToTop.d.ts.map +1 -1
- package/package.json +41 -22
- package/src/NavigationContainer.tsx +41 -32
- package/src/__stubs__/createStackNavigator.tsx +19 -17
- package/src/__stubs__/window.tsx +5 -0
- package/src/createMemoryHistory.tsx +19 -6
- package/src/createStandardNavigationFactories.tsx +218 -0
- package/src/createStaticNavigation.tsx +13 -17
- package/src/extractPathFromURL.tsx +5 -3
- package/src/getStateFromHref.tsx +8 -3
- package/src/index.tsx +11 -2
- package/src/native/CornerInset.ios.tsx +85 -0
- package/src/native/CornerInset.tsx +40 -0
- package/src/native/MaterialSymbol.android.tsx +9 -28
- package/src/native/MaterialSymbolData.tsx +0 -4
- package/src/native/MaterialSymbolViewNativeComponent.ts +4 -4
- package/src/native/NativeMaterialSymbolModule.ts +3 -4
- package/src/native/ReactNavigationCornerInsetViewNativeComponent.ts +32 -0
- package/src/native/SFSymbol.ios.tsx +84 -2
- package/src/native/SFSymbolViewNativeComponent.ts +28 -1
- package/src/native/constants.tsx +11 -0
- package/src/native/types.tsx +433 -4
- package/src/{ServerContext.tsx → server/ServerContext.tsx} +1 -4
- package/src/server/index.tsx +19 -0
- package/src/theming/DarkTheme.tsx +4 -4
- package/src/theming/{DefaultTheme.tsx → LightTheme.tsx} +4 -4
- package/src/theming/MaterialFallbackTheme.tsx +29 -0
- package/src/theming/MaterialTheme.android.tsx +45 -0
- package/src/theming/MaterialTheme.tsx +4 -0
- package/src/types.tsx +38 -40
- package/src/useBackButton.tsx +2 -2
- package/src/useDocumentTitle.tsx +2 -2
- package/src/useLinkBuilder.tsx +15 -7
- package/src/useLinkProps.tsx +8 -41
- package/src/useLinkTo.tsx +1 -1
- package/src/useLinking.native.tsx +58 -30
- package/src/useLinking.tsx +132 -22
- package/src/useLocale.tsx +1 -1
- package/src/useMemoArray.tsx +41 -0
- package/src/useRoutePath.tsx +1 -1
- package/src/useScrollToTop.tsx +3 -2
- 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$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 -45
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationMaterialSymbolViewManagerInterface.java +0 -22
- 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 -106
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.h +0 -113
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/ReactNavigationSpecJSI-generated.cpp +0 -32
- 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/MaterialSymbolsOutlined_400.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_400.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$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$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/lib/module/ServerContainer.js +0 -55
- package/lib/module/ServerContainer.js.map +0 -1
- package/lib/module/ServerContext.js.map +0 -1
- package/lib/module/theming/DefaultTheme.js.map +0 -1
- package/lib/typescript/src/ServerContainer.d.ts +0 -14
- package/lib/typescript/src/ServerContainer.d.ts.map +0 -1
- package/lib/typescript/src/ServerContext.d.ts.map +0 -1
- package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
- package/src/ServerContainer.tsx +0 -57
- /package/lib/module/{ServerContext.js → server/ServerContext.js} +0 -0
|
@@ -1,22 +1,104 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
|
|
3
|
+
import { FONT_WEIGHTS } from './constants';
|
|
3
4
|
import SFSymbolViewNativeComponent from './SFSymbolViewNativeComponent';
|
|
4
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
SFSymbolBreatheVariant,
|
|
7
|
+
SFSymbolContentTransitionEffect,
|
|
8
|
+
SFSymbolContentTransitionScope,
|
|
9
|
+
SFSymbolDrawDirection,
|
|
10
|
+
SFSymbolEffectDirection,
|
|
11
|
+
SFSymbolEffectName,
|
|
12
|
+
SFSymbolEffectRepeat,
|
|
13
|
+
SFSymbolEffectScope,
|
|
14
|
+
SFSymbolInactiveLayers,
|
|
15
|
+
SFSymbolOptions,
|
|
16
|
+
SFSymbolReplaceTransitionVariant,
|
|
17
|
+
} from './types';
|
|
5
18
|
|
|
6
19
|
export type SFSymbolProps = SFSymbolOptions & ViewProps;
|
|
7
20
|
|
|
21
|
+
type NativeEffectConfig = {
|
|
22
|
+
type: SFSymbolEffectName;
|
|
23
|
+
speed?: number | undefined;
|
|
24
|
+
repeat?: SFSymbolEffectRepeat | undefined;
|
|
25
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
26
|
+
direction?: SFSymbolEffectDirection | undefined;
|
|
27
|
+
variant?: SFSymbolBreatheVariant | undefined;
|
|
28
|
+
angle?: number | undefined;
|
|
29
|
+
reversing?: boolean | undefined;
|
|
30
|
+
cumulative?: boolean | undefined;
|
|
31
|
+
inactiveLayers?: SFSymbolInactiveLayers | undefined;
|
|
32
|
+
drawDirection?: SFSymbolDrawDirection | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
type NativeContentTransitionConfig = {
|
|
36
|
+
type: SFSymbolContentTransitionEffect;
|
|
37
|
+
speed?: number | undefined;
|
|
38
|
+
variant?: SFSymbolReplaceTransitionVariant | undefined;
|
|
39
|
+
scope?: SFSymbolContentTransitionScope | undefined;
|
|
40
|
+
magic?: boolean | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
8
43
|
export function SFSymbol({
|
|
9
44
|
name,
|
|
10
45
|
size = 24,
|
|
11
|
-
color
|
|
46
|
+
color,
|
|
47
|
+
weight,
|
|
48
|
+
scale = 'medium',
|
|
49
|
+
variableValue,
|
|
50
|
+
variableValueMode = 'automatic',
|
|
51
|
+
colorRenderingMode = 'automatic',
|
|
52
|
+
renderingMode = 'monochrome',
|
|
53
|
+
colors,
|
|
54
|
+
effect,
|
|
55
|
+
contentTransition,
|
|
12
56
|
style,
|
|
13
57
|
...rest
|
|
14
58
|
}: SFSymbolProps): React.ReactElement {
|
|
59
|
+
const effectConfig: NativeEffectConfig | undefined =
|
|
60
|
+
typeof effect === 'string' ? { type: effect } : effect;
|
|
61
|
+
const contentTransitionConfig: NativeContentTransitionConfig | undefined =
|
|
62
|
+
typeof contentTransition === 'string'
|
|
63
|
+
? { type: contentTransition }
|
|
64
|
+
: contentTransition;
|
|
65
|
+
|
|
66
|
+
const repeat = effectConfig?.repeat;
|
|
67
|
+
|
|
15
68
|
return (
|
|
16
69
|
<SFSymbolViewNativeComponent
|
|
17
70
|
name={name}
|
|
18
71
|
size={size}
|
|
19
72
|
color={color}
|
|
73
|
+
weight={typeof weight === 'string' ? FONT_WEIGHTS[weight] : (weight ?? 0)}
|
|
74
|
+
scale={scale}
|
|
75
|
+
variableValue={variableValue ?? -1}
|
|
76
|
+
variableValueMode={variableValueMode}
|
|
77
|
+
colorRenderingMode={colorRenderingMode}
|
|
78
|
+
renderingMode={renderingMode}
|
|
79
|
+
colorPrimary={colors?.primary ?? color}
|
|
80
|
+
colorSecondary={colors?.secondary}
|
|
81
|
+
colorTertiary={colors?.tertiary}
|
|
82
|
+
effect={effectConfig?.type ?? ''}
|
|
83
|
+
effectRepeat={
|
|
84
|
+
typeof repeat === 'string' ? repeat : repeat ? 'periodic' : ''
|
|
85
|
+
}
|
|
86
|
+
effectRepeatCount={typeof repeat === 'object' ? (repeat.count ?? 0) : 0}
|
|
87
|
+
effectRepeatDelay={typeof repeat === 'object' ? (repeat.delay ?? 0) : 0}
|
|
88
|
+
effectSpeed={effectConfig?.speed ?? 1}
|
|
89
|
+
effectScope={effectConfig?.scope ?? ''}
|
|
90
|
+
effectDirection={effectConfig?.direction ?? ''}
|
|
91
|
+
effectVariant={effectConfig?.variant ?? ''}
|
|
92
|
+
effectAngle={effectConfig?.angle ?? -1}
|
|
93
|
+
effectReversing={effectConfig?.reversing ?? false}
|
|
94
|
+
effectCumulative={effectConfig?.cumulative ?? false}
|
|
95
|
+
effectInactiveLayers={effectConfig?.inactiveLayers ?? ''}
|
|
96
|
+
effectDrawDirection={effectConfig?.drawDirection ?? ''}
|
|
97
|
+
contentTransition={contentTransitionConfig?.type ?? ''}
|
|
98
|
+
contentTransitionSpeed={contentTransitionConfig?.speed ?? 1}
|
|
99
|
+
contentTransitionVariant={contentTransitionConfig?.variant ?? ''}
|
|
100
|
+
contentTransitionScope={contentTransitionConfig?.scope ?? ''}
|
|
101
|
+
contentTransitionMagic={contentTransitionConfig?.magic ?? false}
|
|
20
102
|
style={[
|
|
21
103
|
{
|
|
22
104
|
width: size,
|
|
@@ -10,7 +10,34 @@ 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
|
+
variableValue: CodegenTypes.Float;
|
|
17
|
+
variableValueMode: string;
|
|
18
|
+
colorRenderingMode: string;
|
|
19
|
+
renderingMode: string;
|
|
20
|
+
colorPrimary?: ColorValue;
|
|
21
|
+
colorSecondary?: ColorValue;
|
|
22
|
+
colorTertiary?: ColorValue;
|
|
23
|
+
effect: string;
|
|
24
|
+
effectRepeat: string;
|
|
25
|
+
effectRepeatCount: CodegenTypes.Int32;
|
|
26
|
+
effectRepeatDelay: CodegenTypes.Float;
|
|
27
|
+
effectSpeed: CodegenTypes.Float;
|
|
28
|
+
effectScope: string;
|
|
29
|
+
effectDirection: string;
|
|
30
|
+
effectVariant: string;
|
|
31
|
+
effectAngle: CodegenTypes.Float;
|
|
32
|
+
effectReversing: boolean;
|
|
33
|
+
effectCumulative: boolean;
|
|
34
|
+
effectInactiveLayers: string;
|
|
35
|
+
effectDrawDirection: string;
|
|
36
|
+
contentTransition: string;
|
|
37
|
+
contentTransitionSpeed: CodegenTypes.Float;
|
|
38
|
+
contentTransitionVariant: string;
|
|
39
|
+
contentTransitionScope: string;
|
|
40
|
+
contentTransitionMagic: boolean;
|
|
14
41
|
}
|
|
15
42
|
|
|
16
43
|
export default codegenNativeComponent<NativeProps>(
|
package/src/native/types.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
6
|
export type MaterialSymbolOptions = {
|
|
@@ -7,20 +8,358 @@ export type MaterialSymbolOptions = {
|
|
|
7
8
|
* The name of the Material Symbol to display.
|
|
8
9
|
*/
|
|
9
10
|
name: MaterialSymbolName;
|
|
11
|
+
/**
|
|
12
|
+
* The variant of the symbol.
|
|
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
|
+
*
|
|
31
|
+
* @default 'outlined'
|
|
32
|
+
*/
|
|
33
|
+
variant?: 'outlined' | 'rounded' | 'sharp' | undefined;
|
|
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
|
|
73
|
+
| undefined;
|
|
10
74
|
/**
|
|
11
75
|
* The size of the symbol.
|
|
12
76
|
*
|
|
13
77
|
* @default 24
|
|
14
78
|
*/
|
|
15
|
-
size?: number;
|
|
79
|
+
size?: number | undefined;
|
|
16
80
|
/**
|
|
17
81
|
* The color of the symbol.
|
|
18
82
|
*
|
|
19
83
|
* @default 'black'
|
|
20
84
|
*/
|
|
21
|
-
color?: ColorValue;
|
|
85
|
+
color?: ColorValue | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type SFSymbolScale = 'small' | 'medium' | 'large';
|
|
89
|
+
|
|
90
|
+
type SFSymbolRenderingMode =
|
|
91
|
+
| 'monochrome'
|
|
92
|
+
| 'hierarchical'
|
|
93
|
+
| 'palette'
|
|
94
|
+
| 'multicolor';
|
|
95
|
+
|
|
96
|
+
export type SFSymbolEffectName =
|
|
97
|
+
| 'bounce'
|
|
98
|
+
| 'pulse'
|
|
99
|
+
| 'appear'
|
|
100
|
+
| 'disappear'
|
|
101
|
+
| 'variableColor'
|
|
102
|
+
| 'scale'
|
|
103
|
+
| 'breathe'
|
|
104
|
+
| 'wiggle'
|
|
105
|
+
| 'rotate'
|
|
106
|
+
| 'drawOn'
|
|
107
|
+
| 'drawOff';
|
|
108
|
+
|
|
109
|
+
export type SFSymbolContentTransitionEffect = 'automatic' | 'replace';
|
|
110
|
+
|
|
111
|
+
export type SFSymbolEffectRepeat =
|
|
112
|
+
| 'continuous'
|
|
113
|
+
| 'nonRepeating'
|
|
114
|
+
| {
|
|
115
|
+
/**
|
|
116
|
+
* Number of times to repeat the effect.
|
|
117
|
+
*/
|
|
118
|
+
count?: number | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Delay in seconds between repeated effect cycles.
|
|
121
|
+
*/
|
|
122
|
+
delay?: number | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export type SFSymbolEffectScope = 'byLayer' | 'wholeSymbol' | 'individually';
|
|
126
|
+
|
|
127
|
+
export type SFSymbolEffectDirection =
|
|
128
|
+
| 'up'
|
|
129
|
+
| 'down'
|
|
130
|
+
| 'left'
|
|
131
|
+
| 'right'
|
|
132
|
+
| 'forward'
|
|
133
|
+
| 'backward'
|
|
134
|
+
| 'clockwise'
|
|
135
|
+
| 'counterClockwise';
|
|
136
|
+
|
|
137
|
+
export type SFSymbolBreatheVariant = 'plain' | 'pulse';
|
|
138
|
+
|
|
139
|
+
export type SFSymbolDrawDirection = 'reversed' | 'nonReversed';
|
|
140
|
+
|
|
141
|
+
export type SFSymbolInactiveLayers = 'hide' | 'dim';
|
|
142
|
+
|
|
143
|
+
type SFSymbolEffectBaseConfig = {
|
|
144
|
+
/**
|
|
145
|
+
* Speed multiplier for the effect.
|
|
146
|
+
*
|
|
147
|
+
* @default 1
|
|
148
|
+
*/
|
|
149
|
+
speed?: number | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Repeat behavior for the effect. Use an object for periodic repeats.
|
|
152
|
+
*/
|
|
153
|
+
repeat?: SFSymbolEffectRepeat | undefined;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
type SFSymbolScopedEffectConfig = SFSymbolEffectBaseConfig & {
|
|
157
|
+
/**
|
|
158
|
+
* Whether to animate the whole symbol at once or by layer.
|
|
159
|
+
*
|
|
160
|
+
* @default 'byLayer'
|
|
161
|
+
*/
|
|
162
|
+
scope?: Extract<SFSymbolEffectScope, 'byLayer' | 'wholeSymbol'> | undefined;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
type SFSymbolDirectionalEffectName = 'bounce' | 'appear' | 'disappear';
|
|
166
|
+
|
|
167
|
+
type SFSymbolDirectionalEffectConfig = SFSymbolScopedEffectConfig & {
|
|
168
|
+
/**
|
|
169
|
+
* The symbol effect to apply.
|
|
170
|
+
*/
|
|
171
|
+
type: SFSymbolDirectionalEffectName;
|
|
172
|
+
/**
|
|
173
|
+
* The direction the symbol moves during the effect.
|
|
174
|
+
*/
|
|
175
|
+
direction?: 'up' | 'down' | undefined;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
type SFSymbolScaleEffectConfig = SFSymbolScopedEffectConfig & {
|
|
179
|
+
/**
|
|
180
|
+
* The symbol effect to apply.
|
|
181
|
+
*/
|
|
182
|
+
type: 'scale';
|
|
183
|
+
/**
|
|
184
|
+
* Whether the symbol scales up or down.
|
|
185
|
+
*/
|
|
186
|
+
direction?: 'up' | 'down' | undefined;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
type SFSymbolBasicScopedEffectConfig = SFSymbolScopedEffectConfig & {
|
|
190
|
+
/**
|
|
191
|
+
* The symbol effect to apply.
|
|
192
|
+
*/
|
|
193
|
+
type: 'pulse';
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
type SFSymbolBreatheEffectConfig = SFSymbolScopedEffectConfig & {
|
|
197
|
+
/**
|
|
198
|
+
* The symbol effect to apply.
|
|
199
|
+
*/
|
|
200
|
+
type: 'breathe';
|
|
201
|
+
/**
|
|
202
|
+
* The breathe effect variant.
|
|
203
|
+
*/
|
|
204
|
+
variant?: SFSymbolBreatheVariant | undefined;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
type SFSymbolWiggleEffectConfig = SFSymbolScopedEffectConfig & {
|
|
208
|
+
/**
|
|
209
|
+
* The symbol effect to apply.
|
|
210
|
+
*/
|
|
211
|
+
type: 'wiggle';
|
|
212
|
+
/**
|
|
213
|
+
* The direction the symbol wiggles toward.
|
|
214
|
+
*/
|
|
215
|
+
direction?: SFSymbolEffectDirection | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* A custom wiggle angle in degrees. Overrides `direction` when set.
|
|
218
|
+
*/
|
|
219
|
+
angle?: number | undefined;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
type SFSymbolRotateEffectConfig = SFSymbolScopedEffectConfig & {
|
|
223
|
+
/**
|
|
224
|
+
* The symbol effect to apply.
|
|
225
|
+
*/
|
|
226
|
+
type: 'rotate';
|
|
227
|
+
/**
|
|
228
|
+
* Which way the symbol rotates.
|
|
229
|
+
*/
|
|
230
|
+
direction?: 'clockwise' | 'counterClockwise' | undefined;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
type SFSymbolDrawEffectConfig = SFSymbolEffectBaseConfig & {
|
|
234
|
+
/**
|
|
235
|
+
* The symbol effect to apply.
|
|
236
|
+
*/
|
|
237
|
+
type: 'drawOn';
|
|
238
|
+
/**
|
|
239
|
+
* Whether to animate the whole symbol at once, by layer, or individually.
|
|
240
|
+
*
|
|
241
|
+
* @default 'byLayer'
|
|
242
|
+
*/
|
|
243
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
22
244
|
};
|
|
23
245
|
|
|
246
|
+
type SFSymbolDrawOffEffectConfig = SFSymbolEffectBaseConfig & {
|
|
247
|
+
/**
|
|
248
|
+
* The symbol effect to apply.
|
|
249
|
+
*/
|
|
250
|
+
type: 'drawOff';
|
|
251
|
+
/**
|
|
252
|
+
* Whether to animate the whole symbol at once, by layer, or individually.
|
|
253
|
+
*
|
|
254
|
+
* @default 'byLayer'
|
|
255
|
+
*/
|
|
256
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* Whether the draw-off animation follows the symbol's authored draw
|
|
259
|
+
* order or plays it in reverse.
|
|
260
|
+
* - `nonReversed`: follows the symbol's draw order.
|
|
261
|
+
* - `reversed`: plays it in reverse.
|
|
262
|
+
*/
|
|
263
|
+
drawDirection?: SFSymbolDrawDirection | undefined;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
type SFSymbolVariableColorEffectConfig = SFSymbolEffectBaseConfig & {
|
|
267
|
+
/**
|
|
268
|
+
* The symbol effect to apply.
|
|
269
|
+
*/
|
|
270
|
+
type: 'variableColor';
|
|
271
|
+
/**
|
|
272
|
+
* Whether the variable color effect reverses with each cycle.
|
|
273
|
+
*
|
|
274
|
+
* @default false
|
|
275
|
+
*/
|
|
276
|
+
reversing?: boolean | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* Whether layers light up cumulatively and stay active through the
|
|
279
|
+
* cycle, rather than one at a time.
|
|
280
|
+
*
|
|
281
|
+
* @default false
|
|
282
|
+
*/
|
|
283
|
+
cumulative?: boolean | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* How layers that aren't currently active are displayed.
|
|
286
|
+
* - `hide`: inactive layers are invisible.
|
|
287
|
+
* - `dim`: inactive layers stay visible but faded.
|
|
288
|
+
*
|
|
289
|
+
* Defaults to the symbol's standard appearance when unset.
|
|
290
|
+
*/
|
|
291
|
+
inactiveLayers?: SFSymbolInactiveLayers | undefined;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
type SFSymbolEffectConfig =
|
|
295
|
+
| SFSymbolDirectionalEffectConfig
|
|
296
|
+
| SFSymbolScaleEffectConfig
|
|
297
|
+
| SFSymbolBasicScopedEffectConfig
|
|
298
|
+
| SFSymbolBreatheEffectConfig
|
|
299
|
+
| SFSymbolWiggleEffectConfig
|
|
300
|
+
| SFSymbolRotateEffectConfig
|
|
301
|
+
| SFSymbolDrawEffectConfig
|
|
302
|
+
| SFSymbolDrawOffEffectConfig
|
|
303
|
+
| SFSymbolVariableColorEffectConfig;
|
|
304
|
+
|
|
305
|
+
export type SFSymbolContentTransitionScope = 'byLayer' | 'wholeSymbol';
|
|
306
|
+
|
|
307
|
+
export type SFSymbolReplaceTransitionVariant = 'downUp' | 'upUp' | 'offUp';
|
|
308
|
+
|
|
309
|
+
type SFSymbolContentTransitionBaseConfig = {
|
|
310
|
+
/**
|
|
311
|
+
* Speed multiplier for the transition.
|
|
312
|
+
*
|
|
313
|
+
* @default 1
|
|
314
|
+
*/
|
|
315
|
+
speed?: number | undefined;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
type SFSymbolContentTransitionConfig =
|
|
319
|
+
| (SFSymbolContentTransitionBaseConfig & {
|
|
320
|
+
/**
|
|
321
|
+
* The transition effect to apply when the symbol `name` or `variableValue` changes.
|
|
322
|
+
*/
|
|
323
|
+
type: 'automatic';
|
|
324
|
+
})
|
|
325
|
+
| (SFSymbolContentTransitionBaseConfig & {
|
|
326
|
+
/**
|
|
327
|
+
* The transition effect to apply when the symbol `name` or `variableValue` changes.
|
|
328
|
+
*/
|
|
329
|
+
type: 'replace';
|
|
330
|
+
/**
|
|
331
|
+
* The direction the outgoing and incoming symbols move.
|
|
332
|
+
* - `downUp`: the old symbol slides down, the new one comes up.
|
|
333
|
+
* - `upUp`: both the old and new symbols move up.
|
|
334
|
+
* - `offUp`: the old symbol fades in place, the new one comes up.
|
|
335
|
+
*/
|
|
336
|
+
variant?: SFSymbolReplaceTransitionVariant | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* Whether to transition the whole symbol at once or by layer.
|
|
339
|
+
*
|
|
340
|
+
* @default 'byLayer'
|
|
341
|
+
*/
|
|
342
|
+
scope?: SFSymbolContentTransitionScope | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* Whether to prefer Magic Replace when possible.
|
|
345
|
+
*
|
|
346
|
+
* Falls back to regular Replace on iOS 17.
|
|
347
|
+
*
|
|
348
|
+
* @default false
|
|
349
|
+
*/
|
|
350
|
+
magic?: boolean | undefined;
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
type SFSymbolEffect = SFSymbolEffectName | SFSymbolEffectConfig;
|
|
354
|
+
|
|
355
|
+
type SFSymbolContentTransition =
|
|
356
|
+
| SFSymbolContentTransitionEffect
|
|
357
|
+
| SFSymbolContentTransitionConfig;
|
|
358
|
+
|
|
359
|
+
type SFSymbolVariableValueMode = 'automatic' | 'color' | 'draw';
|
|
360
|
+
|
|
361
|
+
type SFSymbolColorRenderingMode = 'automatic' | 'flat' | 'gradient';
|
|
362
|
+
|
|
24
363
|
export type SFSymbolOptions = {
|
|
25
364
|
/**
|
|
26
365
|
* The name of the SF Symbol to display.
|
|
@@ -28,12 +367,102 @@ export type SFSymbolOptions = {
|
|
|
28
367
|
name: import('sf-symbols-typescript').SFSymbol;
|
|
29
368
|
/**
|
|
30
369
|
* The size of the symbol.
|
|
370
|
+
*
|
|
31
371
|
* @default 24
|
|
32
372
|
*/
|
|
33
|
-
size?: number;
|
|
373
|
+
size?: number | undefined;
|
|
34
374
|
/**
|
|
35
375
|
* The color of the symbol.
|
|
376
|
+
* Used as the tint color in monochrome mode, and as the fallback for
|
|
377
|
+
* `colors.primary` in hierarchical and palette modes.
|
|
378
|
+
*
|
|
36
379
|
* @default 'black'
|
|
37
380
|
*/
|
|
38
|
-
color?: ColorValue;
|
|
381
|
+
color?: ColorValue | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* The weight of the symbol.
|
|
384
|
+
*
|
|
385
|
+
* @default 'regular'
|
|
386
|
+
*/
|
|
387
|
+
weight?:
|
|
388
|
+
| keyof typeof FONT_WEIGHTS
|
|
389
|
+
| (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS]
|
|
390
|
+
| undefined;
|
|
391
|
+
/**
|
|
392
|
+
* The symbol's scale variant (`small`, `medium`, or `large`).
|
|
393
|
+
*
|
|
394
|
+
* @default 'medium'
|
|
395
|
+
*/
|
|
396
|
+
scale?: SFSymbolScale | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* The value used to customize variable symbols.
|
|
399
|
+
* Must be between `0` and `1`.
|
|
400
|
+
*
|
|
401
|
+
* Variable symbols (e.g. `wifi`, `speaker.wave.3`) have layers that
|
|
402
|
+
* activate progressively to represent a magnitude. This controls how
|
|
403
|
+
* many are shown: `0` renders the fewest, `1` the full symbol.
|
|
404
|
+
*
|
|
405
|
+
* Has no effect on symbols that aren't variable.
|
|
406
|
+
*/
|
|
407
|
+
variableValue?: number | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* How the partial state from `variableValue` is rendered.
|
|
410
|
+
* - `automatic`: the system chooses based on the symbol.
|
|
411
|
+
* - `color`: fades inactive layers using opacity.
|
|
412
|
+
* - `draw`: partially draws layers instead of fading them.
|
|
413
|
+
*
|
|
414
|
+
* Requires iOS 26+. Ignored on earlier versions.
|
|
415
|
+
*
|
|
416
|
+
* @default 'automatic'
|
|
417
|
+
*/
|
|
418
|
+
variableValueMode?: SFSymbolVariableValueMode | undefined;
|
|
419
|
+
/**
|
|
420
|
+
* The rendering mode of the symbol.
|
|
421
|
+
* - `monochrome`: Single color tint (default).
|
|
422
|
+
* - `hierarchical`: Derived hierarchy from a single color.
|
|
423
|
+
* - `palette`: Explicit colors for each layer.
|
|
424
|
+
* - `multicolor`: Uses the symbol's built-in multicolor scheme.
|
|
425
|
+
*
|
|
426
|
+
* @default 'monochrome'
|
|
427
|
+
*/
|
|
428
|
+
renderingMode?: SFSymbolRenderingMode | undefined;
|
|
429
|
+
/**
|
|
430
|
+
* The colors for non-monochrome rendering modes.
|
|
431
|
+
* - `hierarchical`: uses `primary` as the base color.
|
|
432
|
+
* - `palette`: uses `primary`, `secondary`, and `tertiary` for each layer.
|
|
433
|
+
* - `multicolor`: ignored.
|
|
434
|
+
*
|
|
435
|
+
* Falls back to `color` for `primary` if not specified.
|
|
436
|
+
*/
|
|
437
|
+
colors?:
|
|
438
|
+
| {
|
|
439
|
+
primary?: ColorValue | undefined;
|
|
440
|
+
secondary?: ColorValue | undefined;
|
|
441
|
+
tertiary?: ColorValue | undefined;
|
|
442
|
+
}
|
|
443
|
+
| undefined;
|
|
444
|
+
/**
|
|
445
|
+
* How color is applied across the symbol's layers.
|
|
446
|
+
* - `automatic`: the system chooses based on the symbol.
|
|
447
|
+
* - `flat`: a solid color per layer.
|
|
448
|
+
* - `gradient`: a gradient derived from each layer's color.
|
|
449
|
+
*
|
|
450
|
+
* Requires iOS 26+. Ignored on earlier versions.
|
|
451
|
+
*
|
|
452
|
+
* @default 'automatic'
|
|
453
|
+
*/
|
|
454
|
+
colorRenderingMode?: SFSymbolColorRenderingMode | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* The effect to apply to the symbol.
|
|
457
|
+
*
|
|
458
|
+
* Requires iOS 17+. Effects introduced in later iOS versions are ignored
|
|
459
|
+
* on earlier versions.
|
|
460
|
+
*/
|
|
461
|
+
effect?: SFSymbolEffect | undefined;
|
|
462
|
+
/**
|
|
463
|
+
* The content transition to apply when the symbol `name` or `variableValue` changes.
|
|
464
|
+
*
|
|
465
|
+
* Requires iOS 17+. Ignored on earlier versions.
|
|
466
|
+
*/
|
|
467
|
+
contentTransition?: SFSymbolContentTransition | undefined;
|
|
39
468
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import { ServerContext } from './ServerContext';
|
|
4
|
+
|
|
5
|
+
export type ServerContainerProps = {
|
|
6
|
+
location: URL;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Provider for request-scoped server navigation state.
|
|
12
|
+
*/
|
|
13
|
+
export function ServerContainer({ location, children }: ServerContainerProps) {
|
|
14
|
+
const value = React.useMemo(() => ({ location }), [location]);
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<ServerContext.Provider value={value}>{children}</ServerContext.Provider>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -6,10 +6,10 @@ export const DarkTheme = {
|
|
|
6
6
|
dark: true,
|
|
7
7
|
colors: {
|
|
8
8
|
primary: 'rgb(10, 132, 255)',
|
|
9
|
-
background: 'rgb(
|
|
10
|
-
card: 'rgb(
|
|
11
|
-
text: 'rgb(
|
|
12
|
-
border: 'rgb(
|
|
9
|
+
background: 'rgb(0, 0, 0)',
|
|
10
|
+
card: 'rgb(28, 28, 30)',
|
|
11
|
+
text: 'rgb(255, 255, 255)',
|
|
12
|
+
border: 'rgb(56, 56, 58)',
|
|
13
13
|
notification: 'rgb(255, 69, 58)',
|
|
14
14
|
},
|
|
15
15
|
fonts,
|
|
@@ -2,14 +2,14 @@ import type { Theme } from '@react-navigation/core';
|
|
|
2
2
|
|
|
3
3
|
import { fonts } from './fonts';
|
|
4
4
|
|
|
5
|
-
export const
|
|
5
|
+
export const LightTheme = {
|
|
6
6
|
dark: false,
|
|
7
7
|
colors: {
|
|
8
8
|
primary: 'rgb(0, 122, 255)',
|
|
9
|
-
background: 'rgb(242, 242,
|
|
9
|
+
background: 'rgb(242, 242, 247)',
|
|
10
10
|
card: 'rgb(255, 255, 255)',
|
|
11
|
-
text: 'rgb(
|
|
12
|
-
border: 'rgb(
|
|
11
|
+
text: 'rgb(0, 0, 0)',
|
|
12
|
+
border: 'rgb(198, 198, 200)',
|
|
13
13
|
notification: 'rgb(255, 59, 48)',
|
|
14
14
|
},
|
|
15
15
|
fonts,
|