{"id":4387,"url":"https://github.com/sergeyshpadyrev/react-native-easy-router","last_synced_at":"2026-02-11T08:57:08.098Z","repository":{"id":57336721,"uuid":"133922580","full_name":"sergeyshpadyrev/react-native-easy-router","owner":"sergeyshpadyrev","description":"Screen navigation for React Native","archived":false,"fork":false,"pushed_at":"2025-07-27T11:58:48.000Z","size":360,"stargazers_count":153,"open_issues_count":5,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-09T05:56:45.091Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergeyshpadyrev.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-05-18T07:57:46.000Z","updated_at":"2025-07-27T11:58:51.000Z","dependencies_parsed_at":"2022-09-11T12:21:54.153Z","dependency_job_id":null,"html_url":"https://github.com/sergeyshpadyrev/react-native-easy-router","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sergeyshpadyrev/react-native-easy-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyshpadyrev%2Freact-native-easy-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyshpadyrev%2Freact-native-easy-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyshpadyrev%2Freact-native-easy-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyshpadyrev%2Freact-native-easy-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeyshpadyrev","download_url":"https://codeload.github.com/sergeyshpadyrev/react-native-easy-router/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyshpadyrev%2Freact-native-easy-router/sbom","scorecard":{"id":812277,"data":{"date":"2025-08-11","repo":{"name":"github.com/sergeyshpadyrev/react-native-easy-router","commit":"cd01fb593ce41a3aac88193ff53dd2dde68a6811"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Code-Review","score":0,"reason":"Found 0/30 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":"Maintained","score":0,"reason":"1 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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1"],"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-23T13:27:50.638Z","repository_id":57336721,"created_at":"2025-08-23T13:27:50.638Z","updated_at":"2025-08-23T13:27:50.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29330857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-01-05T20:17:10.326Z","updated_at":"2026-02-11T08:57:08.065Z","avatar_url":"https://github.com/sergeyshpadyrev.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Navigation"],"readme":"# React Native Easy Router\n\n[![npm version](https://img.shields.io/npm/v/react-native-easy-router)](https://badge.fury.io/js/react-native-easy-router)\n[![License: MIT](https://img.shields.io/npm/l/react-native-easy-router)](https://opensource.org/licenses/MIT)\n\n**This project is deprecated. Please don't use it**\n\nReact Native Easy Router is an easy-to-use and performant screen navigation library for React Native\n\n## Installation\n\n```\nnpm install --save react-native-easy-router\n\n## or \n\nyarn add react-native-easy-router\n```\n\n## Usage\n\n```js\nimport { AppRegistry, Text, View } from 'react-native'\nimport { name } from './app.json'\nimport React from 'react'\nimport Navigator from 'react-native-easy-router'\n\nconst First = ({ navigator }) =\u003e (\n    \u003cView\n        style={{ alignItems: 'center', backgroundColor: 'white', flex: 1, flexDirection: 'column', justifyContent: 'center' }}\u003e\n        \u003cText\u003eFirst screen\u003c/Text\u003e\n        \u003cText onPress={() =\u003e navigator.push('Second', { name: 'John' })}\u003eGo forward\u003c/Text\u003e\n    \u003c/View\u003e\n)\n\nconst Second = ({ navigator, name }) =\u003e (\n    \u003cView\n        style={{ alignItems: 'center', backgroundColor: 'pink', flex: 1, flexDirection: 'column', justifyContent: 'center' }}\u003e\n        \u003cText\u003eSecond screen\u003c/Text\u003e\n        \u003cText\u003eHello {name}!\u003c/Text\u003e\n        \u003cText onPress={() =\u003e navigator.pop()}\u003eGo back\u003c/Text\u003e\n    \u003c/View\u003e\n)\n\nconst Application = () =\u003e \u003cNavigator screens={{ First, Second }} initialStack='First' /\u003e\n\nAppRegistry.registerComponent(name, () =\u003e Application)\n\n```\nYou can look at [example](https://github.com/sergeyshpadyrev/react-native-easy-router/tree/master/example) for better understanding\n\n## Documentation\n\n### Navigator properties\n\n#### screens (_required_)\nScreen components keyed by screen name\n\n_Example_:\n```js\n\u003cNavigator screens={{ Welcome: ({navigator}) =\u003e \u003cView\u003e\u003cText\u003eWelcome\u003c/Text\u003e\u003c/View\u003e }}/\u003e\n```\n\n#### initialStack (_required_)\n\nInitial stack can be a first screen name, an array of screen names or even array of screen objects that are are returned from `navigator.stack` or `onStackUpdate`.\n\n_Examples_:\n```js\n\u003cNavigator initialStack='First'/\u003e\n```\nor\n```js\n\u003cNavigator initialStack={['First', 'Second']}/\u003e\n```\nor\n```js\n\u003cNavigator initialStack={[{screen: 'First', props: {name: 'John'}, transitionProps: {animation: 'left'}}]}/\u003e\n```\n\n#### onStackUpdate\nCallback that is called when stack updates\n\n_Example_:\n```js\n\u003cNavigator onStackUpdate={(stack, previousStack) =\u003e console.log(stack, previousStack)}/\u003e\n```\n\n#### backHandler\n_Default value_: `navigator =\u003e navigator.pop()`\nFunction that is called when user presses back button on Android or makes swipe back on IOS.\nIf you return `false` from this function on Android app will be minimized.\n\n_Example_:\n```js\n\u003cNavigator backHandler={navigator =\u003e navigator.pop()}/\u003e\n```\n\n#### navigatorRef\nCallback that is called on navigator initialization with `navigator` reference so you can manage your navigator from the outside.\n\n_Example_:\n```js\n\u003cNavigator navigatorRef={ref =\u003e (this.navigator = ref)}/\u003e\n```\n\n#### animations\nCustom animations that you can use for transitions. Because navigator uses native transitions you can use only 'transform' animations. You can use this animation with any `navigator` method.\n\n_Example_:\n```js\nimport { Dimensions } from 'react-native'\nconst { width: windowWidth, height: windowHeight } = Dimensions.get('window')\n\n\u003cNavigator animations={{\n  bottomRight: {\n      start: { transform: [{ translateX: windowWidth }, { translateY: windowHeight }] },\n      end: { transform: [{ translateX: 0 }, { translateY: 0 }] }\n  }\n}}/\u003e\n```\n\n### Navigator methods\nNavigator passes `navigator` object to every screen. With this object you can manage your screens. Also you can get this object with `navigatorRef`.\n\n#### push(screen, props, transitionProps)\nPushes new screen to the stack. Returns `Promise` that is resolved after transition finishes.\n\n_Example_:\n```js\n  // Stack before: First\n  navigator.push('Second', {email: 'john@gmail.com'}, {animation: 'bottom'})\n  // Stack after: First, Second\n```\n\n#### pop(transitionProps)\nPops last screen from the stack. If `transitionProps` are not provided uses those transitionProps that this screen was pushed with. Returns `Promise` that is resolved after transition finishes.\n\n_Example_:\n```js\n  // Stack before: First, Second\n  navigator.pop({animation: 'left'})\n  // Stack after: First\n```\n\n#### reset(screen, props, transitionProps)\nResets the whole stack to a new screen. Returns `Promise` that is resolved after transition finishes.\n\n_Example_:\n```js\n  // Stack before: First, Second\n  navigator.reset('Third', {name: 'John'}, {animation: 'fade'})\n  // Stack after: Third\n```\n\n#### stack\nReturns the stack\n\n_Example_:\n```js\n  // Stack before: First, Second\n  console.log(navigator.stack) // [{id: 'some-id', screen: 'First', props: {name: 'John'}, transitionProps: {animation: 'left', duration: 500, easing: 'ease-in-out'}}]\n```\n\n#### popTo(screenId, transitionProps)\nPops all screens after the certain screen. If `transitionProps` are not provided uses those transitionProps that this screen was pushed with. Returns `Promise` that is resolved after transition finishes.\n\n_Example_:\n```js\n  // Stack before: First, Second, Third, Fourth\n  navigator.popTo(navigator.stack[1].id)\n  // Stack after: First, Second\n```\n\n#### resetFrom(screenId, screen, props, transitionProps)\nResets the stack after the certain screen. Returns `Promise` that is resolved after transition finishes.\n\n_Example_:\n```js\n  // Stack before: First, Second, Third, Fourth\n  navigator.resetFrom(navigator.stack[1].id, 'Fifth', {age: 18})\n  // Stack after: First, Second, Fifth\n```\n\n#### register/unregisterBackHandler\n\nIf you want to handle Android hardware back press and IOS swipe back on the certain screen you can use this methods. If you return `false` from callback function on Android app will be minimized.\n\n_Example_:\n```js\n  componentDidMount = () =\u003e {\n      this.props.navigator.registerBackHandler(this.onBack)\n  }\n\n  componentWillUnmount = () =\u003e {\n      this.props.navigator.unregisterBackHandler()\n  }\n\n  onBack = navigator =\u003e navigator.pop()\n```\n\n### Transition props\n\n#### animation\n_Default value_: `'right'`\n\nOne of default animations: `right`, `left`, `top`, `bottom`, `none`, `fade`. Or one of custom animations provided to navigator by `animations` property.\n\n#### duration\n_Default value_: `250`\n\nDuration of transition in milliseconds. Not applied to `none` animation.\n\n#### easing\n_Default value_: `'ease-in-out'`\n\nOne of easings from [this table](https://github.com/oblador/react-native-animatable#properties). Not applied to `none` animation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeyshpadyrev%2Freact-native-easy-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeyshpadyrev%2Freact-native-easy-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeyshpadyrev%2Freact-native-easy-router/lists"}