mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-03-14 21:36:20 +00:00
wip
This commit is contained in:
@@ -1 +1 @@
|
||||
export * as ContextMenu from "zeego/context-menu";
|
||||
export * from "zeego/context-menu";
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * as DropdownMenu from "zeego/dropdown-menu";
|
||||
export * from "zeego/dropdown-menu";
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user