### Install reanimated-color-picker using npm Source: https://github.com/alabsi91/reanimated-color-picker/blob/main/docs/pages/installation.md Run this command in your project root to install the library. Ensure you have the specified prerequisites installed first. ```bash npm install reanimated-color-picker ``` -------------------------------- ### Basic Color Picker Integration with Modal Source: https://github.com/alabsi91/reanimated-color-picker/blob/main/docs/pages/usage.md This example demonstrates how to integrate the ColorPicker component within a modal. It includes basic setup for selecting a color and closing the modal. Note that 'onCompleteJS' and 'onChangeJS' should be used for non-worklet functions. ```jsx import React, { useState } from "react"; import { Button, Modal, StyleSheet, View } from "react-native"; import ColorPicker, { Panel1, Swatches, Preview, OpacitySlider, HueSlider } from "reanimated-color-picker"; export default function App() { const [showModal, setShowModal] = useState(false); // Note: use `onCompleteJS` and `onChangeJS` for non-worklet functions const onSelectColor = ({ hex }) => { "worklet"; // do something with the selected color. console.log(hex); }; return (