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