{"id":20569614,"url":"https://github.com/xiaody/react-navigate","last_synced_at":"2025-04-14T16:35:58.624Z","repository":{"id":14549258,"uuid":"76713323","full_name":"xiaody/react-navigate","owner":"xiaody","description":"Navigation between views on web with React.JS","archived":false,"fork":false,"pushed_at":"2024-03-29T11:58:45.000Z","size":733,"stargazers_count":9,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T14:00:49.981Z","etag":null,"topics":["react-component"],"latest_commit_sha":null,"homepage":"https://xiaody.github.io/react-navigate","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/xiaody.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-17T08:44:03.000Z","updated_at":"2024-04-25T14:00:49.982Z","dependencies_parsed_at":"2024-03-18T03:27:04.664Z","dependency_job_id":"37696ee7-0acc-46d0-8c47-c62a49155d42","html_url":"https://github.com/xiaody/react-navigate","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.5957446808510638,"last_synced_commit":"0cf8e1b798d8a0feeac4ffc234e63e39ace9894a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaody%2Freact-navigate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaody%2Freact-navigate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaody%2Freact-navigate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaody%2Freact-navigate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaody","download_url":"https://codeload.github.com/xiaody/react-navigate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248917297,"owners_count":21182966,"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":["react-component"],"created_at":"2024-11-16T05:08:59.868Z","updated_at":"2025-04-14T16:35:58.586Z","avatar_url":"https://github.com/xiaody.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![dependencies Status](https://david-dm.org/xiaody/react-navigate/status.svg)](https://david-dm.org/xiaody/react-navigate)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n# react-navigate\n\nNavigation on web for React.JS https://xiaody.github.io/react-navigate\n\n## Installation\n\nTo install the stable version:\n\n```\nnpm install --save react-navigate\n```\n\n## Usage\n\n```jsx\nimport Navigation, {NavLink} from 'react-navigate'\nimport 'react-navigate/src/Navigation.css'\n\nconst views = {\n  home: {\n    name: 'home',\n    title: 'Home page',\n    content () {\n      return (\n        \u003cNavLink to='about'\u003ego to About\u003c/NavLink\u003e\n      )\n    }\n  },\n  about: {\n    name: 'about',\n    title: 'Abount',\n    content: 'Oh!'\n  }\n}\n\n\u003cNavigation\n  viewsMap={views}\n  defaultViewName='home'\n/\u003e\n```\n\n## Options\n\n- props.viewsMap\n- props.defaultViewName\n- props.height\n- props.headerHeight\n- props.backButton\n- props.className\n- props.titleClassName\n- props.bodyClassName\n- props.onWillNav\n- props.onDidNav\n\n## Limitations\n\n- scroll position isn't kept when switching between views, because the DOM is destroyed and re-created\n- no back button title support\n- require modern browsers env\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaody%2Freact-navigate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaody%2Freact-navigate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaody%2Freact-navigate/lists"}