{"id":41012958,"url":"https://github.com/sylvainlg/feature-react-navigation","last_synced_at":"2026-01-22T09:10:48.940Z","repository":{"id":38173970,"uuid":"229351667","full_name":"sylvainlg/feature-react-navigation","owner":"sylvainlg","description":"Feature based navigation for react-native (using react-navigation)","archived":false,"fork":false,"pushed_at":"2023-01-08T09:46:17.000Z","size":3247,"stargazers_count":3,"open_issues_count":33,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T09:09:03.658Z","etag":null,"topics":["feature","feature-u","navigation","react","react-native","react-navigation","router","routing"],"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/sylvainlg.png","metadata":{"files":{"readme":"README.adoc","changelog":"CHANGELOG.md","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":"2019-12-20T23:37:41.000Z","updated_at":"2022-10-18T17:49:16.000Z","dependencies_parsed_at":"2023-02-08T05:25:26.913Z","dependency_job_id":null,"html_url":"https://github.com/sylvainlg/feature-react-navigation","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sylvainlg/feature-react-navigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylvainlg%2Ffeature-react-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylvainlg%2Ffeature-react-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylvainlg%2Ffeature-react-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylvainlg%2Ffeature-react-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sylvainlg","download_url":"https://codeload.github.com/sylvainlg/feature-react-navigation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylvainlg%2Ffeature-react-navigation/sbom","scorecard":{"id":862822,"data":{"date":"2025-08-11","repo":{"name":"github.com/sylvainlg/feature-react-navigation","commit":"1c87e1a2a3aeef9a4c0c426618fc77574d0b1890"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/8 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Warn: no topLevel permission defined: .github/workflows/reviewdog.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sylvainlg/feature-react-navigation/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sylvainlg/feature-react-navigation/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/sylvainlg/feature-react-navigation/reviewdog.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/sylvainlg/feature-react-navigation/reviewdog.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"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 25 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"}},{"name":"Vulnerabilities","score":0,"reason":"88 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-f5x2-xv93-4p23","Warn: Project is vulnerable to: GHSA-gmpm-xp43-f7g6","Warn: Project is vulnerable to: GHSA-pf27-929j-9pmm","Warn: Project is vulnerable to: GHSA-327c-qx3v-h673","Warn: Project is vulnerable to: GHSA-x4cf-6jr3-3qvp","Warn: Project is vulnerable to: GHSA-mph8-6787-r8hw","Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-7f53-fmmv-mfjv","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T01:50:48.897Z","repository_id":38173970,"created_at":"2025-08-24T01:50:48.897Z","updated_at":"2025-08-24T01:50:48.897Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28660048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["feature","feature-u","navigation","react","react-native","react-navigation","router","routing"],"created_at":"2026-01-22T09:10:48.251Z","updated_at":"2026-01-22T09:10:48.934Z","avatar_url":"https://github.com/sylvainlg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= feature-react-navigation - _Feature based navigation using react-navigation_\n\n*feature-react-navigation* is a https://feature-u.js.org/[feature-u] module which provide a routing aspect into your features using https://reactnavigation.org/[react-navigation].\n\nThe module aim to build a single navigation tree with routes provided by each feature registred in your feature-u instance. Your features don't have the knowledge off the final tree, they only have to expose their routes throught the `route` aspect.\n\nimage:https://travis-ci.org/sylvainlg/feature-react-navigation.svg?branch=master[title=\"TravisCI Status\", link=\"https://travis-ci.com/sylvainlg/feature-react-navigation\"]\nimage:https://api.codacy.com/project/badge/Grade/508c8d7d913a4c3ca61b7428dea59bdb[title=\"Codacy Grade Badge\",link=\"https://www.codacy.com/manual/sylvainlg/feature-react-navigation?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=sylvainlg/feature-react-navigation\u0026utm_campaign=Badge_Grade\"]\nimage:https://api.codacy.com/project/badge/Coverage/508c8d7d913a4c3ca61b7428dea59bdb[title=\"Codacy Coverage Badge\",link=\"https://www.codacy.com/manual/sylvainlg/feature-react-navigation?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=sylvainlg/feature-react-navigation\u0026utm_campaign=Badge_Coverage\"]\nimage:https://img.shields.io/npm/v/feature-react-navigation.svg[title=\"NPM Version Badge\",link=\"https://www.npmjs.com/package/feature-react-navigation\"]\n\n== Getting started\n\n $ yarn add feature-react-navigation\n\nAdditionnally, you may need peerDependencies installed :\n\n[source,bash]\n----\n$ yarn add feature-u\n$ yarn add @react-navigation/core\n$ yarn add @react-navigation/native\nor\n$ yarn add @react-navigation/web\n----\n\n== Usage\n\n=== 1 - Register the aspect\n\nWithin your mainline, register the feature-react-navigation `routeAspect` to feature-u's https://feature-u.js.org/cur/api.html#launchApp[launchApp()] method.\n\n*Please note* that routeAspect has 1 required named parameter (see below for details) :\n\n- \u003c\u003cNavigator configuration,`Navigator`\u003e\u003e\n\n==== App.js\n\n[source,js]\n----\nimport { launchApp }          from 'feature-u';\nimport { createRouteAspect }  from 'feature-react-navigation';\nimport { createAppContainer } from '@react-navigation/native';\nimport features               from './feature';\n\n// configure Aspects (as needed)\nconst routeAspect = createRouteAspect({\n  Navigator\n});\n\nexport default launchApp({\n\n  aspects: [\n    routeAspect,\n    ... other Aspects here\n  ],\n\n  features,\n\n  registerRootAppElm(rootAppElm) {\n      AppRegistry.registerComponent(appName, () =\u003e () =\u003e rootAppElm); // convert rootAppElm to a React Component\n    },\n});\n----\n\n\n\n==== Navigator object configuration\n\nThis is the classic \n\nWith this configuration, the module stay a pure `react` module. Any adherence with `react-native` is no longer required.\n\n==== navigationPattern configuration\n\nIn mobile application, the navigation stack could be a lot more complex than on the web and `react-navigation` respond to that complexity by providing some different navigators (https://reactnavigation.org/docs/en/stack-navigator.html[stack], https://reactnavigation.org/docs/en/switch-navigator.html[switch], https://reactnavigation.org/docs/en/bottom-tab-navigator.html[tab], https://reactnavigation.org/docs/en/drawer-navigator.html[drawer]). The `navigationPattern` configuration is the way to deal with it in `feature-react-navigation`.\n\nBeside, features don't have to know how the navigation is organize in the final application. Even, you may want to re-use some feature across applications whithout inheriting the same navigation stack. With this way of building navigation stack, your application have total control about it.\n\n- `navigator`: create[Navigator] function\n- `navigationOptions`: options taken by the navigator function\n- `routes`: list of named route from features\n- `featureRoutes`: list of feature names, expended to each routes starting by the feature name - see \u003c\u003cPromote routes\u003e\u003e.\n\n[source,javascript]\n----\nconst Navigator = ({ routes }) =\u003e {\n  return (\n    \u003cNavigatorContainer\u003e\n      \u003cStack.Navigator\u003e\n        {routes.map(route =\u003e \u003cStack.Screen name={route.screen.name} component={route.screen} /\u003e)}\n      \u003c/Stack.Navigator\u003e\n    \u003c/NavigatorContainer\u003e\n  )\n}\n----\n\n### 2 - Promote routes\n\nWithin each feature that promotes UI Screens, simply register the feature's route through the `Feature.route` property _(using *feature-u*'s [`createFeature()`])_.\n\nIn the sample, `login` feature promotes somes routes in a `react-navigation` [compatible format](https://reactnavigation.org/docs/en/hello-react-navigation.html). It's *strongly encouraged* to prefix all route names by the feature name in order to use `\u003c\u003cfeatureRoutes\u003e\u003e` pattern configuration.\n\n.src/feature/login/index.js\n[source,javascript]\n----\nimport React            from 'react';\nimport {createFeature}  from 'feature-u';\n\nimport fname            from './feature-name'\nimport {LoginScreen,\n    LoginSuccessScreen} from './screens';\n\nexport default createFeature({\n\n  name:  'login',\n\n  route: {\n    routes: {\n      [`${fname}.LOGIN`]: {\n        screen: LoginScreen,\n      },\n      [`${fname}.SUCCESS`]: {\n        screen: LoginSuccessScreen,\n      },\n    },\n  },\n\n  ... snip snip\n});\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsylvainlg%2Ffeature-react-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsylvainlg%2Ffeature-react-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsylvainlg%2Ffeature-react-navigation/lists"}