Gathering detailed insights and metrics for @vijaykumartaduri/react-native-animated-switch
Gathering detailed insights and metrics for @vijaykumartaduri/react-native-animated-switch
Gathering detailed insights and metrics for @vijaykumartaduri/react-native-animated-switch
Gathering detailed insights and metrics for @vijaykumartaduri/react-native-animated-switch
react native animated switches to save time
npm install @vijaykumartaduri/react-native-animated-switch
Typescript
Module System
Node Version
NPM Version
JavaScript (66.75%)
Java (17.45%)
Objective-C (10.25%)
Starlark (3.97%)
Ruby (1.58%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
15 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 05, 2021
Latest Version
1.0.1
Package Id
@vijaykumartaduri/react-native-animated-switch@1.0.1
Unpacked Size
173.10 kB
Size
116.52 kB
File Count
4
NPM Version
6.14.8
Node Version
12.19.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
This npm is to help react native developers animating and customizing switchs for both ios and android devices.
| props | default | type | description | reqired |
| -------------- | ------- | --------------------- | --------------------------------- | ------- | ----------------------------- | --- |
| Size | 100 | number | size of switch in pixels | yes |
| value | false | bool | state of switch | yes |
| handleSwitch | null | func | onChange funtion for switch | yes |
| darkModeBg | black | string(hex color/rgb) | nightmode color | no |
| lightModeBg | white | string(hex color/rgb) | day mode color | no |
| borderColor | orange | string(hex color/rgb) | border color of switch | no |
| borderWidth | orange | string(hex color/rgb) | border width of switch | no |
| elevation | 5 | number | to add shadow to switch if needed | no |
| knobColor | orange | string(hex color/rgb) | knob color | yes |
| animationSpeed | fast | fast | medium | slow
| animation speed of transition | no |
1import React, { useState } from "react"; 2import { View } from "react-native"; 3import AnimatedSwitch from "react-native-animated-switch"; 4 5export default function App() { 6 const [isOn, setIsOn] = useState(false); 7 8 const handleSwitch = () => { 9 setIsOn((d) => !d); 10 }; 11 return ( 12 <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> 13 <AnimatedSwitch 14 size={100} 15 value={isOn} 16 handleSwitch={handleSwitch} 17 knobColor={"orange"} 18 borderColor={"orange"} 19 lightModeBg={"white"} 20 darkModeBg={"black"} 21 borderWidth={2} 22 animationSpeed={"fast"} 23 elevation={10} 24 /> 25 </View> 26 ); 27}
No vulnerabilities found.
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More