Gathering detailed insights and metrics for react-native-color-picker-updated-slider
Gathering detailed insights and metrics for react-native-color-picker-updated-slider
Gathering detailed insights and metrics for react-native-color-picker-updated-slider
Gathering detailed insights and metrics for react-native-color-picker-updated-slider
Color picker component for IOS/Android
npm install react-native-color-picker-updated-slider
Typescript
Module System
Node Version
NPM Version
Typescript rewrite
Updated on Sep 03, 2020
Support for custom slider components
Updated on Mar 14, 2020
New prop types + pure component update
Updated on Sep 15, 2017
Ability to hide slider for holo picker
Updated on Aug 05, 2017
Added support for RTL
Updated on Jul 24, 2017
small usability improvements
Updated on Jan 16, 2017
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
271 Stars
63 Commits
69 Forks
6 Watchers
8 Branches
10 Contributors
Updated on Jun 25, 2025
Latest Version
0.6.90
Package Id
react-native-color-picker-updated-slider@0.6.90
Unpacked Size
385.78 kB
Size
229.48 kB
File Count
33
NPM Version
8.4.1
Node Version
17.4.0
Published on
May 24, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
React Native implementation of color picker for both Android and iOS. Forked and updated to replace the deprecated slider component, everything else remains the same.
Install the color picker
npm install react-native-color-picker-updated-slider --save
And use it in your application
1import { ColorPicker } from "react-native-color-picker-updated-slider"; 2 3const Picker = () => ( 4 <ColorPicker 5 onColorSelected={(color) => alert(`Color selected: ${color}`)} 6 style={{ flex: 1 }} 7 /> 8);
Color picker will use space you provide. Therefore it is necessary to provide styles that will determine picker's size.
For HoloPicker (ColorPicker
) you might need to install @react-native-community/slider
and pass it (or any other Slider compatible component) as sliderComponent
prop if you don't want to use deprecated RN Slider
.
We provide two types of color picker - holo (default) and triangle color picker. Both has the same API so that they are interchangable. Just import it and use it the same way:
1import { 2 ColorPicker, 3 TriangleColorPicker, 4} from "react-native-color-picker-updated-slider";
ColorPicker | TriangleColorPicker |
---|---|
![]() | ![]() |
Color pickers accepts properties below. Each property which define color is represented as a color string.
Both color pickers are PureComponents thus if you want to update it you should not mutate its properties deeply.
Property | Type | Note |
---|---|---|
color | String|HSV | Color string or HSV object (see below). Defines selected color in controlled component. |
defaultColor | String | Defines initial selected color in uncontrolled component. |
oldColor | String | Old color to be used for visual comparision. If it is not defined, whole circle is representing selected color. |
style | Style | Styles passed to color picker container |
onColorSelected | Function | Callback with color (HEX string) as argument called when user confirms color selection. |
onColorChange | Function | Callback called each time when color is changed. Used in controlled component. Argument is color in HSV representation (see below) |
onOldColorSelected | Function | Callback with color (HEX string) as argument called when user selects old color. |
hideSliders | Boolean | Option to hide bottom sliders (holo picker only) |
hideControls | Boolean | Option to hide bottom buttons (triangle picker only) |
When using color picker as a controlled component you should always use HSV color representation to avoid conversion from/to HEX or RGB. HSV color representation is an object literal with properties:
1{ 2 h: number, // <0, 360> 3 s: number, // <0, 1> 4 v: number, // <0, 1> 5} 6
To utilize HSV -> HEX/RGB conversion we provide helper functions:
1import { toHsv, fromHsv } from "react-native-color-picker-updated-slider"; 2 3toHsv("blue"); // { h: 24, s: 1, v: 1 } 4 5fromHsv({ h: 200, s: 0.4, v: 0.4 }); // #3d5866
See our examples on Expo
ScrollView
due to touch event interference.Slider
component. You need to provide Slider component as prop to overcome this.Our implementation was inspired by Android Holo ColorPicker
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/28 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More