Easy Color Selection With The Reanimated Color Picker Component

Reanimated Color Picker allows you to add a fully customizable color picker to your React Native-powered apps with support for IOS, Android, Expo, and Web.

Basic Usage:

1. Install and import the Reanimated Color Picker’s components into your project.

$ npm i reanimated-color-picker
import React, { useState } from 'react';
import { Button, Modal, StyleSheet, View } from 'react-native';
import ColorPicker, { Panel1, Swatches, Preview, OpacitySlider, HueSlider } from 'reanimated-color-picker';

2. Create a basic color picker.

export default function App() {
  const [showModal, setShowModal] = useState(false);
  const onSelectColor = ({ hex }) => {
    // do something with the selected color.
  return (
    <View style={styles.container}>
      <Button title='Color Picker' onPress={() => setShowModal(true)} />
      <Modal visible={showModal} animationType='slide'>
        <ColorPicker style={{ width: '70%' }} value='red' onComplete={onSelectColor}>
          <Preview />
          <Panel1 />
          <HueSlider />
          <OpacitySlider />
          <Swatches />
        <Button title='Ok' onPress={() => setShowModal(false)} />
const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',

3. See the Offical API for more usages.


Easy Color Selection With The Reanimated Color Picker Component

Download Details:

Author: alabsi91

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website: https://github.com/alabsi91/reanimated-color-picker

License: MIT

Add Comment