{"id":16198726,"url":"https://github.com/ali322/rn-navigation","last_synced_at":"2025-08-13T20:34:10.308Z","repository":{"id":66138188,"uuid":"74341873","full_name":"ali322/rn-navigation","owner":"ali322","description":"yet another router for react-native","archived":false,"fork":false,"pushed_at":"2016-12-27T13:15:22.000Z","size":612,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T06:24:39.550Z","etag":null,"topics":["react-native","redux"],"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/ali322.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-21T08:24:01.000Z","updated_at":"2023-02-19T14:34:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"15c33dd0-7f70-4d33-a241-a7800d364044","html_url":"https://github.com/ali322/rn-navigation","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"8f279fd2e4d32e64eebc421ec58ef827112309a0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ali322/rn-navigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Frn-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Frn-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Frn-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Frn-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali322","download_url":"https://codeload.github.com/ali322/rn-navigation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Frn-navigation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305842,"owners_count":24562109,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":["react-native","redux"],"created_at":"2024-10-10T09:14:43.813Z","updated_at":"2025-08-13T20:34:09.028Z","avatar_url":"https://github.com/ali322.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"RN-Navigation [![CircleCI](https://circleci.com/gh/ali322/rn-navigation.svg?style=svg)](https://circleci.com/gh/ali322/rn-navigation) [![npm version](https://badge.fury.io/js/rn-navigation.svg)](https://badge.fury.io/js/rn-navigation)\n===\n[![NPM](https://nodei.co/npm/rn-navigation.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/rn-navigation/)\n\ninspired by [react-native-router-flux](https://github.com/aksonov/react-native-router-flux),yet another router for react-native,built on new NavigationExperimental API,easy to migrate with redux and other flux-like framework\n\nInstall\n===\n\n```javascript\nnpm install rn-navigation --save\n```\n\nthen you need link the dependenices\n\n```javascript\nreact-native link react-native-vector-icons\n```\n\nUseage\n===\n\nin your entry point (etc: index.ios.js),define your own routes by Scene component,and wrap all of routes with Router component\n\n```javascript\nclass Index extends React.Component{\n    render(){\n        const sceneProps = {\n            //scene props what you like to pass into scene components\n        }\n        return (\n            \u003cView style={{flex:1}}\u003e\n                \u003cRouter initialSceneKey=\"tabs\" sceneProps={sceneProps} \n                navigationState={this.props.navigationState} dispatch={this.props.dispatch}\u003e\n                    \u003cScene tabbar={true} key=\"tabs\" name=\"tabs\"\u003e\n                        \u003cScene key=\"tab_1\" name=\"tab_1\" title=\"topic\" iconName=\"coffee\"\u003e\n                            \u003cScene key=\"topics\" component={Topics}/\u003e\n                            \u003cScenen key=\"topic\" component={Topic}/\u003e\n                        \u003c/Scene\u003e\n                        \u003cScene key=\"tab_2\" name=\"tab_2\" title=\"collect\" iconName=\"bookmark\"\u003e\n                            \u003cScenen key=\"collect\" component={Collect}/\u003e\n                        \u003c/Scene\u003e\n                        \u003cScene key=\"tab_3\" name=\"tab_3\" title=\"message\" iconName=\"envelope\"\u003e\n                            \u003cScenen key=\"message\" component={Message}/\u003e\n                        \u003c/Scene\u003e\n                        \u003cScene key=\"tab_4\" name=\"tab_4\" title=\"about\" iconName=\"user\"\u003e\n                            \u003cScenen key=\"about\" component={About}/\u003e\n                        \u003c/Scene\u003e\n                    \u003c/Scene\u003e\n                \u003c/Router\u003e\n            \u003c/View\u003e\n        )\n    }\n}\n```\n\nthen create your own redux store\n\n```javascript\nimport {routerReducer} from \"rn-navigation\"\n\nconst rootReducer = combineReducers({routerReducer})\n\nconnect(state=\u003e({\n    navigationState:state.navigationState\n}))(Index)\n```\nin scene component you can navigate to next,or go back to prev\n\n```javascript\nthis.props.navigationActions.pushScene(\"topic\")\nthis.props.navigationActions.popScene()\n```\n\njust simple and easy,more instructions refer to [API](./API.md),or [中文文档](./API_zh.md)\n\n## Todo\n\n- fix some unknow bugs\n- add more api documents\n\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali322%2Frn-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali322%2Frn-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali322%2Frn-navigation/lists"}