
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-native-toggle-input
Advanced tools
⭐ Customizable toggle button input for React Native and Expo
Toggle Input Demo
| iOS | Android | Web | Expo |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |
$ npm install react-native-toggle-input
OR
$ yarn add react-native-toggle-input
import Toggle from 'react-native-toggle-input'
const App = () => {
const [toggle, setToggle] = React.useState(false);
return(
<Toggle toggle={toggle} setToggle={setToggle} />
)
};
For Live Demo (Expo Snack)
| Name | Type | Description |
|---|---|---|
| color | String | Color of the toggle switch (Optional) |
| size | Number | Size of the toggle switch (Optional) |
| filled | boolean | If you want to use filled toggle switch set it to true (Optional) |
| circleColor | String | Use the color you want to give to the circle inside swith (Required for filled switch) |
| toggle | boolean | Default value of the toggle switch (Required) |
| setToggle | Function | Pass the function that will be used to set toggle status (Required) |
| onTrue | Function | Pass the function that will executed after the switch has been turned on |
| onFalse | Function | Pass the function that will executed after the switch has been turned off |
import Toggle from 'react-native-toggle-input'
const App = () => {
const [toggle, setToggle] = React.useState(false);
return(
<Toggle
color={"#4C956C"}
size={30}
filled={true}
circleColor={"white"}
toggle={toggle}
setToggle={setToggle}
/>
)
};
Toggle Input Filled Demo
For Live Demo (Expo Snack)
FAQs
⭐ Customizable toggle button input for React Native and Expo
We found that react-native-toggle-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.