@react-navigation/native 8.0.0-alpha.5 → 8.0.0-alpha.51
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 +101 -28
- package/android/src/main/java/org/reactnavigation/MaterialSymbolModule.kt +42 -13
- package/android/src/main/java/org/reactnavigation/MaterialSymbolTypeface.kt +126 -24
- package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +42 -23
- package/android/src/main/java/org/reactnavigation/MaterialSymbolViewManager.kt +25 -7
- package/android/src/main/java/org/reactnavigation/ReactNavigationPackage.kt +3 -1
- 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 +30 -10
- package/ios/ReactNavigationSFSymbolView.swift +361 -65
- package/lib/module/Link.js +80 -24
- package/lib/module/Link.js.map +1 -1
- package/lib/module/Link.native.js +72 -0
- package/lib/module/Link.native.js.map +1 -0
- package/lib/module/NavigationContainer.js +77 -33
- package/lib/module/NavigationContainer.js.map +1 -1
- package/lib/module/__stubs__/createStackNavigator.js +11 -8
- package/lib/module/__stubs__/createStackNavigator.js.map +1 -1
- package/lib/module/checkSerializable.js +180 -0
- package/lib/module/checkSerializable.js.map +1 -0
- package/lib/module/constants.js +5 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/constants.native.js +6 -0
- package/lib/module/constants.native.js.map +1 -0
- package/lib/module/createMemoryHistory.js +27 -10
- package/lib/module/createMemoryHistory.js.map +1 -1
- package/lib/module/createStandardNavigationFactories.js +97 -0
- package/lib/module/createStandardNavigationFactories.js.map +1 -0
- package/lib/module/createStaticNavigation.js +7 -5
- 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/getStateBreadcrumb.js +37 -0
- package/lib/module/getStateBreadcrumb.js.map +1 -0
- package/lib/module/getStateFromHref.js +2 -2
- package/lib/module/getStateFromHref.js.map +1 -1
- package/lib/module/index.js +5 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/CornerInset.ios.js +69 -0
- package/lib/module/native/CornerInset.ios.js.map +1 -0
- package/lib/module/native/CornerInset.js +12 -0
- package/lib/module/native/CornerInset.js.map +1 -0
- package/lib/module/native/MaterialSymbol.android.js +19 -20
- package/lib/module/native/MaterialSymbol.android.js.map +1 -1
- package/lib/module/native/MaterialSymbol.js +3 -0
- package/lib/module/native/MaterialSymbol.js.map +1 -1
- package/lib/module/native/MaterialSymbolViewNativeComponent.ts +8 -4
- package/lib/module/native/NativeMaterialSymbolModule.js.map +1 -1
- package/lib/module/native/ReactNavigationCornerInsetViewNativeComponent.ts +31 -0
- package/lib/module/native/SFSymbol.ios.js +37 -18
- package/lib/module/native/SFSymbol.ios.js.map +1 -1
- package/lib/module/native/SFSymbol.js.map +1 -1
- package/lib/module/native/SFSymbolViewNativeComponent.ts +31 -15
- 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 +5 -5
- package/lib/module/theming/DarkTheme.js.map +1 -1
- package/lib/module/theming/LightTheme.js +16 -0
- 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/theming/fonts.js +15 -54
- package/lib/module/theming/fonts.js.map +1 -1
- package/lib/module/theming/fonts.native.js +42 -0
- package/lib/module/theming/fonts.native.js.map +1 -0
- package/lib/module/useBackButton.js.map +1 -1
- package/lib/module/useBackButton.native.js +4 -1
- package/lib/module/useBackButton.native.js.map +1 -1
- package/lib/module/useDeepStableValue.js +12 -0
- package/lib/module/useDeepStableValue.js.map +1 -0
- package/lib/module/useDocumentTitle.js.map +1 -1
- package/lib/module/useLinkBuilder.js +17 -17
- package/lib/module/useLinkBuilder.js.map +1 -1
- package/lib/module/useLinkProps.js +143 -68
- package/lib/module/useLinkProps.js.map +1 -1
- package/lib/module/useLinkTo.js +5 -5
- package/lib/module/useLinkTo.js.map +1 -1
- package/lib/module/useLinking.js +268 -58
- package/lib/module/useLinking.js.map +1 -1
- package/lib/module/useLinking.native.js +31 -12
- 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 +6 -9
- package/lib/module/useScrollToTop.js.map +1 -1
- package/lib/module/useThenable.js +8 -6
- package/lib/module/useThenable.js.map +1 -1
- package/lib/typescript/src/Link.d.ts +17 -9
- package/lib/typescript/src/Link.d.ts.map +1 -1
- package/lib/typescript/src/Link.native.d.ts +4 -0
- package/lib/typescript/src/Link.native.d.ts.map +1 -0
- package/lib/typescript/src/LinkingContext.d.ts +2 -2
- 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 +26 -14
- 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/checkSerializable.d.ts +12 -0
- package/lib/typescript/src/checkSerializable.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +4 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/constants.native.d.ts +4 -0
- package/lib/typescript/src/constants.native.d.ts.map +1 -0
- 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 +33 -0
- package/lib/typescript/src/createStandardNavigationFactories.d.ts.map +1 -0
- package/lib/typescript/src/createStaticNavigation.d.ts +9 -9
- 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/getStateBreadcrumb.d.ts +3 -0
- package/lib/typescript/src/getStateBreadcrumb.d.ts.map +1 -0
- 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 +16 -14
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/CornerInset.d.ts +32 -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 +11 -5
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbol.d.ts +10 -4
- package/lib/typescript/src/native/MaterialSymbol.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbolData.d.ts +1 -1
- package/lib/typescript/src/native/MaterialSymbolData.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts +4 -3
- package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/native/NativeMaterialSymbolModule.d.ts +2 -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 +8 -3
- package/lib/typescript/src/native/SFSymbol.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbol.ios.d.ts +9 -4
- package/lib/typescript/src/native/SFSymbol.ios.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts +27 -14
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/native/types.d.ts +289 -52
- 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 -38
- package/lib/typescript/src/theming/DarkTheme.d.ts.map +1 -1
- package/lib/typescript/src/theming/LightTheme.d.ts +30 -0
- package/lib/typescript/src/theming/LightTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/{DefaultTheme.d.ts → MaterialFallbackTheme.d.ts} +25 -30
- package/lib/typescript/src/theming/MaterialFallbackTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts +115 -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/theming/fonts.d.ts +0 -34
- package/lib/typescript/src/theming/fonts.d.ts.map +1 -1
- package/lib/typescript/src/theming/fonts.native.d.ts +36 -0
- package/lib/typescript/src/theming/fonts.native.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +41 -21
- 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/useBackButton.native.d.ts.map +1 -1
- package/lib/typescript/src/useDeepStableValue.d.ts +2 -0
- package/lib/typescript/src/useDeepStableValue.d.ts.map +1 -0
- 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 +62 -70
- package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
- package/lib/typescript/src/useLinkProps.d.ts +36 -12
- package/lib/typescript/src/useLinkProps.d.ts.map +1 -1
- package/lib/typescript/src/useLinkTo.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.d.ts +7 -49
- package/lib/typescript/src/useLinking.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.native.d.ts +9 -83
- 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 +1 -4
- package/lib/typescript/src/useScrollToTop.d.ts.map +1 -1
- package/lib/typescript/src/useThenable.d.ts +1 -1
- package/lib/typescript/src/useThenable.d.ts.map +1 -1
- package/package.json +48 -23
- package/src/Link.native.tsx +69 -0
- package/src/Link.tsx +126 -37
- package/src/LinkingContext.tsx +1 -1
- package/src/NavigationContainer.tsx +141 -70
- package/src/__stubs__/createStackNavigator.tsx +20 -18
- package/src/checkSerializable.tsx +246 -0
- package/src/constants.native.tsx +10 -0
- package/src/constants.tsx +5 -0
- package/src/createMemoryHistory.tsx +32 -10
- package/src/createStandardNavigationFactories.tsx +217 -0
- package/src/createStaticNavigation.tsx +32 -31
- package/src/extractPathFromURL.tsx +5 -3
- package/src/getStateBreadcrumb.tsx +44 -0
- package/src/getStateFromHref.tsx +8 -3
- package/src/index.tsx +11 -2
- package/src/native/CornerInset.ios.tsx +87 -0
- package/src/native/CornerInset.tsx +44 -0
- package/src/native/MaterialSymbol.android.tsx +31 -26
- package/src/native/MaterialSymbol.tsx +16 -4
- package/src/native/MaterialSymbolData.tsx +200 -373
- package/src/native/MaterialSymbolViewNativeComponent.ts +8 -4
- package/src/native/NativeMaterialSymbolModule.ts +4 -1
- package/src/native/ReactNavigationCornerInsetViewNativeComponent.ts +31 -0
- package/src/native/SFSymbol.ios.tsx +80 -18
- package/src/native/SFSymbol.tsx +7 -2
- package/src/native/SFSymbolViewNativeComponent.ts +31 -15
- package/src/native/types.tsx +348 -54
- 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/theming/fonts.native.tsx +41 -0
- package/src/theming/fonts.tsx +15 -54
- package/src/types.tsx +67 -45
- package/src/useBackButton.native.tsx +2 -0
- package/src/useBackButton.tsx +2 -2
- package/src/useDeepStableValue.tsx +12 -0
- package/src/useDocumentTitle.tsx +2 -2
- package/src/useLinkBuilder.tsx +29 -25
- package/src/useLinkProps.tsx +371 -127
- package/src/useLinkTo.tsx +9 -8
- package/src/useLinking.native.tsx +70 -39
- package/src/useLinking.tsx +426 -87
- package/src/useLocale.tsx +1 -1
- package/src/useMemoArray.tsx +41 -0
- package/src/useRoutePath.tsx +1 -1
- package/src/useScrollToTop.tsx +21 -13
- package/src/useThenable.tsx +9 -7
- 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/MaterialSymbolTypefaceResult.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 -39
- 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 -81
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.java +0 -34
- 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 -176
- package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.h +0 -132
- 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/MaterialSymbols.hash +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/MaterialSymbols.hash +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/MaterialSymbolTypefaceResult.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/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ReactNavigationSFSymbolViewManagerDelegate.class.uniqueId0 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ReactNavigationSFSymbolViewManagerInterface.class.uniqueId1 +0 -0
- 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/MaterialSymbolTypefaceResult.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/assets/fonts/MaterialSymbolsOutlined.codepoints +0 -4102
- 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_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.codepoints +0 -4102
- 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 +0 -4102
- 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/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/__stubs__/window.js +0 -75
- package/lib/module/__stubs__/window.js.map +0 -1
- package/lib/module/theming/DefaultTheme.js +0 -16
- 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/__stubs__/window.d.ts +0 -18
- package/lib/typescript/src/__stubs__/window.d.ts.map +0 -1
- package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
- package/src/ServerContainer.tsx +0 -57
- package/src/__stubs__/window.tsx +0 -77
- /package/lib/module/{ServerContext.js → server/ServerContext.js} +0 -0
package/src/native/types.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ColorValue } from 'react-native';
|
|
2
2
|
|
|
3
|
+
import type { LocaleDirection, SFSymbolNames } from '../types';
|
|
3
4
|
import type { FONT_WEIGHTS } from './constants';
|
|
4
5
|
import type { MaterialSymbolName } from './MaterialSymbolData';
|
|
5
6
|
|
|
@@ -15,12 +16,13 @@ export type MaterialSymbolOptions = {
|
|
|
15
16
|
*
|
|
16
17
|
* ```json
|
|
17
18
|
* "react-navigation": {
|
|
18
|
-
* "material-
|
|
19
|
+
* "material-symbols": {
|
|
19
20
|
* "fonts": [
|
|
20
21
|
* {
|
|
21
22
|
* "variant": "rounded",
|
|
22
|
-
* "
|
|
23
|
-
*
|
|
23
|
+
* "weights": [300],
|
|
24
|
+
* "fills": [0, 1]
|
|
25
|
+
* }
|
|
24
26
|
* ]
|
|
25
27
|
* }
|
|
26
28
|
* }
|
|
@@ -30,7 +32,7 @@ export type MaterialSymbolOptions = {
|
|
|
30
32
|
*
|
|
31
33
|
* @default 'outlined'
|
|
32
34
|
*/
|
|
33
|
-
variant?: 'outlined' | 'rounded' | 'sharp';
|
|
35
|
+
variant?: 'outlined' | 'rounded' | 'sharp' | undefined;
|
|
34
36
|
/**
|
|
35
37
|
* The weight of the symbol.
|
|
36
38
|
*
|
|
@@ -38,12 +40,13 @@ export type MaterialSymbolOptions = {
|
|
|
38
40
|
*
|
|
39
41
|
* ```json
|
|
40
42
|
* "react-navigation": {
|
|
41
|
-
* "material-
|
|
43
|
+
* "material-symbols": {
|
|
42
44
|
* "fonts": [
|
|
43
45
|
* {
|
|
44
46
|
* "variant": "rounded",
|
|
45
|
-
* "
|
|
46
|
-
*
|
|
47
|
+
* "weights": [300],
|
|
48
|
+
* "fills": [0, 1]
|
|
49
|
+
* }
|
|
47
50
|
* ]
|
|
48
51
|
* }
|
|
49
52
|
* }
|
|
@@ -69,102 +72,349 @@ export type MaterialSymbolOptions = {
|
|
|
69
72
|
| 400
|
|
70
73
|
| 500
|
|
71
74
|
| 600
|
|
72
|
-
| 700
|
|
75
|
+
| 700
|
|
76
|
+
| undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Whether to use the filled version of the symbol.
|
|
79
|
+
*
|
|
80
|
+
* Can be customized using `react-navigation` key in `package.json`:
|
|
81
|
+
*
|
|
82
|
+
* ```json
|
|
83
|
+
* "react-navigation": {
|
|
84
|
+
* "material-symbols": {
|
|
85
|
+
* "fonts": [
|
|
86
|
+
* {
|
|
87
|
+
* "variant": "rounded",
|
|
88
|
+
* "weights": [300],
|
|
89
|
+
* "fills": [0, 1]
|
|
90
|
+
* }
|
|
91
|
+
* ]
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* Here:
|
|
97
|
+
* - `0`: Unfilled version
|
|
98
|
+
* - `1`: Filled version
|
|
99
|
+
*
|
|
100
|
+
* Automatically set if a single fill is available.
|
|
101
|
+
*
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
fill?: boolean | undefined;
|
|
73
105
|
/**
|
|
74
106
|
* The size of the symbol.
|
|
75
107
|
*
|
|
76
108
|
* @default 24
|
|
77
109
|
*/
|
|
78
|
-
size?: number;
|
|
110
|
+
size?: number | undefined;
|
|
79
111
|
/**
|
|
80
112
|
* The color of the symbol.
|
|
81
113
|
*
|
|
82
114
|
* @default 'black'
|
|
83
115
|
*/
|
|
84
|
-
color?: ColorValue;
|
|
116
|
+
color?: ColorValue | undefined;
|
|
85
117
|
};
|
|
86
118
|
|
|
87
|
-
export type
|
|
119
|
+
export type MaterialSymbolImageSourceOptions = MaterialSymbolOptions & {
|
|
120
|
+
/**
|
|
121
|
+
* The layout direction to render the symbol for.
|
|
122
|
+
*
|
|
123
|
+
* Symbols that support auto-mirroring are flipped horizontally in RTL.
|
|
124
|
+
*
|
|
125
|
+
* @default I18nManager.getConstants().isRTL ? 'rtl' : 'ltr'
|
|
126
|
+
*/
|
|
127
|
+
direction?: LocaleDirection | undefined;
|
|
128
|
+
};
|
|
88
129
|
|
|
89
|
-
|
|
130
|
+
type SFSymbolScale = 'small' | 'medium' | 'large';
|
|
131
|
+
|
|
132
|
+
type SFSymbolRenderingMode =
|
|
90
133
|
| 'monochrome'
|
|
91
134
|
| 'hierarchical'
|
|
92
135
|
| 'palette'
|
|
93
136
|
| 'multicolor';
|
|
94
137
|
|
|
95
|
-
export type
|
|
138
|
+
export type SFSymbolEffectName =
|
|
96
139
|
| 'bounce'
|
|
97
140
|
| 'pulse'
|
|
98
141
|
| 'appear'
|
|
99
142
|
| 'disappear'
|
|
100
143
|
| 'variableColor'
|
|
144
|
+
| 'scale'
|
|
101
145
|
| 'breathe'
|
|
102
146
|
| 'wiggle'
|
|
103
|
-
| 'rotate'
|
|
147
|
+
| 'rotate'
|
|
148
|
+
| 'drawOn'
|
|
149
|
+
| 'drawOff';
|
|
150
|
+
|
|
151
|
+
export type SFSymbolContentTransitionEffect = 'automatic' | 'replace';
|
|
152
|
+
|
|
153
|
+
export type SFSymbolEffectRepeat =
|
|
154
|
+
| 'continuous'
|
|
155
|
+
| 'nonRepeating'
|
|
156
|
+
| {
|
|
157
|
+
/**
|
|
158
|
+
* Number of times to repeat the effect.
|
|
159
|
+
*/
|
|
160
|
+
count?: number | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Delay in seconds between repeated effect cycles.
|
|
163
|
+
*/
|
|
164
|
+
delay?: number | undefined;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type SFSymbolEffectScope = 'byLayer' | 'wholeSymbol' | 'individually';
|
|
168
|
+
|
|
169
|
+
export type SFSymbolEffectDirection =
|
|
170
|
+
| 'up'
|
|
171
|
+
| 'down'
|
|
172
|
+
| 'left'
|
|
173
|
+
| 'right'
|
|
174
|
+
| 'forward'
|
|
175
|
+
| 'backward'
|
|
176
|
+
| 'clockwise'
|
|
177
|
+
| 'counterClockwise';
|
|
178
|
+
|
|
179
|
+
export type SFSymbolBreatheVariant = 'plain' | 'pulse';
|
|
180
|
+
|
|
181
|
+
export type SFSymbolDrawDirection = 'reversed' | 'nonReversed';
|
|
104
182
|
|
|
105
|
-
export type
|
|
183
|
+
export type SFSymbolInactiveLayers = 'hide' | 'dim';
|
|
184
|
+
|
|
185
|
+
type SFSymbolEffectBaseConfig = {
|
|
186
|
+
/**
|
|
187
|
+
* Speed multiplier for the effect.
|
|
188
|
+
*
|
|
189
|
+
* @default 1
|
|
190
|
+
*/
|
|
191
|
+
speed?: number | undefined;
|
|
106
192
|
/**
|
|
107
|
-
*
|
|
193
|
+
* Repeat behavior for the effect. Use an object for periodic repeats.
|
|
108
194
|
*/
|
|
109
|
-
|
|
195
|
+
repeat?: SFSymbolEffectRepeat | undefined;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
type SFSymbolScopedEffectConfig = SFSymbolEffectBaseConfig & {
|
|
110
199
|
/**
|
|
111
|
-
* Whether the
|
|
200
|
+
* Whether to animate the whole symbol at once or by layer.
|
|
112
201
|
*
|
|
113
|
-
* @default
|
|
202
|
+
* @default 'byLayer'
|
|
203
|
+
*/
|
|
204
|
+
scope?: Extract<SFSymbolEffectScope, 'byLayer' | 'wholeSymbol'> | undefined;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
type SFSymbolDirectionalEffectName = 'bounce' | 'appear' | 'disappear';
|
|
208
|
+
|
|
209
|
+
type SFSymbolDirectionalEffectConfig = SFSymbolScopedEffectConfig & {
|
|
210
|
+
/**
|
|
211
|
+
* The symbol effect to apply.
|
|
212
|
+
*/
|
|
213
|
+
type: SFSymbolDirectionalEffectName;
|
|
214
|
+
/**
|
|
215
|
+
* The direction the symbol moves during the effect.
|
|
216
|
+
*/
|
|
217
|
+
direction?: 'up' | 'down' | undefined;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
type SFSymbolScaleEffectConfig = SFSymbolScopedEffectConfig & {
|
|
221
|
+
/**
|
|
222
|
+
* The symbol effect to apply.
|
|
223
|
+
*/
|
|
224
|
+
type: 'scale';
|
|
225
|
+
/**
|
|
226
|
+
* Whether the symbol scales up or down.
|
|
227
|
+
*/
|
|
228
|
+
direction?: 'up' | 'down' | undefined;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type SFSymbolBasicScopedEffectConfig = SFSymbolScopedEffectConfig & {
|
|
232
|
+
/**
|
|
233
|
+
* The symbol effect to apply.
|
|
234
|
+
*/
|
|
235
|
+
type: 'pulse';
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
type SFSymbolBreatheEffectConfig = SFSymbolScopedEffectConfig & {
|
|
239
|
+
/**
|
|
240
|
+
* The symbol effect to apply.
|
|
241
|
+
*/
|
|
242
|
+
type: 'breathe';
|
|
243
|
+
/**
|
|
244
|
+
* The breathe effect variant.
|
|
245
|
+
*/
|
|
246
|
+
variant?: SFSymbolBreatheVariant | undefined;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
type SFSymbolWiggleEffectConfig = SFSymbolScopedEffectConfig & {
|
|
250
|
+
/**
|
|
251
|
+
* The symbol effect to apply.
|
|
252
|
+
*/
|
|
253
|
+
type: 'wiggle';
|
|
254
|
+
/**
|
|
255
|
+
* The direction the symbol wiggles toward.
|
|
256
|
+
*/
|
|
257
|
+
direction?: SFSymbolEffectDirection | undefined;
|
|
258
|
+
/**
|
|
259
|
+
* A custom wiggle angle in degrees. Overrides `direction` when set.
|
|
260
|
+
*/
|
|
261
|
+
angle?: number | undefined;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
type SFSymbolRotateEffectConfig = SFSymbolScopedEffectConfig & {
|
|
265
|
+
/**
|
|
266
|
+
* The symbol effect to apply.
|
|
267
|
+
*/
|
|
268
|
+
type: 'rotate';
|
|
269
|
+
/**
|
|
270
|
+
* Which way the symbol rotates.
|
|
114
271
|
*/
|
|
115
|
-
|
|
272
|
+
direction?: 'clockwise' | 'counterClockwise' | undefined;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
type SFSymbolDrawEffectConfig = SFSymbolEffectBaseConfig & {
|
|
116
276
|
/**
|
|
117
|
-
*
|
|
118
|
-
* Ignored if `repeating` is `true`.
|
|
277
|
+
* The symbol effect to apply.
|
|
119
278
|
*/
|
|
120
|
-
|
|
279
|
+
type: 'drawOn';
|
|
121
280
|
/**
|
|
122
|
-
*
|
|
281
|
+
* Whether to animate the whole symbol at once, by layer, or individually.
|
|
123
282
|
*
|
|
124
|
-
* @default
|
|
283
|
+
* @default 'byLayer'
|
|
284
|
+
*/
|
|
285
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
type SFSymbolDrawOffEffectConfig = SFSymbolEffectBaseConfig & {
|
|
289
|
+
/**
|
|
290
|
+
* The symbol effect to apply.
|
|
125
291
|
*/
|
|
126
|
-
|
|
292
|
+
type: 'drawOff';
|
|
127
293
|
/**
|
|
128
|
-
* Whether to animate the whole symbol at once
|
|
294
|
+
* Whether to animate the whole symbol at once, by layer, or individually.
|
|
129
295
|
*
|
|
130
|
-
* @default
|
|
296
|
+
* @default 'byLayer'
|
|
131
297
|
*/
|
|
132
|
-
|
|
298
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
133
299
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
300
|
+
* Whether the draw-off animation follows the symbol's authored draw
|
|
301
|
+
* order or plays it in reverse.
|
|
302
|
+
* - `nonReversed`: follows the symbol's draw order.
|
|
303
|
+
* - `reversed`: plays it in reverse.
|
|
136
304
|
*/
|
|
137
|
-
|
|
305
|
+
drawDirection?: SFSymbolDrawDirection | undefined;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
type SFSymbolVariableColorEffectConfig = SFSymbolEffectBaseConfig & {
|
|
309
|
+
/**
|
|
310
|
+
* The symbol effect to apply.
|
|
311
|
+
*/
|
|
312
|
+
type: 'variableColor';
|
|
138
313
|
/**
|
|
139
314
|
* Whether the variable color effect reverses with each cycle.
|
|
140
|
-
* Only applicable to `variableColor`.
|
|
141
315
|
*
|
|
142
316
|
* @default false
|
|
143
317
|
*/
|
|
144
|
-
reversing?: boolean;
|
|
318
|
+
reversing?: boolean | undefined;
|
|
145
319
|
/**
|
|
146
|
-
* Whether
|
|
147
|
-
*
|
|
320
|
+
* Whether layers light up cumulatively and stay active through the
|
|
321
|
+
* cycle, rather than one at a time.
|
|
148
322
|
*
|
|
149
323
|
* @default false
|
|
150
324
|
*/
|
|
151
|
-
cumulative?: boolean;
|
|
325
|
+
cumulative?: boolean | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* How layers that aren't currently active are displayed.
|
|
328
|
+
* - `hide`: inactive layers are invisible.
|
|
329
|
+
* - `dim`: inactive layers stay visible but faded.
|
|
330
|
+
*
|
|
331
|
+
* Defaults to the symbol's standard appearance when unset.
|
|
332
|
+
*/
|
|
333
|
+
inactiveLayers?: SFSymbolInactiveLayers | undefined;
|
|
152
334
|
};
|
|
153
335
|
|
|
154
|
-
|
|
155
|
-
|
|
|
156
|
-
|
|
|
336
|
+
type SFSymbolEffectConfig =
|
|
337
|
+
| SFSymbolDirectionalEffectConfig
|
|
338
|
+
| SFSymbolScaleEffectConfig
|
|
339
|
+
| SFSymbolBasicScopedEffectConfig
|
|
340
|
+
| SFSymbolBreatheEffectConfig
|
|
341
|
+
| SFSymbolWiggleEffectConfig
|
|
342
|
+
| SFSymbolRotateEffectConfig
|
|
343
|
+
| SFSymbolDrawEffectConfig
|
|
344
|
+
| SFSymbolDrawOffEffectConfig
|
|
345
|
+
| SFSymbolVariableColorEffectConfig;
|
|
346
|
+
|
|
347
|
+
export type SFSymbolContentTransitionScope = 'byLayer' | 'wholeSymbol';
|
|
348
|
+
|
|
349
|
+
export type SFSymbolReplaceTransitionVariant = 'downUp' | 'upUp' | 'offUp';
|
|
350
|
+
|
|
351
|
+
type SFSymbolContentTransitionBaseConfig = {
|
|
352
|
+
/**
|
|
353
|
+
* Speed multiplier for the transition.
|
|
354
|
+
*
|
|
355
|
+
* @default 1
|
|
356
|
+
*/
|
|
357
|
+
speed?: number | undefined;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
type SFSymbolContentTransitionConfig =
|
|
361
|
+
| (SFSymbolContentTransitionBaseConfig & {
|
|
362
|
+
/**
|
|
363
|
+
* The transition effect to apply when the symbol `name` or `variableValue` changes.
|
|
364
|
+
*/
|
|
365
|
+
type: 'automatic';
|
|
366
|
+
})
|
|
367
|
+
| (SFSymbolContentTransitionBaseConfig & {
|
|
368
|
+
/**
|
|
369
|
+
* The transition effect to apply when the symbol `name` or `variableValue` changes.
|
|
370
|
+
*/
|
|
371
|
+
type: 'replace';
|
|
372
|
+
/**
|
|
373
|
+
* The direction the outgoing and incoming symbols move.
|
|
374
|
+
* - `downUp`: the old symbol slides down, the new one comes up.
|
|
375
|
+
* - `upUp`: both the old and new symbols move up.
|
|
376
|
+
* - `offUp`: the old symbol fades in place, the new one comes up.
|
|
377
|
+
*/
|
|
378
|
+
variant?: SFSymbolReplaceTransitionVariant | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* Whether to transition the whole symbol at once or by layer.
|
|
381
|
+
*
|
|
382
|
+
* @default 'byLayer'
|
|
383
|
+
*/
|
|
384
|
+
scope?: SFSymbolContentTransitionScope | undefined;
|
|
385
|
+
/**
|
|
386
|
+
* Whether to prefer Magic Replace when possible.
|
|
387
|
+
*
|
|
388
|
+
* Falls back to regular Replace on iOS 17.
|
|
389
|
+
*
|
|
390
|
+
* @default false
|
|
391
|
+
*/
|
|
392
|
+
magic?: boolean | undefined;
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
type SFSymbolEffect = SFSymbolEffectName | SFSymbolEffectConfig;
|
|
396
|
+
|
|
397
|
+
type SFSymbolContentTransition =
|
|
398
|
+
| SFSymbolContentTransitionEffect
|
|
399
|
+
| SFSymbolContentTransitionConfig;
|
|
400
|
+
|
|
401
|
+
type SFSymbolVariableValueMode = 'automatic' | 'color' | 'draw';
|
|
402
|
+
|
|
403
|
+
type SFSymbolColorRenderingMode = 'automatic' | 'flat' | 'gradient';
|
|
157
404
|
|
|
158
405
|
export type SFSymbolOptions = {
|
|
159
406
|
/**
|
|
160
407
|
* The name of the SF Symbol to display.
|
|
161
408
|
*/
|
|
162
|
-
name:
|
|
409
|
+
name:
|
|
410
|
+
| import('sf-symbols-typescript').SFSymbol
|
|
411
|
+
| Extract<keyof SFSymbolNames, string>;
|
|
163
412
|
/**
|
|
164
413
|
* The size of the symbol.
|
|
414
|
+
*
|
|
165
415
|
* @default 24
|
|
166
416
|
*/
|
|
167
|
-
size?: number;
|
|
417
|
+
size?: number | undefined;
|
|
168
418
|
/**
|
|
169
419
|
* The color of the symbol.
|
|
170
420
|
* Used as the tint color in monochrome mode, and as the fallback for
|
|
@@ -172,7 +422,7 @@ export type SFSymbolOptions = {
|
|
|
172
422
|
*
|
|
173
423
|
* @default 'black'
|
|
174
424
|
*/
|
|
175
|
-
color?: ColorValue;
|
|
425
|
+
color?: ColorValue | undefined;
|
|
176
426
|
/**
|
|
177
427
|
* The weight of the symbol.
|
|
178
428
|
*
|
|
@@ -180,13 +430,36 @@ export type SFSymbolOptions = {
|
|
|
180
430
|
*/
|
|
181
431
|
weight?:
|
|
182
432
|
| keyof typeof FONT_WEIGHTS
|
|
183
|
-
| (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS]
|
|
433
|
+
| (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS]
|
|
434
|
+
| undefined;
|
|
184
435
|
/**
|
|
185
|
-
* The scale
|
|
436
|
+
* The symbol's scale variant (`small`, `medium`, or `large`).
|
|
186
437
|
*
|
|
187
438
|
* @default 'medium'
|
|
188
439
|
*/
|
|
189
|
-
scale?: SFSymbolScale;
|
|
440
|
+
scale?: SFSymbolScale | undefined;
|
|
441
|
+
/**
|
|
442
|
+
* The value used to customize variable symbols.
|
|
443
|
+
* Must be between `0` and `1`.
|
|
444
|
+
*
|
|
445
|
+
* Variable symbols (e.g. `wifi`, `speaker.wave.3`) have layers that
|
|
446
|
+
* activate progressively to represent a magnitude. This controls how
|
|
447
|
+
* many are shown: `0` renders the fewest, `1` the full symbol.
|
|
448
|
+
*
|
|
449
|
+
* Has no effect on symbols that aren't variable.
|
|
450
|
+
*/
|
|
451
|
+
variableValue?: number | undefined;
|
|
452
|
+
/**
|
|
453
|
+
* How the partial state from `variableValue` is rendered.
|
|
454
|
+
* - `automatic`: the system chooses based on the symbol.
|
|
455
|
+
* - `color`: fades inactive layers using opacity.
|
|
456
|
+
* - `draw`: partially draws layers instead of fading them.
|
|
457
|
+
*
|
|
458
|
+
* Requires iOS 26+. Ignored on earlier versions.
|
|
459
|
+
*
|
|
460
|
+
* @default 'automatic'
|
|
461
|
+
*/
|
|
462
|
+
variableValueMode?: SFSymbolVariableValueMode | undefined;
|
|
190
463
|
/**
|
|
191
464
|
* The rendering mode of the symbol.
|
|
192
465
|
* - `monochrome`: Single color tint (default).
|
|
@@ -196,7 +469,7 @@ export type SFSymbolOptions = {
|
|
|
196
469
|
*
|
|
197
470
|
* @default 'monochrome'
|
|
198
471
|
*/
|
|
199
|
-
|
|
472
|
+
renderingMode?: SFSymbolRenderingMode | undefined;
|
|
200
473
|
/**
|
|
201
474
|
* The colors for non-monochrome rendering modes.
|
|
202
475
|
* - `hierarchical`: uses `primary` as the base color.
|
|
@@ -205,14 +478,35 @@ export type SFSymbolOptions = {
|
|
|
205
478
|
*
|
|
206
479
|
* Falls back to `color` for `primary` if not specified.
|
|
207
480
|
*/
|
|
208
|
-
colors?:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
481
|
+
colors?:
|
|
482
|
+
| {
|
|
483
|
+
primary?: ColorValue | undefined;
|
|
484
|
+
secondary?: ColorValue | undefined;
|
|
485
|
+
tertiary?: ColorValue | undefined;
|
|
486
|
+
}
|
|
487
|
+
| undefined;
|
|
213
488
|
/**
|
|
214
|
-
*
|
|
489
|
+
* How color is applied across the symbol's layers.
|
|
490
|
+
* - `automatic`: the system chooses based on the symbol.
|
|
491
|
+
* - `flat`: a solid color per layer.
|
|
492
|
+
* - `gradient`: a gradient derived from each layer's color.
|
|
493
|
+
*
|
|
494
|
+
* Requires iOS 26+. Ignored on earlier versions.
|
|
495
|
+
*
|
|
496
|
+
* @default 'automatic'
|
|
497
|
+
*/
|
|
498
|
+
colorRenderingMode?: SFSymbolColorRenderingMode | undefined;
|
|
499
|
+
/**
|
|
500
|
+
* The effect to apply to the symbol.
|
|
501
|
+
*
|
|
502
|
+
* Requires iOS 17+. Effects introduced in later iOS versions are ignored
|
|
503
|
+
* on earlier versions.
|
|
504
|
+
*/
|
|
505
|
+
effect?: SFSymbolEffect | undefined;
|
|
506
|
+
/**
|
|
507
|
+
* The content transition to apply when the symbol `name` or `variableValue` changes.
|
|
508
|
+
*
|
|
215
509
|
* Requires iOS 17+. Ignored on earlier versions.
|
|
216
510
|
*/
|
|
217
|
-
|
|
511
|
+
contentTransition?: SFSymbolContentTransition | undefined;
|
|
218
512
|
};
|
|
@@ -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,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Theme } from '@react-navigation/core';
|
|
2
|
+
|
|
3
|
+
import { fonts } from './fonts';
|
|
4
|
+
|
|
5
|
+
export const MaterialLightFallbackTheme = {
|
|
6
|
+
dark: false,
|
|
7
|
+
colors: {
|
|
8
|
+
primary: '#6750a4',
|
|
9
|
+
background: '#f3edf7',
|
|
10
|
+
card: '#fef7ff',
|
|
11
|
+
text: '#1d1b20',
|
|
12
|
+
border: '#cac4d0',
|
|
13
|
+
notification: '#ba1a1a',
|
|
14
|
+
},
|
|
15
|
+
fonts,
|
|
16
|
+
} as const satisfies Theme;
|
|
17
|
+
|
|
18
|
+
export const MaterialDarkFallbackTheme = {
|
|
19
|
+
dark: true,
|
|
20
|
+
colors: {
|
|
21
|
+
primary: '#d0bcff',
|
|
22
|
+
background: '#211f26',
|
|
23
|
+
card: '#141218',
|
|
24
|
+
text: '#e6e0e9',
|
|
25
|
+
border: '#49454f',
|
|
26
|
+
notification: '#ffb4ab',
|
|
27
|
+
},
|
|
28
|
+
fonts,
|
|
29
|
+
} as const satisfies Theme;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Theme } from '@react-navigation/core';
|
|
2
|
+
import { Platform, PlatformColor } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { fonts } from './fonts';
|
|
5
|
+
import {
|
|
6
|
+
MaterialDarkFallbackTheme,
|
|
7
|
+
MaterialLightFallbackTheme,
|
|
8
|
+
} from './MaterialFallbackTheme';
|
|
9
|
+
|
|
10
|
+
const isDynamicThemeSupported =
|
|
11
|
+
Platform.OS === 'android' && Platform.Version >= 34;
|
|
12
|
+
|
|
13
|
+
const MaterialLightDynamicTheme = {
|
|
14
|
+
dark: false,
|
|
15
|
+
colors: {
|
|
16
|
+
primary: PlatformColor('@android:color/system_primary_light'),
|
|
17
|
+
background: PlatformColor('@android:color/system_surface_container_light'),
|
|
18
|
+
card: PlatformColor('@android:color/system_background_light'),
|
|
19
|
+
text: PlatformColor('@android:color/system_on_surface_light'),
|
|
20
|
+
border: PlatformColor('@android:color/system_outline_variant_light'),
|
|
21
|
+
notification: PlatformColor('@android:color/system_error_light'),
|
|
22
|
+
},
|
|
23
|
+
fonts,
|
|
24
|
+
} as const satisfies Theme;
|
|
25
|
+
|
|
26
|
+
const MaterialDarkDynamicTheme = {
|
|
27
|
+
dark: true,
|
|
28
|
+
colors: {
|
|
29
|
+
primary: PlatformColor('@android:color/system_primary_dark'),
|
|
30
|
+
background: PlatformColor('@android:color/system_surface_container_dark'),
|
|
31
|
+
card: PlatformColor('@android:color/system_background_dark'),
|
|
32
|
+
text: PlatformColor('@android:color/system_on_surface_dark'),
|
|
33
|
+
border: PlatformColor('@android:color/system_outline_variant_dark'),
|
|
34
|
+
notification: PlatformColor('@android:color/system_error_dark'),
|
|
35
|
+
},
|
|
36
|
+
fonts,
|
|
37
|
+
} as const satisfies Theme;
|
|
38
|
+
|
|
39
|
+
export const MaterialLightTheme = isDynamicThemeSupported
|
|
40
|
+
? MaterialLightDynamicTheme
|
|
41
|
+
: MaterialLightFallbackTheme;
|
|
42
|
+
|
|
43
|
+
export const MaterialDarkTheme = isDynamicThemeSupported
|
|
44
|
+
? MaterialDarkDynamicTheme
|
|
45
|
+
: MaterialDarkFallbackTheme;
|