{"id":29023021,"url":"https://github.com/bamlab/react-navigation-live-reload-on-screen","last_synced_at":"2025-06-26T03:05:01.018Z","repository":{"id":57341779,"uuid":"393057377","full_name":"bamlab/react-navigation-live-reload-on-screen","owner":"bamlab","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-21T09:49:11.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-23T22:42:47.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/bamlab.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}},"created_at":"2021-08-05T13:43:28.000Z","updated_at":"2025-03-21T09:15:23.000Z","dependencies_parsed_at":"2022-09-16T03:01:14.711Z","dependency_job_id":null,"html_url":"https://github.com/bamlab/react-navigation-live-reload-on-screen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bamlab/react-navigation-live-reload-on-screen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-navigation-live-reload-on-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-navigation-live-reload-on-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-navigation-live-reload-on-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-navigation-live-reload-on-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bamlab","download_url":"https://codeload.github.com/bamlab/react-navigation-live-reload-on-screen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-navigation-live-reload-on-screen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990349,"owners_count":23241188,"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":"2025-06-26T03:05:00.504Z","updated_at":"2025-06-26T03:05:01.010Z","avatar_url":"https://github.com/bamlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-navigation-live-reload-on-screen\n\nBased [on this](https://reactnavigation.org/docs/state-persistence), stay on current screen when you live reload.\nThis works by storing the navigation state in the async storage and getting it back when reloading.\n\n## Install\n\n```sh\nyarn add @bam.tech/react-navigation-live-reload-on-screen\n```\n\n## Usage\n\n```tsx\nimport { NavigationContainer as ReactNavigationContainer } from \"@react-navigation/native\";\nimport { enableLiveReloadOnScreen } from \"@bam.tech/react-navigation-live-reload-on-screen\";\n\nconst ENABLE_LIVE_RELOAD = __DEV__;\nconst ENABLE_LIVE_RELOAD_LOGS = true;\nconst NavigationContainer = enableLiveReloadOnScreen(ENABLE_LIVE_RELOAD, ENABLE_LIVE_RELOAD_LOGS)(\n  ReactNavigationContainer\n);\n\n// Use NavigationContainer instead of the one from react-navigation\n```\n\n### Clearing navigation state\n\nIf you need to clear the persisted navigation state at some point:\n\n```tsx\nimport { clearNavigationState } from \"@bam.tech/react-navigation-live-reload-on-screen\";\n\nclearNavigationState();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Freact-navigation-live-reload-on-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamlab%2Freact-navigation-live-reload-on-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Freact-navigation-live-reload-on-screen/lists"}