ColorSwatch
A color swatch component
(code example)
#
Usage<ColorSwatch color={Colors.red30} selected={true} onPress={() => console.log('pressed')}/>
#
API#
animatedIs first render should be animated
boolean
#
colorThe color of the ColorSwatch
string
#
indexThe index of the Swatch if in array
number
#
onPressCallback from press event
(value: string, colorInfo: ColorInfo) => void
#
selectedIs the initial state is selected
boolean
#
sizeColor Swatch size
number
#
styleComponent's style
ViewStyle
#
testIDThe test id for e2e tests
string
#
unavailableIs the initial state is unavailable
boolean
#
value#
Must be different than other ColorSwatches in the same groupThe identifier value of the ColorSwatch in a ColorSwatch palette
string