Gathering detailed insights and metrics for react-native-reanimated-color-picker
Gathering detailed insights and metrics for react-native-reanimated-color-picker
Gathering detailed insights and metrics for react-native-reanimated-color-picker
Gathering detailed insights and metrics for react-native-reanimated-color-picker
Natively animated HSV color picker for iOS & Android
npm install react-native-reanimated-color-picker
Typescript
Module System
Node Version
NPM Version
30.8
Supply Chain
57.2
Quality
65.6
Maintenance
50
Vulnerability
93.4
License
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
28 Stars
26 Commits
3 Forks
2 Watchers
9 Branches
1 Contributors
Updated on Apr 10, 2024
Latest Version
0.0.11
Package Id
react-native-reanimated-color-picker@0.0.11
Unpacked Size
88.60 kB
Size
18.36 kB
File Count
41
NPM Version
7.5.3
Node Version
15.9.0
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
5
Natively animated HSV color picker for iOS & Android
Install peer dependencies: react-native-image-filter-kit, react-native-reanimated, react-native-gesture-handler
$ npm install react-native-reanimated-color-picker --save
1import * as React from 'react' 2import { HueSaturationValuePicker } from 'react-native-reanimated-color-picker' 3 4const wheelStyle = { width: '100%' } 5const sliderStyle = { height: 50, width: '100%' } 6 7const colorChanged = ({ h, s, v }) => { 8 console.warn(h, s, v) 9} 10 11const picker = ( 12 <HueSaturationValuePicker 13 wheelStyle={wheelStyle} 14 sliderStyle={sliderStyle} 15 onColorChangeComplete={colorChanged} 16 /> 17)
There are three components:
HueSaturationWheel
- a wheel for selecting hue and saturation with constant value = 1ValueSlider
- a slider for selecting valueHueSaturationValuePicker
- a composition of two first componentsThe library doesn't provide any color conversion functions, so you have to use a third-party module for color conversion
prop | type | default | desc |
---|---|---|---|
style | ViewStyle | - | required |
snapToCenter | number | - | Thumb will snap to center of the wheel when the distance is less than snapToCenter |
onColorChangeComplete | (color: { h: number, s: number, v: number }) => void | - | Called when touch ended |
onColorChange | (color: { h: number, s: number, v: number }) => void | - | Called when touch moved |
value | Animated.Node<number> | new Animated.Value(1) | value node from ValueSlider |
valueGestureState | Animated.Node<number> | new Animated.Value(State.END) | ValueSlider gesture state |
thumbRadius | number | 50 | |
initialHue | number | 0 | hue in degrees |
initialSaturation | number | 0 | [0..1] |
prop | type | default | desc |
---|---|---|---|
style | ViewStyle | - | required |
thumbWidth | number | 50 | |
initialValue | number | 1 | [0..1] |
onValueInit | (value: Animated.Node<number>, gestureState: Animated.Node<number>) => void | - | used to wire ValudeSlider with HueSaturationWheel |
prop | type | default | desc |
---|---|---|---|
wheelStyle | ViewStyle | - | required |
sliderStyle | ViewStyle | - | required |
snapToCenter | number | - | Thumb will snap to center of the wheel when the distance is less than snapToCenter |
onColorChangeComplete | (color: { h: number, s: number, v: number }) => void | - | Called when touch ended |
onColorChange | (color: { h: number, s: number, v: number }) => void | - | Called when touch moved |
thumbSize | number | 50 | thumbRadius and thumbWidth |
initialHue | number | 0 | hue in degrees |
initialSaturation | number | 0 | [0..1] |
initialValue | number | 1 | [0..1] |
colorHSV
function was taken from react-native-reanimated
example by @kmagieraNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
project is archived
Details
Reason
no SAST tool detected
Details
Reason
Found 0/26 approved changesets -- 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
37 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