UNPKG

@somesoap/react-native-image-palette

Version:

Get average color or a colors palette from an image or the image segments

19 lines (14 loc) 535 B
import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes'; export type { PaletteResult, ImageSegmentConfig } from './NativeImagePalette'; export type ImagePaletteCommonConfig = { /** * Headers for image request. For example auth token if image is only available for authenticated users */ headers?: Record<string, string>; }; export type PaletteConfig = ImagePaletteCommonConfig & { fallbackColor?: string; }; export type AverageColorConfig = ImagePaletteCommonConfig & { pixelSpacingAndroid?: Int32; };