{"id":17859195,"url":"https://github.com/hellpirat/connected-react-navigation","last_synced_at":"2026-03-16T19:31:47.665Z","repository":{"id":57205832,"uuid":"162102945","full_name":"hellpirat/connected-react-navigation","owner":"hellpirat","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-26T06:57:52.000Z","size":80,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T17:48:26.678Z","etag":null,"topics":["react-native","react-navigation"],"latest_commit_sha":null,"homepage":"","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/hellpirat.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":"2018-12-17T09:04:34.000Z","updated_at":"2023-03-04T05:03:07.000Z","dependencies_parsed_at":"2022-09-18T00:50:44.136Z","dependency_job_id":null,"html_url":"https://github.com/hellpirat/connected-react-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/hellpirat%2Fconnected-react-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellpirat%2Fconnected-react-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellpirat%2Fconnected-react-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellpirat%2Fconnected-react-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellpirat","download_url":"https://codeload.github.com/hellpirat/connected-react-navigation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244670053,"owners_count":20490911,"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-native","react-navigation"],"created_at":"2024-10-28T06:03:28.976Z","updated_at":"2026-03-16T19:31:47.621Z","avatar_url":"https://github.com/hellpirat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nTodo\n------\n\n- [ ]  Add reducer\n- [ ]  Implement all navigation methods of react-navigation (Back, setParams, etc)\n- [ ] Add demo example\n\n\nInstallation\n-----------\nUsing [npm](https://www.npmjs.com/):\n\n    $ npm install --save connected-react-navigation\n\nOr [yarn](https://yarnpkg.com/):\n\n    $ yarn add connected-react-navigation\n\nUsage\n-----\n### Step 1\n\n- Use `navigationMiddleware()`  for  dispatching navigations in actions (e.g. to change Screen with `navgiation('/path/to/screen')`.\n\n```js\n// configureStore.js\n...\nimport { createStore, applyMiddleware } from 'redux'\nimport { navigationMiddleware } from 'connected-react-navigation'\nimport createRootReducer from './reducers'\n...\n\nconst middlewares = [navigationMiddleware]\nconst store = createStore(createRootReducer, applyMiddleware(...middlewares))\n```\n\n### Step 2\n\n- Use NavigationService on the top-level (root) navigator of your app\n\n```js\nimport React from 'react'\nimport { Provider } from 'react-redux'\nimport { NavigationService } from 'connected-react-navigation'\n\n...\nconst AppNavigator = createStackNavigator(\n  {\n    Home: HomeScreen,\n    Details: DetailsScreen\n  },\n  {\n    initialRouteName: \"Home\"\n  }\n);\n\nexport class App extends React.Component {\n  render() {\n    return (\n      \u003cProvider store={store}\u003e\n        \u003cAppNavigator ref={navigatorRef =\u003e { \n\t      // use NavgiationService to set top level navgiator ref \n          NavigationService.setTopLevelNavigator(navigatorRef)\n        }}/\u003e\n      \u003c/Provider\u003e\n    )\n  }\n}\n```\nNow, it's ready to work!\n\n```js\n// usage in actions\nimport { navigate } from 'connected-react-navigation'\n\ndispatch(navigate('ScreenName', {params}))\n```\n\nHow this work\n------\n\n- This library implement usage from docs: [Navigating without the navigation prop](https://reactnavigation.org/docs/en/navigating-without-navigation-prop.html)\n\n\nInspired by \n------\n- [connected-react-router](https://github.com/supasate/connected-react-router)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellpirat%2Fconnected-react-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellpirat%2Fconnected-react-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellpirat%2Fconnected-react-navigation/lists"}