react-native-image-dominant-color
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-image-dominant-color

Get dominant color from image url

Installation

npm install react-native-image-dominant-color

Usage

import { getColor } from 'react-native-image-dominant-color';

// ...

const result = await getColor('https://all-image.com/1.jpg'); // your image url

console.log(result.dominantColor); // format by rgba

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-image-dominant-color

Weekly Downloads

84

Version

1.0.1

License

MIT

Unpacked Size

20.5 kB

Total Files

22

Last publish

Collaborators

  • khorark