{"id":26331501,"url":"https://github.com/jerson/react-native-palette-full","last_synced_at":"2026-02-13T09:02:46.641Z","repository":{"id":55915899,"uuid":"137606973","full_name":"jerson/react-native-palette-full","owner":"jerson","description":"info about colors from images or url, compatible with **Android** and **iOS**","archived":false,"fork":false,"pushed_at":"2021-02-17T15:12:11.000Z","size":58,"stargazers_count":20,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-20T16:56:32.983Z","etag":null,"topics":["android","colors","ios","palette","react-native"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-palette-full","language":"Objective-C","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/jerson.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}},"created_at":"2018-06-16T19:58:25.000Z","updated_at":"2023-06-19T11:11:52.000Z","dependencies_parsed_at":"2022-08-15T09:20:40.993Z","dependency_job_id":null,"html_url":"https://github.com/jerson/react-native-palette-full","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jerson/react-native-palette-full","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-palette-full","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-palette-full/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-palette-full/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-palette-full/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerson","download_url":"https://codeload.github.com/jerson/react-native-palette-full/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerson%2Freact-native-palette-full/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260279049,"owners_count":22985393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["android","colors","ios","palette","react-native"],"created_at":"2025-03-15T22:37:52.095Z","updated_at":"2026-02-13T09:02:41.609Z","avatar_url":"https://github.com/jerson.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-palette-full\n\ninfo about colors from images or url, compatible with **Android** and **iOS**\n\n## Getting started\n\n`$ npm install react-native-palette-full --save`\n\n## Mostly automatic installation\n\n`$ react-native link react-native-palette-full`\n\n## Manual installation\n\n### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-palette-full` and add `RNPalette.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNPalette.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Go to `Podfile` and add `\"SDWebImage\", \"~\u003e4.3.3\"`\n5. Run your project (`Cmd+R`)\u003c\n\n### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n\n- Add `import me.jerson.mobile.palette.RNPalettePackage;` to the imports at the top of the file\n- Add `new RNPalettePackage()` to the list returned by the `getPackages()` method\n\n2. Append the following lines to `android/settings.gradle`:\n\n   ```groovy\n   include ':react-native-palette-full'\n   project(':react-native-palette-full').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-palette-full/android')\n   ```\n\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n\n   ```groovy\n     implementation project(':react-native-palette-full')\n   ```\n\n## Usage\n\n```javascript\nimport Palette from \"react-native-palette-full\";\n\nconst outputColors = (colors)=\u003e{\n  console.log(colors);\n};\n\nPalette.getNamedSwatchesFromUrl(url).then(outputColors);\nPalette.getAllSwatchesFromUrl(url).then(outputColors);\nPalette.getNamedSwatches(path).then(outputColors);\nPalette.getAllSwatches(path).then(outputColors);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerson%2Freact-native-palette-full","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerson%2Freact-native-palette-full","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerson%2Freact-native-palette-full/lists"}