{"id":20828391,"url":"https://github.com/codewithmuh/reactnative_color-picker","last_synced_at":"2026-04-20T22:03:52.256Z","repository":{"id":112273285,"uuid":"446918718","full_name":"codewithmuh/reactnative_color-picker","owner":"codewithmuh","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-11T17:36:03.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T11:04:06.606Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewithmuh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-01-11T17:30:22.000Z","updated_at":"2022-01-11T17:43:49.000Z","dependencies_parsed_at":"2023-06-09T21:00:36.091Z","dependency_job_id":null,"html_url":"https://github.com/codewithmuh/reactnative_color-picker","commit_stats":null,"previous_names":["codewithmuh/reactnative_color-picker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewithmuh/reactnative_color-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmuh%2Freactnative_color-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmuh%2Freactnative_color-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmuh%2Freactnative_color-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmuh%2Freactnative_color-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithmuh","download_url":"https://codeload.github.com/codewithmuh/reactnative_color-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmuh%2Freactnative_color-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32067628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T23:14:44.683Z","updated_at":"2026-04-20T22:03:52.220Z","avatar_url":"https://github.com/codewithmuh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Wheel Color Picker\n\nA color picker component for react native.\n\n## Features\n- Pure JS, lightweight, works on Android, iOS and Web\n- Uses hue-saturation color wheel and lightness slider\n- Selectable from color swatchs\n- Smooth and discrete color slider\n- Color change animations on wheel, slider and swatches\n\n![Demo Image](https://naeemur.github.io/asset-bucket/rn-wheel-color-picker.gif)\n\n\n## Installation\n\n```\nnpm install react-native-wheel-color-picker\n```\n\n## Usage\n\n```js\nimport { Component } from 'react'\nimport { View, Text } from 'react-native'\n\nimport ColorPicker from 'react-native-wheel-color-picker'\n\nclass App extends Component {\n\trender() {\n\t\treturn (\n\t\t\t\u003cView style={[]}\u003e\n\t\t\t\t\u003cColorPicker\n\t\t\t\t\tref={r =\u003e { this.picker = r }}\n\t\t\t\t\tcolor={this.state.currentColor}\n\t\t\t\t\tswatchesOnly={this.state.swatchesOnly}\n\t\t\t\t\tonColorChange={this.onColorChange}\n\t\t\t\t\tonColorChangeComplete={this.onColorChangeComplete}\n\t\t\t\t\tthumbSize={40}\n\t\t\t\t\tsliderSize={40}\n\t\t\t\t\tnoSnap={true}\n\t\t\t\t\trow={false}\n\t\t\t\t\tswatchesLast={this.state.swatchesLast}\n\t\t\t\t\tswatches={this.state.swatchesEnabled}\n\t\t\t\t\tdiscrete={this.state.disc}\n\t\t\t\t/\u003e\n\t\t\t\t\u003cSomeButton onPress={() =\u003e this.picker.revert()} /\u003e\n\t\t\t\u003c/View\u003e\n\t\t)\n\t}\n}\n\nexport default App\n```\n\n## API\n\n## ***ColorPicker***\n\n## Component props and default values\n`row: false` use row or vertical layout\n\n`noSnap: false` enables snapping on the center of wheel and edges of wheel and slider\n\n`thumbSize: 50` wheel color thumb size\n\n`sliderSize: 20` slider and slider color thumb size\n\n`gapSize: 16` size of gap between slider and wheel\n\n`discrete: false` use swatchs of shades instead of slider\n\n`discreteLength: 10` number of swatchs of shades\n\n`sliderHidden: false` if true the slider is hidden\n\n`swatches: true` show color swatches\n\n`swatchesLast: true` if false swatches are shown before wheel\n\n`swatchesOnly: false` show swatch only and hide wheel and slider\n\n`swatchesHitSlop: undefined` defines how far the touch event can start away from the swatch\n\n`color: '#ffffff'` color of the color picker\n\n`palette: ['#000000','#888888','#ed1c24','#d11cd5','#1633e6','#00aeef','#00c85d','#57ff0a','#ffde17','#f26522']` palette colors of swatches\n\n`shadeWheelThumb: true` if true the wheel thumb color is shaded\n\n`shadeSliderThumb: false` if true the slider thumb color is shaded\n\n`autoResetSlider: false` if true the slider thumb is reset to 0 value when wheel thumb is moved\n\n`onInteractionStart: () =\u003e {}` callback function triggered when user begins dragging slider/wheel\n\n`onColorChange: (color) =\u003e {}` callback function providing current color while user is actively dragging slider/wheel\n\n`onColorChangeComplete: (color) =\u003e {}` callback function providing final color when user stops dragging slider/wheel\n\n## Instance methods\n`revert()` reverts the color to the one provided in the color prop\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmuh%2Freactnative_color-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithmuh%2Freactnative_color-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmuh%2Freactnative_color-picker/lists"}