{"id":51402955,"url":"https://github.com/qnrjs42/react-native-nitro-restart","last_synced_at":"2026-07-04T08:32:53.302Z","repository":{"id":317488936,"uuid":"1067671476","full_name":"qnrjs42/react-native-nitro-restart","owner":"qnrjs42","description":"🔥 Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI - restart, exit app","archived":false,"fork":false,"pushed_at":"2025-10-01T08:58:23.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T04:23:25.420Z","etag":null,"topics":["exit","nitro","nitro-modules","react-native","restart"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@qnrjs42/react-native-nitro-restart","language":"C++","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/qnrjs42.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T07:57:41.000Z","updated_at":"2025-10-01T09:04:05.000Z","dependencies_parsed_at":"2025-10-01T08:39:36.218Z","dependency_job_id":null,"html_url":"https://github.com/qnrjs42/react-native-nitro-restart","commit_stats":null,"previous_names":["qnrjs42/react-native-nitro-restart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qnrjs42/react-native-nitro-restart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnrjs42%2Freact-native-nitro-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnrjs42%2Freact-native-nitro-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnrjs42%2Freact-native-nitro-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnrjs42%2Freact-native-nitro-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qnrjs42","download_url":"https://codeload.github.com/qnrjs42/react-native-nitro-restart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnrjs42%2Freact-native-nitro-restart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35115741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["exit","nitro","nitro-modules","react-native","restart"],"created_at":"2026-07-04T08:32:53.062Z","updated_at":"2026-07-04T08:32:53.254Z","avatar_url":"https://github.com/qnrjs42.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-nitro-restart\n\nRestart or exit your React Native app programmatically. Built with [Nitro Modules](https://github.com/mrousavy/nitro).\n\n## Installation\n\n```bash\nnpm install @qnrjs42/react-native-nitro-restart\n# or\nyarn add @qnrjs42/react-native-nitro-restart\n# or\npnpm add @qnrjs42/react-native-nitro-restart\n\npnpm add -D react-native-nitro-modules\n```\n\nThen run pod install for iOS:\n\n```bash\ncd ios \u0026\u0026 pod install\n```\n\n## Usage\n\n```typescript\nimport { restartApp, exitApp } from '@qnrjs42/react-native-nitro-restart';\n\n// Restart the app\nrestartApp();\n\n// Exit the app\nexitApp();\n```\n\nThat's it.\n\n## API\n\n### `restartApp()`\n\nRestarts your React Native app.\n\n- iOS: Uses React Native's built-in reload mechanism\n- Android: Relaunches the main activity with a fresh task\n\n### `exitApp()`\n\nExits the application.\n\n- iOS: Suspends and exits after 0.5s\n- Android: Kills the process cleanly\n\n## Examples\n\n### Restart after language change\n\n```typescript\nimport { restartApp } from '@qnrjs42/react-native-nitro-restart';\nimport AsyncStorage from '@react-native-async-storage/async-storage';\n\nconst changeLanguage = async (lang: string): Promise\u003cvoid\u003e =\u003e {\n  await AsyncStorage.setItem('language', lang);\n  restartApp();\n};\n```\n\n### Exit on logout\n\n```typescript\nimport { exitApp } from '@qnrjs42/react-native-nitro-restart';\n\nconst logout = async (): Promise\u003cvoid\u003e =\u003e {\n  await clearUserData();\n  exitApp();\n};\n```\n\n## Requirements\n\n- React Native \u003e= 0.70\n- iOS \u003e= 13.0\n- Android \u003e= 21\n- react-native-nitro-modules (peer dependency)\n\n## Why Nitro?\n\nNitro provides direct native calls without the React Native bridge, making this library fast and type-safe with zero overhead.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqnrjs42%2Freact-native-nitro-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqnrjs42%2Freact-native-nitro-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqnrjs42%2Freact-native-nitro-restart/lists"}