React native color grabber
Given an image, returns dominant colors
Install:
npm install react-native-color-grabber --save
- Add
node_modules/color-grabber/color-grabber
to your project - Run and build
api
var colorGrabber = NativeModulescolorGrabbercolorGrabber;
Example:
Creating a map style from the dominant colors in an image
Notes
- Only tested with images from
assets-library://
- Code from