React Native component for finding dominant colors in an image

Bobby Sudekum has already shared with us its react-native-mapbox-gl for Mapbox. This time he's back with a completely different Component, but we're sure you're going to put it to good use.

react-native-color-grabber on GitHub

Given an image, returns dominant colors

var colorGrabber = require('react-native').NativeModules.colorGrabber  
colorGrabber.getColors(image, (err, res) => {  
    console.log(res);
    // Returns:
    // {
    //  'UIDeviceRGBColorSpace 0.0784314 0.0941176 0.0823529 1': '0.1666667',
    //  'UIDeviceRGBColorSpace 0.215686 0.203922 0.262745 1': '0.1666667',
    //  'UIDeviceRGBColorSpace 0.517647 0.45098 0.380392 1': '0.6666667'
    // }
});

Finding dominant colors