
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
react-native-killswitch
Advanced tools
The official React Native implementation of Mirego’s killswitch
React Native Killswitch is a library built by Mirego that allows mobile developers to apply
runtime version-specific behaviors to their React Native application.
Killswitch is a clever control panel built by Mirego that allows mobile developers to apply runtime version-specific behaviors to their iOS or Android application.
npm install react-native-killswitch
The bare minimum needed to have a working killswitch is API keys for iOS and Android, the app language and the app version:
import { useKillswitch } from 'react-native-killswitch';
const { isOk } = useKillswitch({
iosApiKey: iosApiKey,
androidApiKey: androidApiKey,
language: myAppLanguage,
version: myAppVersion,
});
iosApiKey
A string taken from your killswitch back-end. The killswitch back-end will use
this to send the correct behavior to your iOS users.
androidApiKey
A string taken from your killswitch back-end. The killswitch back-end will use
this to send the correct behavior to your Android users.
language
A language code like "en" or "de". The killswitch back-end will use this to
send a localized message to your users.
version
A version number like "1.0.0". The killswitch back-end will use this to send
the correct behavior to your users.
apiHost
The host of the killswitch back-end.
useNativeUI
Use native alerts to display messages. Defaults to true
timeout
A number of milliseconds to wait for the back-end before returning isOk = true. Defaults to 2000
react-native-killswitch is © 2023 Mirego and may be freely distributed under the New BSD license. See the LICENSE.md file.
The shield logo is based on this lovely icon by Kimmi Studio, from The Noun Project. Used under a Creative Commons BY 3.0 license.
Mirego 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 who imagine and build beautiful Web and mobile applications. We come together to share ideas and change the world.
We also love open-source software and we try to give back to the community as much as we can.
FAQs
The official React Native implementation of Mirego’s killswitch
We found that react-native-killswitch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.