Closed Jake-Mulhern closed 1 year ago
I managed to figure this out.
I created a function:
const renderSlider = () => {
return (<Slider minimumTrackTintColor={theme.colors.medium} />
}
and then passed that to the ColorPicker component
<ColorPicker
sliderComponent={renderSliderComponent}
onColorSelected={color => alert(`Color selected: ${color}`)}
onColorChange={color => setNewPaletteColor(fromHsv(color))}
style={{ flex: 1, height: 400, width: 300 }}
defaultColor={selectedColor}
/>
How would I, if possible, change the color of the sliders? I have imported the Slider component from react-native-community/slider and passed it in as a prop but don't know how to pass props like slider color to the slider this way.