react-native-material-palette
Android Palette API brought to react native. It extracts prominent colors from images to help you create visually engaging apps. At the moment it only supports Android.
Installation
Installation and setup guide can be found here: Setup guide.
createMaterialPalette
Usage with ; const palette = await ;
MaterialPaletteProvider
and withMaterialPalette
Usage with ; const PaletteView = View; // later ... <MaterialPaletteProvider image= options= type: 'vibrant' defaults= vibrant: color: '#3792dd' bodyTextColor: '#ffffff' titleTextColor: '#ffffff' > <PaletteView style= flex: 1 > <Text>Hello World</Text> </PaletteView></MaterialPaletteProvider>
API
Full API documentation can be found here: API documentation.
Future work
- iOS support
- Providing own color profiles
Example app
The repo includes an example app that covers all the API cases. Go here to try it out!
Development
Development instructions can be found here: react-native-material-palette
development.