{"id":29961460,"url":"https://github.com/mirego/react-native-killswitch","last_synced_at":"2025-08-03T23:11:10.668Z","repository":{"id":148385825,"uuid":"617029074","full_name":"mirego/react-native-killswitch","owner":"mirego","description":"The official React Native implementation of Mirego’s killswitch","archived":false,"fork":false,"pushed_at":"2024-07-25T17:33:32.000Z","size":633,"stargazers_count":5,"open_issues_count":9,"forks_count":2,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-07-26T18:39:52.526Z","etag":null,"topics":["killswitch","react-native"],"latest_commit_sha":null,"homepage":"https://open.mirego.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-21T15:03:17.000Z","updated_at":"2025-06-11T17:35:26.000Z","dependencies_parsed_at":"2023-05-19T23:30:41.220Z","dependency_job_id":"6288052e-9811-4bf9-9c56-b51e6df7de24","html_url":"https://github.com/mirego/react-native-killswitch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mirego/react-native-killswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Freact-native-killswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Freact-native-killswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Freact-native-killswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Freact-native-killswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirego","download_url":"https://codeload.github.com/mirego/react-native-killswitch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Freact-native-killswitch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268625009,"owners_count":24280188,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"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":["killswitch","react-native"],"created_at":"2025-08-03T23:10:45.197Z","updated_at":"2025-08-03T23:11:10.652Z","avatar_url":"https://github.com/mirego.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/425073/227933488-ddd066e5-10ca-4946-97ad-60268dfe894c.png\" width=\"700\"\u003e\n\n  \u003cp\u003e\n    \u003cstrong\u003eReact Native Killswitch\u003c/strong\u003e is a library built by \u003ca href=\"https://www.mirego.com\"\u003eMirego\u003c/a\u003e that allows mobile developers to apply\u003cbr /\u003e runtime version-specific behaviors to their React Native application.\n  \u003c/p\u003e\n\n\u003ca href=\"https://github.com/mirego/react-native-killswitch/actions/workflows/ci.yaml\"\u003e\u003cimg src=\"https://github.com/mirego/react-native-killswitch/actions/workflows/ci.yaml/badge.svg?branch=main\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/mirego/react-native-killswitch/tags\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/react-native-killswitch.svg\"\u003e\u003c/a\u003e\u003cbr /\u003e\u003cbr /\u003e\n\n\u003c/div\u003e\n\n## What is Killswitch?\n\n[Killswitch is a clever control panel](https://github.com/mirego/killswitch) built by Mirego that allows mobile developers to apply runtime version-specific behaviors to their iOS or Android application.\n\n## Installation\n\n```sh\nnpm install react-native-killswitch\n```\n\n## Usage\n\nThe bare minimum needed to have a working killswitch is API keys for iOS and Android,\nthe app language and the app version:\n\n```js\nimport { useKillswitch } from 'react-native-killswitch';\n\nconst { isOk } = useKillswitch({\n  iosApiKey: iosApiKey,\n  androidApiKey: androidApiKey,\n  language: myAppLanguage,\n  version: myAppVersion,\n});\n```\n\n### Options\n\n- `iosApiKey`\n  A string taken from your killswitch back-end. The killswitch back-end will use\n  this to send the correct behavior to your iOS users.\n\n- `androidApiKey`\n  A string taken from your killswitch back-end. The killswitch back-end will use\n  this to send the correct behavior to your Android users.\n\n- `language`\n  A language code like \"en\" or \"de\". The killswitch back-end will use this to\n  send a localized message to your users.\n\n- `version`\n  A version number like \"1.0.0\". The killswitch back-end will use this to send\n  the correct behavior to your users.\n\n- `apiHost`\n  The host of the killswitch back-end.\n\n- `useNativeUI`\n  Use native alerts to display messages. Defaults to `true`\n\n- `timeout`\n  A number of milliseconds to wait for the back-end before returning `isOk = true`. Defaults to `2000`\n\n## License\n\nreact-native-killswitch is © 2023 [Mirego](https://www.mirego.com) and may be freely distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). See the [`LICENSE.md`](./LICENSE.md) file.\n\nThe shield logo is based on [this lovely icon by Kimmi Studio](https://thenounproject.com/icon/shield-1055246/), from The Noun Project. Used under a [Creative Commons BY 3.0](http://creativecommons.org/licenses/by/3.0/) license.\n\n## About Mirego\n\n[Mirego](https://www.mirego.com) is a team of passionate people who believe that work is a place where you can innovate and have fun. We’re a team of [talented people](https://life.mirego.com) who imagine and build beautiful Web and mobile applications. We come together to share ideas and [change the world](http://www.mirego.org).\n\nWe also [love open-source software](https://open.mirego.com) and we try to give back to the community as much as we can.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirego%2Freact-native-killswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirego%2Freact-native-killswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirego%2Freact-native-killswitch/lists"}