{"id":38551409,"url":"https://github.com/k5md/react-native-yet-another-sortable","last_synced_at":"2026-01-17T07:35:03.216Z","repository":{"id":57341653,"uuid":"285374931","full_name":"k5md/react-native-yet-another-sortable","owner":"k5md","description":"Sortable scrollable grid / list component for React Native.","archived":false,"fork":false,"pushed_at":"2020-08-16T22:36:25.000Z","size":711,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T20:38:47.467Z","etag":null,"topics":["drag-and-drop","grid","list","react-native","scrollable","sortable"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-yet-another-sortable","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/k5md.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":"2020-08-05T18:39:25.000Z","updated_at":"2024-11-21T01:01:05.000Z","dependencies_parsed_at":"2022-09-10T16:30:28.526Z","dependency_job_id":null,"html_url":"https://github.com/k5md/react-native-yet-another-sortable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k5md/react-native-yet-another-sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5md%2Freact-native-yet-another-sortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5md%2Freact-native-yet-another-sortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5md%2Freact-native-yet-another-sortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5md%2Freact-native-yet-another-sortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k5md","download_url":"https://codeload.github.com/k5md/react-native-yet-another-sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5md%2Freact-native-yet-another-sortable/sbom","scorecard":{"id":546527,"data":{"date":"2025-08-11","repo":{"name":"github.com/k5md/react-native-yet-another-sortable","commit":"18a9e91476f1165c5f9881c872ccb107999fcfaf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"55 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-f5x2-xv93-4p23","Warn: Project is vulnerable to: GHSA-gmpm-xp43-f7g6","Warn: Project is vulnerable to: GHSA-pf27-929j-9pmm","Warn: Project is vulnerable to: GHSA-327c-qx3v-h673","Warn: Project is vulnerable to: GHSA-x4cf-6jr3-3qvp","Warn: Project is vulnerable to: GHSA-mph8-6787-r8hw","Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-7f53-fmmv-mfjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T09:41:02.200Z","repository_id":57341653,"created_at":"2025-08-20T09:41:02.200Z","updated_at":"2025-08-20T09:41:02.200Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: 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":["drag-and-drop","grid","list","react-native","scrollable","sortable"],"created_at":"2026-01-17T07:35:03.110Z","updated_at":"2026-01-17T07:35:03.209Z","avatar_url":"https://github.com/k5md.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-yet-another-sortable\n\n[![Build Status](https://travis-ci.com/k5md/react-native-yet-another-sortable.svg?branch=release)](https://travis-ci.com/k5md/react-native-yet-another-sortable)\n\nA sortable scrollable grid / list component for React Native.\n* Change number of columns and row height on the fly\n* Much better performance (especially in debug, compared to alternatives)\n* Fast updates\n* Controllable order\n* Auto-scroll when dragged item is close to the container's border\nEssentially based on react-native-sortable-grid, it has some improvements and changes, that made me publish it as a separate package instead of making a PR.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://s7.gifyu.com/images/rnyas.gif\"\u003e\n\u003c/p\u003e\n\n## Getting Started\n### Installation\n```\nnpm install react-native-yet-another-sortable --save\n```\n### Usage\nCheck out [example project](https://github.com/k5md/react-native-yet-another-sortable/tree/master/example).\n \n```javascript\nimport React, { useState, useCallback } from 'react';\nimport SortableGrid from 'react-native-yet-another-sortable';\n\nconst Example = () =\u003e {\n  const [data] = useState([\n    { value: 0, key: 'key0' },\n    { value: 1, key: 'key1' },\n    { value: 2, key: 'key2' },\n  ]);\n\n  const [order, setOrder] = useState(['key2', 'key1', 'key0']);\n\n  const renderItem = useCallback(({ value, color }) =\u003e (\n    \u003cView style={{ flex: 1 }}\u003e\n      \u003cText\u003e{value}\u003c/Text\u003e\n    \u003c/View\u003e\n  ), []);\n\n  return (\n    \u003cView style={{ flex: 1 }}\u003e\n      \u003cSortableGrid\n        order={order}\n        data={data}\n        renderItem={renderItem}\n        onDeactivateDrag={setOrder}\n      /\u003e\n    \u003c/View\u003e\n  );\n};\n```\n\n### Props\n| parameter  | type   | required | description |\n| :--------  | :----  | :------- | :---------- |\n| order | array of string keys | yes | array of data key properties used to determine entry order |\n| data | array of objects with key property | yes | array of items to be passed to renderItem |\n| rowHeight | number | no | row height |\n| columns | number | no | number of columns per row |\n| activationTreshold | number | no | time in ms required to activate drag on hold |\n| transitionDuration | number | no | time in ms required to move cell to its position on release |\n| renderItem | function | yes | render function for each entry, is passed a data item |\n\n### Event props\n| parameter  | type   | required | description |\n| :--------  | :----  | :------- | :---------- |\n| onActivateDrag | (key, grid) =\u003e void | no |  Will execute after one holds the item for activateTreshold, before onGrantBlock |\n| onGrantBlock | (event, gestureState, grid) =\u003e void | no | Will execute on drag start |\n| onMoveBlock | (event, gestureState, grid) =\u003e void | no |  Will execute on each move |\n| onReleaseBlock | (event, gestureState, grid) =\u003e void | no |  Will execute on drag release |\n| onDeactivateDrag | (order, grid) =\u003e void | no |  Will execute on active item drop, after onReleaseBlock, with new order as an argument |\n\n### Data item props\n| parameter  | type   | required | description |\n| :--------  | :----  | :------- | :---------- |\n| inactive | boolean | no      | Makes block not draggable |\n| key | string | yes | key used to order items\n\n## Development\nIn order to develop the application or build android .apk from the sources one should:\n1. Clone this repository\n2. Install package dependencies with `npm install`\n3. Navigate to example folder: `cd example`\n3. Install example project dependencies `npm install`\n3. Run Metro bundler with `react-native start`\n4. Connect an emulator or physical device via adb, like this (tested with [mEMU](https://www.memuplay.com/)):\n\t- `adb connect 127.0.0.1:21503`\n\t- `adb reverse tcp:8081 tcp:8081`\n5. Build and watch with `react-native run-android`, changes from src directory are picked automatically because of example's metro and babel configurations.\n\n## Contributions\nPR are always welcome!\n\n## Todos\n* Better scroll-on-drag behaviour (smooth scroll without ugly timeouts and large scroll results in the dragged block trembling)\n* Refactoring while perserving the performance\n* Actual tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk5md%2Freact-native-yet-another-sortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk5md%2Freact-native-yet-another-sortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk5md%2Freact-native-yet-another-sortable/lists"}