{"id":22705271,"url":"https://github.com/hecom-rn/navigation","last_synced_at":"2025-03-29T20:25:14.527Z","repository":{"id":57115516,"uuid":"186608691","full_name":"hecom-rn/Navigation","owner":"hecom-rn","description":"导航相关功能。","archived":false,"fork":false,"pushed_at":"2023-09-08T09:00:36.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-06T22:34:05.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/hecom-rn.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":"2019-05-14T11:30:58.000Z","updated_at":"2023-09-08T09:00:40.000Z","dependencies_parsed_at":"2022-08-22T15:20:17.635Z","dependency_job_id":null,"html_url":"https://github.com/hecom-rn/Navigation","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FNavigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FNavigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FNavigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hecom-rn%2FNavigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hecom-rn","download_url":"https://codeload.github.com/hecom-rn/Navigation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246239213,"owners_count":20745670,"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":[],"created_at":"2024-12-10T09:09:52.221Z","updated_at":"2025-03-29T20:25:14.505Z","avatar_url":"https://github.com/hecom-rn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Navigation\n\n[![npm version](https://img.shields.io/npm/v/@hecom/navigation.svg?style=flat)](https://www.npmjs.com/package/@hecom/navigation)\n[![Build Status](https://travis-ci.org/hecom-rn/navigation.svg?branch=master)](https://travis-ci.org/hecom-rn/navigation)\n\n这是导航模块，使用`react-navigation`作为导航器，这里集成了一些API供用户使用。\n\n**接口**：\n\n* `setSwitchNav: (switchFunc) =\u003e void`：设置切换导航器方法。\n* `get: () =\u003e object`：获取导航器对象。\n* `push: (routeName, param) =\u003e void`：推入页面。\n* `pop: () =\u003e void`：回退到上一页。\n* `popByKey: (key) =\u003e void`：回退到指定`key`页面，这里`key`是导航器内部标识。\n* `popByRoute: (routeName) =\u003e void`：回退到指定`routeName`页面。\n* `popByDelta: (delta) =\u003e void`：回退指定增量的页面，其中`delta`小于0，如果等于-1，则等价于`pop`方法。\n* `reset: (routeName, param) =\u003e void`：重置导航器的路由到指定页面，用于登陆部分和主页面部分的切换。\n* `refresh: (isLoading, loadingStyle) =\u003e void`：等价于在页面中调用`this.apiRefresh`，更新刷新状态。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhecom-rn%2Fnavigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhecom-rn%2Fnavigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhecom-rn%2Fnavigation/lists"}