@react-navigation/native 8.0.0-alpha.4 → 8.0.0-alpha.41
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 +4 -6
- package/android/src/main/java/org/reactnavigation/MaterialSymbolModule.kt +20 -9
- package/android/src/main/java/org/reactnavigation/MaterialSymbolTypeface.kt +61 -18
- package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +39 -14
- 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.codepoints +190 -24
- 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 +190 -24
- 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 +190 -24
- 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 +22 -9
- package/ios/ReactNavigationSFSymbolView.swift +355 -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 +10 -4
- 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 +23 -7
- 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/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 +7 -16
- package/lib/module/native/MaterialSymbol.android.js.map +1 -1
- package/lib/module/native/MaterialSymbol.js.map +1 -1
- package/lib/module/native/MaterialSymbolViewNativeComponent.ts +7 -4
- 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 +8 -15
- package/lib/module/useLinkBuilder.js.map +1 -1
- package/lib/module/useLinkProps.js +150 -68
- 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 +203 -32
- 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 -8
- 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 +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 +19 -8
- 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 +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/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 +9 -4
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbol.d.ts +8 -3
- 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 +3 -3
- package/lib/typescript/src/native/MaterialSymbolViewNativeComponent.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 +241 -45
- 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 +27 -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 +56 -68
- 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/useLinking.d.ts +7 -45
- 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 +0 -2
- 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/NavigationContainer.tsx +134 -64
- package/src/__stubs__/createStackNavigator.tsx +19 -17
- package/src/checkSerializable.tsx +246 -0
- package/src/constants.native.tsx +10 -0
- package/src/constants.tsx +5 -0
- package/src/createMemoryHistory.tsx +28 -7
- package/src/createStandardNavigationFactories.tsx +219 -0
- package/src/createStaticNavigation.tsx +13 -17
- 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 +11 -22
- package/src/native/MaterialSymbol.tsx +7 -2
- package/src/native/MaterialSymbolData.tsx +166 -0
- package/src/native/MaterialSymbolViewNativeComponent.ts +7 -4
- 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 +297 -47
- 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 +52 -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 +16 -23
- package/src/useLinkProps.tsx +379 -126
- package/src/useLinkTo.tsx +1 -1
- package/src/useLinking.native.tsx +64 -35
- package/src/useLinking.tsx +323 -47
- package/src/useLocale.tsx +1 -1
- package/src/useMemoArray.tsx +41 -0
- package/src/useRoutePath.tsx +1 -1
- package/src/useScrollToTop.tsx +3 -9
- 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 -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 -118
- 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/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/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/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
|
@@ -6,23 +6,35 @@ import UIKit
|
|
|
6
6
|
public var color: UIColor = .black
|
|
7
7
|
public var weight: Int = 0
|
|
8
8
|
public var scale: String = "medium"
|
|
9
|
-
public var
|
|
9
|
+
public var renderingMode: String = "monochrome"
|
|
10
10
|
public var colorPrimary: UIColor?
|
|
11
11
|
public var colorSecondary: UIColor?
|
|
12
12
|
public var colorTertiary: UIColor?
|
|
13
|
-
public var
|
|
14
|
-
public var
|
|
15
|
-
public var
|
|
16
|
-
public var
|
|
17
|
-
public var
|
|
18
|
-
public var
|
|
19
|
-
public var
|
|
20
|
-
public var
|
|
13
|
+
public var effect: String = ""
|
|
14
|
+
public var variableValue: CGFloat = -1
|
|
15
|
+
public var variableValueMode: String = "automatic"
|
|
16
|
+
public var colorRenderingMode: String = "automatic"
|
|
17
|
+
public var effectRepeat: String = ""
|
|
18
|
+
public var effectRepeatCount: Int = 0
|
|
19
|
+
public var effectRepeatDelay: CGFloat = 0
|
|
20
|
+
public var effectSpeed: CGFloat = 1
|
|
21
|
+
public var effectScope: String = ""
|
|
22
|
+
public var effectDirection: String = ""
|
|
23
|
+
public var effectVariant: String = ""
|
|
24
|
+
public var effectAngle: CGFloat = -1
|
|
25
|
+
public var effectReversing: Bool = false
|
|
26
|
+
public var effectCumulative: Bool = false
|
|
27
|
+
public var effectInactiveLayers: String = ""
|
|
28
|
+
public var effectDrawDirection: String = ""
|
|
29
|
+
public var contentTransition: String = ""
|
|
30
|
+
public var contentTransitionSpeed: CGFloat = 1
|
|
31
|
+
public var contentTransitionVariant: String = ""
|
|
32
|
+
public var contentTransitionScope: String = ""
|
|
33
|
+
public var contentTransitionMagic: Bool = false
|
|
21
34
|
}
|
|
22
35
|
|
|
23
36
|
@objc public class ReactNavigationSFSymbolViewImpl: UIView {
|
|
24
37
|
private var imageView: UIImageView
|
|
25
|
-
private var currentAnimation: String = ""
|
|
26
38
|
|
|
27
39
|
override init(frame: CGRect) {
|
|
28
40
|
imageView = UIImageView()
|
|
@@ -53,30 +65,55 @@ import UIKit
|
|
|
53
65
|
props.size != oldProps.size ||
|
|
54
66
|
props.weight != oldProps.weight ||
|
|
55
67
|
props.scale != oldProps.scale ||
|
|
56
|
-
props.
|
|
68
|
+
props.variableValue != oldProps.variableValue ||
|
|
69
|
+
props.variableValueMode != oldProps.variableValueMode ||
|
|
70
|
+
props.colorRenderingMode != oldProps.colorRenderingMode ||
|
|
71
|
+
props.renderingMode != oldProps.renderingMode ||
|
|
57
72
|
props.colorPrimary != oldProps.colorPrimary ||
|
|
58
73
|
props.colorSecondary != oldProps.colorSecondary ||
|
|
59
74
|
props.colorTertiary != oldProps.colorTertiary
|
|
60
75
|
|
|
61
76
|
if needsImageUpdate {
|
|
62
77
|
if let name = props.name {
|
|
78
|
+
// Content transitions animate between symbol contents, so only run them
|
|
79
|
+
// when the symbol or its variable value changes and a previous image
|
|
80
|
+
// exists. Configuration changes and the first appearance set the image
|
|
81
|
+
// directly to match native behavior.
|
|
82
|
+
let shouldAnimate =
|
|
83
|
+
imageView.image != nil &&
|
|
84
|
+
(props.name != oldProps.name || props.variableValue != oldProps.variableValue)
|
|
85
|
+
|
|
63
86
|
let symbolWeight = Self.symbolWeight(from: props.weight)
|
|
64
87
|
let symbolScale = Self.symbolScale(from: props.scale)
|
|
65
88
|
|
|
66
89
|
var configuration = UIImage.SymbolConfiguration(pointSize: props.size, weight: symbolWeight, scale: symbolScale)
|
|
67
90
|
|
|
91
|
+
if #available(iOS 26.0, *) {
|
|
92
|
+
configuration = configuration.applying(
|
|
93
|
+
UIImage.SymbolConfiguration(
|
|
94
|
+
variableValueMode: Self.symbolVariableValueMode(from: props.variableValueMode)
|
|
95
|
+
)
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
configuration = configuration.applying(
|
|
99
|
+
UIImage.SymbolConfiguration(
|
|
100
|
+
colorRenderingMode: Self.symbolColorRenderingMode(from: props.colorRenderingMode)
|
|
101
|
+
)
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
|
|
68
105
|
let primaryColor = props.colorPrimary ?? props.color
|
|
69
106
|
|
|
70
|
-
switch props.
|
|
107
|
+
switch props.renderingMode {
|
|
71
108
|
case "hierarchical":
|
|
72
109
|
configuration = configuration.applying(
|
|
73
110
|
UIImage.SymbolConfiguration(hierarchicalColor: primaryColor)
|
|
74
111
|
)
|
|
75
112
|
|
|
76
|
-
let image =
|
|
113
|
+
let image = Self.symbolImage(name: name, configuration: configuration, props: props)
|
|
77
114
|
|
|
78
|
-
imageView.image = image
|
|
79
115
|
imageView.tintColor = nil
|
|
116
|
+
setImage(image, props: props, animated: shouldAnimate)
|
|
80
117
|
|
|
81
118
|
case "palette":
|
|
82
119
|
var paletteColors: [UIColor] = []
|
|
@@ -95,82 +132,148 @@ import UIKit
|
|
|
95
132
|
UIImage.SymbolConfiguration(paletteColors: paletteColors)
|
|
96
133
|
)
|
|
97
134
|
|
|
98
|
-
let image =
|
|
135
|
+
let image = Self.symbolImage(name: name, configuration: configuration, props: props)
|
|
99
136
|
|
|
100
|
-
imageView.image = image
|
|
101
137
|
imageView.tintColor = nil
|
|
138
|
+
setImage(image, props: props, animated: shouldAnimate)
|
|
102
139
|
|
|
103
140
|
case "multicolor":
|
|
104
141
|
configuration = configuration.applying(
|
|
105
142
|
UIImage.SymbolConfiguration.preferringMulticolor()
|
|
106
143
|
)
|
|
107
144
|
|
|
108
|
-
let image =
|
|
145
|
+
let image = Self.symbolImage(name: name, configuration: configuration, props: props)
|
|
109
146
|
|
|
110
|
-
imageView.image = image
|
|
111
147
|
imageView.tintColor = nil
|
|
148
|
+
setImage(image, props: props, animated: shouldAnimate)
|
|
112
149
|
|
|
113
150
|
default:
|
|
114
151
|
// monochrome
|
|
115
|
-
let image =
|
|
152
|
+
let image = Self.symbolImage(name: name, configuration: configuration, props: props)
|
|
116
153
|
|
|
117
|
-
imageView.image = image?.withRenderingMode(.alwaysTemplate)
|
|
118
154
|
imageView.tintColor = primaryColor
|
|
155
|
+
setImage(image?.withRenderingMode(.alwaysTemplate), props: props, animated: shouldAnimate)
|
|
119
156
|
}
|
|
120
157
|
}
|
|
121
158
|
}
|
|
122
159
|
|
|
123
|
-
if !needsImageUpdate && props.color != oldProps.color && props.
|
|
160
|
+
if !needsImageUpdate && props.color != oldProps.color && props.renderingMode == "monochrome" {
|
|
124
161
|
imageView.tintColor = props.colorPrimary ?? props.color
|
|
125
162
|
}
|
|
126
163
|
|
|
127
|
-
let
|
|
128
|
-
props.
|
|
129
|
-
props.
|
|
130
|
-
props.
|
|
131
|
-
props.
|
|
132
|
-
props.
|
|
133
|
-
props.
|
|
134
|
-
props.
|
|
135
|
-
props.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
164
|
+
let effectChanged =
|
|
165
|
+
props.effect != oldProps.effect ||
|
|
166
|
+
props.effectRepeat != oldProps.effectRepeat ||
|
|
167
|
+
props.effectRepeatCount != oldProps.effectRepeatCount ||
|
|
168
|
+
props.effectRepeatDelay != oldProps.effectRepeatDelay ||
|
|
169
|
+
props.effectSpeed != oldProps.effectSpeed ||
|
|
170
|
+
props.effectScope != oldProps.effectScope ||
|
|
171
|
+
props.effectDirection != oldProps.effectDirection ||
|
|
172
|
+
props.effectVariant != oldProps.effectVariant ||
|
|
173
|
+
props.effectAngle != oldProps.effectAngle ||
|
|
174
|
+
props.effectReversing != oldProps.effectReversing ||
|
|
175
|
+
props.effectCumulative != oldProps.effectCumulative ||
|
|
176
|
+
props.effectInactiveLayers != oldProps.effectInactiveLayers ||
|
|
177
|
+
props.effectDrawDirection != oldProps.effectDrawDirection
|
|
178
|
+
|
|
179
|
+
if effectChanged {
|
|
180
|
+
updateEffect(props)
|
|
139
181
|
}
|
|
140
182
|
}
|
|
141
183
|
|
|
142
|
-
private func
|
|
143
|
-
guard
|
|
184
|
+
private func setImage(_ image: UIImage?, props: ReactNavigationSFSymbolViewImplProps, animated: Bool) {
|
|
185
|
+
guard let image else {
|
|
186
|
+
imageView.image = nil
|
|
187
|
+
return
|
|
188
|
+
}
|
|
144
189
|
|
|
145
|
-
|
|
190
|
+
guard animated, #available(iOS 17.0, *) else {
|
|
191
|
+
imageView.image = image
|
|
192
|
+
return
|
|
193
|
+
}
|
|
146
194
|
|
|
147
|
-
|
|
195
|
+
let options = Self.contentTransitionOptions(from: props)
|
|
196
|
+
|
|
197
|
+
switch props.contentTransition {
|
|
198
|
+
case "automatic":
|
|
199
|
+
imageView.setSymbolImage(
|
|
200
|
+
image,
|
|
201
|
+
contentTransition: .automatic,
|
|
202
|
+
options: options
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
case "replace":
|
|
206
|
+
var effect = ReplaceSymbolEffect.replace
|
|
207
|
+
|
|
208
|
+
switch props.contentTransitionVariant {
|
|
209
|
+
case "upUp":
|
|
210
|
+
effect = effect.upUp
|
|
211
|
+
case "offUp":
|
|
212
|
+
effect = effect.offUp
|
|
213
|
+
default:
|
|
214
|
+
effect = effect.downUp
|
|
215
|
+
}
|
|
148
216
|
|
|
149
|
-
|
|
217
|
+
if props.contentTransitionScope == "wholeSymbol" {
|
|
218
|
+
effect = effect.wholeSymbol
|
|
219
|
+
} else if props.contentTransitionScope == "byLayer" {
|
|
220
|
+
effect = effect.byLayer
|
|
221
|
+
}
|
|
150
222
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
223
|
+
if props.contentTransitionMagic, #available(iOS 18.0, *) {
|
|
224
|
+
imageView.setSymbolImage(
|
|
225
|
+
image,
|
|
226
|
+
contentTransition: effect.magic(fallback: effect),
|
|
227
|
+
options: options
|
|
228
|
+
)
|
|
229
|
+
} else {
|
|
230
|
+
imageView.setSymbolImage(
|
|
231
|
+
image,
|
|
232
|
+
contentTransition: effect,
|
|
233
|
+
options: options
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
default:
|
|
238
|
+
imageView.image = image
|
|
155
239
|
}
|
|
240
|
+
}
|
|
156
241
|
|
|
157
|
-
|
|
158
|
-
|
|
242
|
+
@available(iOS 17.0, *)
|
|
243
|
+
private static func contentTransitionOptions(from props: ReactNavigationSFSymbolViewImplProps) -> SymbolEffectOptions {
|
|
244
|
+
var options: SymbolEffectOptions = .default
|
|
245
|
+
|
|
246
|
+
if props.contentTransitionSpeed != 1 {
|
|
247
|
+
options = options.speed(props.contentTransitionSpeed)
|
|
159
248
|
}
|
|
160
249
|
|
|
161
|
-
|
|
250
|
+
return options
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
private func updateEffect(_ props: ReactNavigationSFSymbolViewImplProps) {
|
|
254
|
+
guard #available(iOS 17.0, *) else { return }
|
|
255
|
+
|
|
256
|
+
imageView.removeAllSymbolEffects()
|
|
257
|
+
|
|
258
|
+
guard !props.effect.isEmpty else { return }
|
|
259
|
+
|
|
260
|
+
let options = Self.symbolEffectOptions(from: props)
|
|
261
|
+
|
|
262
|
+
switch props.effect {
|
|
162
263
|
case "bounce":
|
|
163
264
|
var effect = BounceSymbolEffect.bounce
|
|
164
265
|
|
|
165
|
-
if props.
|
|
266
|
+
if props.effectScope == "wholeSymbol" {
|
|
166
267
|
effect = effect.wholeSymbol
|
|
268
|
+
} else if props.effectScope == "byLayer" {
|
|
269
|
+
effect = effect.byLayer
|
|
167
270
|
}
|
|
168
271
|
|
|
169
|
-
if props.
|
|
272
|
+
if props.effectDirection == "up" {
|
|
170
273
|
effect = effect.up
|
|
171
274
|
}
|
|
172
275
|
|
|
173
|
-
if props.
|
|
276
|
+
if props.effectDirection == "down" {
|
|
174
277
|
effect = effect.down
|
|
175
278
|
}
|
|
176
279
|
|
|
@@ -179,8 +282,10 @@ import UIKit
|
|
|
179
282
|
case "pulse":
|
|
180
283
|
var effect = PulseSymbolEffect.pulse
|
|
181
284
|
|
|
182
|
-
if props.
|
|
285
|
+
if props.effectScope == "wholeSymbol" {
|
|
183
286
|
effect = effect.wholeSymbol
|
|
287
|
+
} else if props.effectScope == "byLayer" {
|
|
288
|
+
effect = effect.byLayer
|
|
184
289
|
}
|
|
185
290
|
|
|
186
291
|
imageView.addSymbolEffect(effect, options: options)
|
|
@@ -188,15 +293,17 @@ import UIKit
|
|
|
188
293
|
case "appear":
|
|
189
294
|
var effect = AppearSymbolEffect.appear
|
|
190
295
|
|
|
191
|
-
if props.
|
|
296
|
+
if props.effectScope == "wholeSymbol" {
|
|
192
297
|
effect = effect.wholeSymbol
|
|
298
|
+
} else if props.effectScope == "byLayer" {
|
|
299
|
+
effect = effect.byLayer
|
|
193
300
|
}
|
|
194
301
|
|
|
195
|
-
if props.
|
|
302
|
+
if props.effectDirection == "up" {
|
|
196
303
|
effect = effect.up
|
|
197
304
|
}
|
|
198
305
|
|
|
199
|
-
if props.
|
|
306
|
+
if props.effectDirection == "down" {
|
|
200
307
|
effect = effect.down
|
|
201
308
|
}
|
|
202
309
|
|
|
@@ -205,15 +312,17 @@ import UIKit
|
|
|
205
312
|
case "disappear":
|
|
206
313
|
var effect = DisappearSymbolEffect.disappear
|
|
207
314
|
|
|
208
|
-
if props.
|
|
315
|
+
if props.effectScope == "wholeSymbol" {
|
|
209
316
|
effect = effect.wholeSymbol
|
|
317
|
+
} else if props.effectScope == "byLayer" {
|
|
318
|
+
effect = effect.byLayer
|
|
210
319
|
}
|
|
211
320
|
|
|
212
|
-
if props.
|
|
321
|
+
if props.effectDirection == "up" {
|
|
213
322
|
effect = effect.up
|
|
214
323
|
}
|
|
215
324
|
|
|
216
|
-
if props.
|
|
325
|
+
if props.effectDirection == "down" {
|
|
217
326
|
effect = effect.down
|
|
218
327
|
}
|
|
219
328
|
|
|
@@ -222,10 +331,37 @@ import UIKit
|
|
|
222
331
|
case "variableColor":
|
|
223
332
|
var effect = VariableColorSymbolEffect.variableColor
|
|
224
333
|
|
|
225
|
-
if props.
|
|
226
|
-
effect = props.
|
|
334
|
+
if props.effectReversing {
|
|
335
|
+
effect = props.effectCumulative ? effect.reversing.cumulative : effect.reversing.iterative
|
|
227
336
|
} else {
|
|
228
|
-
effect = props.
|
|
337
|
+
effect = props.effectCumulative ? effect.nonReversing.cumulative : effect.nonReversing.iterative
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if props.effectInactiveLayers == "hide" {
|
|
341
|
+
effect = effect.hideInactiveLayers
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if props.effectInactiveLayers == "dim" {
|
|
345
|
+
effect = effect.dimInactiveLayers
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
imageView.addSymbolEffect(effect, options: options)
|
|
349
|
+
|
|
350
|
+
case "scale":
|
|
351
|
+
var effect = ScaleSymbolEffect.scale
|
|
352
|
+
|
|
353
|
+
if props.effectScope == "wholeSymbol" {
|
|
354
|
+
effect = effect.wholeSymbol
|
|
355
|
+
} else if props.effectScope == "byLayer" {
|
|
356
|
+
effect = effect.byLayer
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if props.effectDirection == "up" {
|
|
360
|
+
effect = effect.up
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if props.effectDirection == "down" {
|
|
364
|
+
effect = effect.down
|
|
229
365
|
}
|
|
230
366
|
|
|
231
367
|
imageView.addSymbolEffect(effect, options: options)
|
|
@@ -234,8 +370,18 @@ import UIKit
|
|
|
234
370
|
if #available(iOS 18.0, *) {
|
|
235
371
|
var effect = BreatheSymbolEffect.breathe
|
|
236
372
|
|
|
237
|
-
if props.
|
|
373
|
+
if props.effectVariant == "plain" {
|
|
374
|
+
effect = effect.plain
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if props.effectVariant == "pulse" {
|
|
378
|
+
effect = effect.pulse
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if props.effectScope == "wholeSymbol" {
|
|
238
382
|
effect = effect.wholeSymbol
|
|
383
|
+
} else if props.effectScope == "byLayer" {
|
|
384
|
+
effect = effect.byLayer
|
|
239
385
|
}
|
|
240
386
|
|
|
241
387
|
imageView.addSymbolEffect(effect, options: options)
|
|
@@ -245,16 +391,30 @@ import UIKit
|
|
|
245
391
|
if #available(iOS 18.0, *) {
|
|
246
392
|
var effect = WiggleSymbolEffect.wiggle
|
|
247
393
|
|
|
248
|
-
if props.
|
|
394
|
+
if props.effectScope == "wholeSymbol" {
|
|
249
395
|
effect = effect.wholeSymbol
|
|
396
|
+
} else if props.effectScope == "byLayer" {
|
|
397
|
+
effect = effect.byLayer
|
|
250
398
|
}
|
|
251
399
|
|
|
252
|
-
if props.
|
|
400
|
+
if props.effectAngle >= 0 {
|
|
401
|
+
effect = effect.custom(angle: Double(props.effectAngle))
|
|
402
|
+
} else if props.effectDirection == "up" {
|
|
253
403
|
effect = effect.up
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
if props.animationDirection == "down" {
|
|
404
|
+
} else if props.effectDirection == "down" {
|
|
257
405
|
effect = effect.down
|
|
406
|
+
} else if props.effectDirection == "left" {
|
|
407
|
+
effect = effect.left
|
|
408
|
+
} else if props.effectDirection == "right" {
|
|
409
|
+
effect = effect.right
|
|
410
|
+
} else if props.effectDirection == "forward" {
|
|
411
|
+
effect = effect.forward
|
|
412
|
+
} else if props.effectDirection == "backward" {
|
|
413
|
+
effect = effect.backward
|
|
414
|
+
} else if props.effectDirection == "clockwise" {
|
|
415
|
+
effect = effect.clockwise
|
|
416
|
+
} else if props.effectDirection == "counterClockwise" {
|
|
417
|
+
effect = effect.counterClockwise
|
|
258
418
|
}
|
|
259
419
|
|
|
260
420
|
imageView.addSymbolEffect(effect, options: options)
|
|
@@ -264,8 +424,56 @@ import UIKit
|
|
|
264
424
|
if #available(iOS 18.0, *) {
|
|
265
425
|
var effect = RotateSymbolEffect.rotate
|
|
266
426
|
|
|
267
|
-
if props.
|
|
427
|
+
if props.effectScope == "wholeSymbol" {
|
|
268
428
|
effect = effect.wholeSymbol
|
|
429
|
+
} else if props.effectScope == "byLayer" {
|
|
430
|
+
effect = effect.byLayer
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if props.effectDirection == "clockwise" {
|
|
434
|
+
effect = effect.clockwise
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
if props.effectDirection == "counterClockwise" {
|
|
438
|
+
effect = effect.counterClockwise
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
imageView.addSymbolEffect(effect, options: options)
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
case "drawOn":
|
|
445
|
+
if #available(iOS 26.0, *) {
|
|
446
|
+
var effect = DrawOnSymbolEffect.drawOn
|
|
447
|
+
|
|
448
|
+
if props.effectScope == "wholeSymbol" {
|
|
449
|
+
effect = effect.wholeSymbol
|
|
450
|
+
} else if props.effectScope == "individually" {
|
|
451
|
+
effect = effect.individually
|
|
452
|
+
} else if props.effectScope == "byLayer" {
|
|
453
|
+
effect = effect.byLayer
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
imageView.addSymbolEffect(effect, options: options)
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
case "drawOff":
|
|
460
|
+
if #available(iOS 26.0, *) {
|
|
461
|
+
var effect = DrawOffSymbolEffect.drawOff
|
|
462
|
+
|
|
463
|
+
if props.effectDrawDirection == "reversed" {
|
|
464
|
+
effect = effect.reversed
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
if props.effectDrawDirection == "nonReversed" {
|
|
468
|
+
effect = effect.nonReversed
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if props.effectScope == "wholeSymbol" {
|
|
472
|
+
effect = effect.wholeSymbol
|
|
473
|
+
} else if props.effectScope == "individually" {
|
|
474
|
+
effect = effect.individually
|
|
475
|
+
} else if props.effectScope == "byLayer" {
|
|
476
|
+
effect = effect.byLayer
|
|
269
477
|
}
|
|
270
478
|
|
|
271
479
|
imageView.addSymbolEffect(effect, options: options)
|
|
@@ -275,6 +483,88 @@ import UIKit
|
|
|
275
483
|
}
|
|
276
484
|
}
|
|
277
485
|
|
|
486
|
+
@available(iOS 17.0, *)
|
|
487
|
+
private static func symbolEffectOptions(from props: ReactNavigationSFSymbolViewImplProps) -> SymbolEffectOptions {
|
|
488
|
+
var options: SymbolEffectOptions = .default
|
|
489
|
+
|
|
490
|
+
switch props.effectRepeat {
|
|
491
|
+
case "continuous":
|
|
492
|
+
if #available(iOS 18.0, *) {
|
|
493
|
+
options = options.repeat(.continuous)
|
|
494
|
+
} else {
|
|
495
|
+
options = options.repeating
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
case "nonRepeating":
|
|
499
|
+
options = options.nonRepeating
|
|
500
|
+
|
|
501
|
+
case "periodic":
|
|
502
|
+
if #available(iOS 18.0, *) {
|
|
503
|
+
let count: Int? = props.effectRepeatCount > 0 ? props.effectRepeatCount : nil
|
|
504
|
+
let delay: Double? = props.effectRepeatDelay > 0 ? Double(props.effectRepeatDelay) : nil
|
|
505
|
+
|
|
506
|
+
options = options.repeat(
|
|
507
|
+
.periodic(count, delay: delay)
|
|
508
|
+
)
|
|
509
|
+
} else if props.effectRepeatCount > 0 {
|
|
510
|
+
options = options.repeat(props.effectRepeatCount)
|
|
511
|
+
} else {
|
|
512
|
+
options = options.repeating
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
default:
|
|
516
|
+
break
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
if props.effectSpeed != 1 {
|
|
520
|
+
options = options.speed(props.effectSpeed)
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
return options
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
private static func symbolImage(
|
|
527
|
+
name: String,
|
|
528
|
+
configuration: UIImage.SymbolConfiguration,
|
|
529
|
+
props: ReactNavigationSFSymbolViewImplProps
|
|
530
|
+
) -> UIImage? {
|
|
531
|
+
if props.variableValue >= 0 {
|
|
532
|
+
let variableValue = min(max(props.variableValue, 0), 1)
|
|
533
|
+
|
|
534
|
+
if #available(iOS 16.0, *) {
|
|
535
|
+
if let systemImage = UIImage(
|
|
536
|
+
systemName: name,
|
|
537
|
+
variableValue: Double(variableValue),
|
|
538
|
+
configuration: configuration
|
|
539
|
+
) {
|
|
540
|
+
return systemImage
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// Fall back to a custom symbol from the app's asset catalog.
|
|
546
|
+
return UIImage(systemName: name, withConfiguration: configuration)
|
|
547
|
+
?? UIImage(named: name)?.applyingSymbolConfiguration(configuration)
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
@available(iOS 26.0, *)
|
|
551
|
+
private static func symbolVariableValueMode(from value: String) -> UIImage.SymbolVariableValueMode {
|
|
552
|
+
switch value {
|
|
553
|
+
case "color": return .color
|
|
554
|
+
case "draw": return .draw
|
|
555
|
+
default: return .automatic
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
@available(iOS 26.0, *)
|
|
560
|
+
private static func symbolColorRenderingMode(from value: String) -> UIImage.SymbolColorRenderingMode {
|
|
561
|
+
switch value {
|
|
562
|
+
case "flat": return .flat
|
|
563
|
+
case "gradient": return .gradient
|
|
564
|
+
default: return .automatic
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
278
568
|
private static func symbolWeight(from value: Int) -> UIImage.SymbolWeight {
|
|
279
569
|
switch value {
|
|
280
570
|
case 100: return .thin
|