From 3fae21d559560ce6c490e480a72571951a1c5f1d Mon Sep 17 00:00:00 2001 From: sarendsen Date: Mon, 6 Jan 2025 14:45:42 +0100 Subject: [PATCH] wip --- components/ContextMenu.ts | 2 +- components/DropdownMenu.ts | 2 +- hooks/useImageColors.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ContextMenu.ts b/components/ContextMenu.ts index 4be160e5..71954e83 100644 --- a/components/ContextMenu.ts +++ b/components/ContextMenu.ts @@ -1 +1 @@ -export * as ContextMenu from "zeego/context-menu"; +export * from "zeego/context-menu"; diff --git a/components/DropdownMenu.ts b/components/DropdownMenu.ts index c457d736..d5e75592 100644 --- a/components/DropdownMenu.ts +++ b/components/DropdownMenu.ts @@ -1 +1 @@ -export * as DropdownMenu from "zeego/dropdown-menu"; +export * from "zeego/dropdown-menu"; diff --git a/hooks/useImageColors.ts b/hooks/useImageColors.ts index 927e251e..b3a8ff90 100644 --- a/hooks/useImageColors.ts +++ b/hooks/useImageColors.ts @@ -12,7 +12,7 @@ import { useAtom, useAtomValue } from "jotai"; import { useEffect, useMemo } from "react"; import { Platform } from "react-native"; // import { getColors } from "react-native-image-colors"; -const getColors = !Platform.isTV ? require("react-native-image-colors") : null; +const Colors = !Platform.isTV ? require("react-native-image-colors") : null; /** * Custom hook to extract and manage image colors for a given item. @@ -66,7 +66,7 @@ export const useImageColors = ({ } // Extract colors from the image - getColors(source.uri, { + Colors.getColors(source.uri, { fallback: "#fff", cache: false, })