This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
ColorPicker
A SwiftUI ColorPicker component for selecting colors.
iOS
Expo UI ColorPicker matches the official SwiftUI ColorPicker API and allows app users to select colors from a palette.
Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic color picker
ColorPickerExample.tsx
Color picker with opacity support
Use the supportsOpacity prop to allow users to select colors with alpha transparency.
ColorPickerOpacityExample.tsx
API
import { ColorPicker } from '@expo/ui/swift-ui';
Component
Type: React.Element<ColorPickerProps>
Renders a ColorPicker component using SwiftUI.