{"id":16872931,"url":"https://github.com/enzoferey/react-swipe-navigation","last_synced_at":"2026-05-20T06:06:55.122Z","repository":{"id":57346061,"uuid":"66152156","full_name":"enzoferey/react-swipe-navigation","owner":"enzoferey","description":"A simple navigation system with swipe interaction","archived":false,"fork":false,"pushed_at":"2018-05-15T10:01:18.000Z","size":5401,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T09:42:46.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enzoferey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-20T14:54:17.000Z","updated_at":"2018-05-15T10:01:19.000Z","dependencies_parsed_at":"2022-09-17T22:13:33.600Z","dependency_job_id":null,"html_url":"https://github.com/enzoferey/react-swipe-navigation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoferey%2Freact-swipe-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoferey%2Freact-swipe-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoferey%2Freact-swipe-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoferey%2Freact-swipe-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enzoferey","download_url":"https://codeload.github.com/enzoferey/react-swipe-navigation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244313481,"owners_count":20433008,"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":[],"created_at":"2024-10-13T15:18:12.759Z","updated_at":"2026-05-20T06:06:55.088Z","avatar_url":"https://github.com/enzoferey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-swipe-navigation\n\u003e A simple navigation system based on panels with swipe interaction for both mobile and PC made with React\n\n## Demo\n**[Check out the demo]** (best fit on mobile)\n\n![gif](https://enzoferey.github.io/react-swipe-navigation/demo-gif.gif)\n\n## Install\n\n```\nnpm install react-swipe-navigation\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport ReactDOM from 'react-dom';\nimport ReactSwipeNavigation from 'react-swipe-navigation';\n\nconst Navigation = () =\u003e (\n    \u003cReactSwipeNavigation menu={ ['Home', 'Blog', 'About', 'Contact'] } \u003e\n        \u003cdiv\u003eHome content\u003c/div\u003e\n        \u003cdiv\u003eBlog content\u003c/div\u003e\n        \u003cdiv\u003eAbout content\u003c/div\u003e\n        \u003cdiv\u003eContact content\u003c/div\u003e\n    \u003c/ReactSwipeNavigation\u003e\n);\n\nReactDOM.render(\n    \u003cNavigation /\u003e, \n    document.getElementById('app')\n);\n```\n\n## Props\n  - `menu: Array of String` - any length, but more than 6 will not fit well on mobile\n  - `minX: Number` - minimum X axis pixels difference for valid swipe\n  - `maxY: Number` - maximum Y axis pixels difference for valid swipe\n  - `speed: Number` - speed of transitions (default is Swipe.js's default, 300ms)\n  \n([See defaults])\n\n## Credits\n\nUsed a slightly modified version of [Dmitri Voronianski]'s [react-swipe] which also uses [Swipe.js] itself.\n\n\n**MIT Licensed**\n\n[Dmitri Voronianski]: \u003chttps://github.com/voronianski\u003e\n[react-swipe]: \u003chttps://github.com/voronianski/react-swipe\u003e\n[Swipe.js]: \u003chttps://github.com/thebird/swipe\u003e\n[Check out the demo]: \u003chttps://enzoferey.github.io/react-swipe-navigation/demo\u003e\n[See defaults]: \u003chttps://github.com/enzoferey/react-swipe-navigation/blob/master/js/ReactSwipeNavigate.js#L153\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzoferey%2Freact-swipe-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzoferey%2Freact-swipe-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzoferey%2Freact-swipe-navigation/lists"}