react-native-color-lens
A React-Native util for extracting the dominant colors from an image. Uses ColorThiefSwift as a foundation.
Getting started
npm install react-native-color-lens --save
or
yarn add react-native-color-lens
API
getPalette(imageUri, callback)
imageUri: String - uri location of local image
callback: Func - (err, swatches) => {}
Thanks
- Thanks to Kazuki Ohara for ColorThiefSwift
- Thanks to Sven Woltmann for Java implementation
- Thanks to Lokesh Dhakar for the original ColorThief implementation in JS