{"id":4138,"url":"https://github.com/nickjanssen/react-native-swipe-a-lot","last_synced_at":"2026-03-10T05:02:09.247Z","repository":{"id":57340545,"uuid":"62677167","full_name":"nickjanssen/react-native-swipe-a-lot","owner":"nickjanssen","description":"A swipe component for React Native that works on iOS and Android.","archived":false,"fork":false,"pushed_at":"2018-01-25T10:43:12.000Z","size":639,"stargazers_count":102,"open_issues_count":4,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T09:49:55.640Z","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/nickjanssen.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":"2016-07-05T23:53:23.000Z","updated_at":"2023-03-09T02:13:58.000Z","dependencies_parsed_at":"2022-09-10T18:10:14.335Z","dependency_job_id":null,"html_url":"https://github.com/nickjanssen/react-native-swipe-a-lot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nickjanssen/react-native-swipe-a-lot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-native-swipe-a-lot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-native-swipe-a-lot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-native-swipe-a-lot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-native-swipe-a-lot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickjanssen","download_url":"https://codeload.github.com/nickjanssen/react-native-swipe-a-lot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-native-swipe-a-lot/sbom","scorecard":{"id":685139,"data":{"date":"2025-08-11","repo":{"name":"github.com/nickjanssen/react-native-swipe-a-lot","commit":"98605f4b1ad112002c4d901994435f40319b4e05"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/11 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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: 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":"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":"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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T00:33:39.621Z","repository_id":57340545,"created_at":"2025-08-22T00:33:39.621Z","updated_at":"2025-08-22T00:33:39.621Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-01-05T20:17:02.286Z","updated_at":"2026-03-10T05:02:09.129Z","avatar_url":"https://github.com/nickjanssen.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# SwipeALot\n\nA swipe component for React Native that works on iOS and Android.\n\n![](http://i.imgur.com/P11FPpR.gif)\n\n#### Table of Contents\n\n* [Why create this?](#why-create-this)\n* [Features](#features)\n* [Getting started](#getting-started)\n* [Running the demo](#running-the-demo)\n* [Configuration](#configuration)\n* [API](#api)\n  * [How to use](#how-to-use)\n  * [Methods](#methods)\n* [License](#license)\n\n## Why create this?\n\nI've found existing swiping components to be buggy and not working fully on both platforms.\n\n## Features\n\n* Autoplay\n* Horizontal swiping\n* Works when orientation changes\n* Cross-platform\n* Works with any view size\n* Custom styling\n* Pressable circle buttons\n* API\n\n## Getting started\n\nInstall the npm package.\n\n```\nnpm i react-native-swipe-a-lot --save\n```\n\nImport the SwipeALot component wherever you'd like to use it.\n\n```\nimport SwipeALot from 'react-native-swipe-a-lot'\n```\n\nIn your render method, simply use it as a wrapper around Views.\n\n```\nclass Root extends React.Component {\n  render() {\n    return (\n      \u003cSwipeALot\u003e\n        \u003cView\u003e\n          \u003cText\u003eThis is slide 1\u003c/Text\u003e\n        \u003c/View\u003e\n        \u003cView\u003e\n          \u003cText\u003eThis is slide 2\u003c/Text\u003e\n        \u003c/View\u003e  \n      \u003c/SwipeALot\u003e\n    )\n  }\n}\n```\n\n## Running the demo\n\nFirst run `npm install`\n\nThen simply run `react-native run-android` or `react-native run-ios`\n\n## Configuration\n\nYou can pass these props to the component:\n\n`autoplay` makes the component automatically swipe to other pages. It is disabled by default. Pass an object as a prop here to configure it:\n\n```\n{\n  enabled: false,\n  disableOnSwipe: false,\n  delayBetweenAutoSwipes: 5000\n}\n```\n\n`onSetActivePage` is a function that returns current index of the page when user swipes or clicks on a circle\n```\n\u003cSwipeALot\n  onSetActivePage={(index) =\u003e { console.log('Current Page is: ', index); }}\n\u003e\n\u003c/SwipeALot\u003e\n```\n\n`wrapperStyle` defines how the container that contains the swiping views looks. By default no styling is applied.\n\n`circleDefaultStyle` defines how the inactive circles on your swiper component look. You can pass an object here with style properties that you wish to override.\n\n\nDefault style:\n```\n{\n  width: PixelRatio.getPixelSizeForLayoutSize(6),\n  height: PixelRatio.getPixelSizeForLayoutSize(6),\n  margin: 10,\n  backgroundColor: 'rgb(158, 158, 158)',\n  borderRadius: PixelRatio.getPixelSizeForLayoutSize(3)\n}\n```\n\n`circleActiveStyle` defines how the active circle on your swiper component looks. You can pass an object here with style properties that you wish to override.\n\nDefault style:\n```\n{\n  backgroundColor: 'rgb(245, 245, 245)',\n}\n```\n\n## API\n\n### How to use\n\nSimply save a reference to your component and then call these methods from anywhere in your app.\n\nYou can save a reference like this:\n\n```\n\u003cSwipeALot ref={(c) =\u003e this.swiper = c}\u003e\n```\n\nThen simply call the following methods on your variable, e.g. `this.swiper.swipeToPage(1)`\n\n### Methods\n\n`getPage()`\n\nGets the current page index\n\n`swipeToPage(page)`\n\n Jump to a page. This can be used to overlay buttons on top that\n\n`stopAutoplay()`\n\nStops Autoplay.\n\n`startAutoplay()`\n\nStarts Autoplay.\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickjanssen%2Freact-native-swipe-a-lot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickjanssen%2Freact-native-swipe-a-lot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickjanssen%2Freact-native-swipe-a-lot/lists"}