Gathering detailed insights and metrics for react-native-spinkit-button
Gathering detailed insights and metrics for react-native-spinkit-button
Gathering detailed insights and metrics for react-native-spinkit-button
Gathering detailed insights and metrics for react-native-spinkit-button
React-Native Button, with the collection of animated loading indicators (react-native-spinkit)
npm install react-native-spinkit-button
Typescript
Module System
Node Version
NPM Version
JavaScript (51.85%)
Java (24.82%)
Objective-C (17.99%)
Ruby (2.93%)
Starlark (2.41%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
10 Commits
1 Watchers
2 Branches
1 Contributors
Updated on May 26, 2022
Latest Version
1.2.1
Package Id
react-native-spinkit-button@1.2.1
Unpacked Size
12.57 kB
Size
3.80 kB
File Count
7
NPM Version
8.1.0
Node Version
16.13.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
2
React-Native
Button
, with collection of animated loading indicators (react-native-spinkit)
.
1npm i react-native-spinkit react-native-spinkit-button react-native-vector-icons
1yarn add react-native-spinkit react-native-spinkit-button react-native-vector-icons
react-native-spinkit react-native-vector-icons
1import React, {useState} from 'react'; 2import SpinkitButton from 'react-native-spinkit-button'; 3 4const App = () => { 5 const [onlyTextLoading, setOnlyTextLoading] = useState(false); 6 7 const onTextClick = () => { 8 setOnlyTextLoading(true); 9 setTimeout(() => { 10 setOnlyTextLoading(false); 11 }, 3000); 12 }; 13 14 return ( 15 <SpinkitButton 16 width={270} 17 height={40} 18 borderRadius={11} 19 onPress={onTextClick} 20 buttonStyle={styles.button} 21 label={'ONLY TEXT'} 22 labelStyle={styles.textButtonStyle} 23 loading={onlyTextLoading} 24 size={15} 25 type={'CircleFlip'} 26 color={'#FFFFFF'} 27 animationDuration={300} 28 /> 29 ); 30};
1import React, {useState} from 'react'; 2import SpinkitButton from 'react-native-spinkit-button'; 3import Icon from 'react-native-vector-icons/dist/FontAwesome'; 4 5const App = () => { 6 const [iconAndTextLoading, setIconAndTextLoading] = useState(false); 7 8 const iconWithTextClick = () => { 9 setIconAndTextLoading(true); 10 setTimeout(() => { 11 setIconAndTextLoading(false); 12 }, 3000); 13 }; 14 15 return ( 16 <SpinkitButton 17 width={270} 18 height={40} 19 borderRadius={11} 20 onPress={iconWithTextClick} 21 buttonStyle={styles.button} 22 label={'TEXT with ICON'} 23 labelStyle={styles.textButtonStyle} 24 loading={iconAndTextLoading} 25 labelAndTextContainer={styles.labelAndTextContainer} 26 iconComponent={ 27 <Icon name="rocket" size={20} color="#FFFFFF" style={styles.icon} /> 28 } 29 size={15} 30 type={'Bounce'} 31 color={'#FFFFFF'} 32 animationDuration={300} 33 /> 34 ); 35};
1import React, {useState} from 'react'; 2import SpinkitButton from 'react-native-spinkit-button'; 3import Icon from 'react-native-vector-icons/dist/FontAwesome'; 4 5const App = () => { 6 const [onlyIconLoading, setOnlyIconLoading] = useState(false); 7 8 const onIconClick = () => { 9 setOnlyIconLoading(true); 10 setTimeout(() => { 11 setOnlyIconLoading(false); 12 }, 3000); 13 }; 14 15 return ( 16 <SpinkitButton 17 width={270} 18 height={40} 19 borderRadius={11} 20 onPress={onIconClick} 21 buttonStyle={styles.button} 22 labelStyle={styles.textButtonStyle} 23 loading={onlyIconLoading} 24 labelAndTextContainer={styles.labelAndTextContainer} 25 iconComponent={ 26 <Icon name="rocket" size={20} color="#FFFFFF" style={styles.icon} /> 27 } 28 size={15} 29 type={'Wave'} 30 color={'#FFFFFF'} 31 animationDuration={300} 32 /> 33 ); 34};
A full working example project is here react-native-spinkit-button/example
Prop | Default | Type | Description |
---|---|---|---|
width | 250 | number | width of button |
height | 40 | number | height of button |
borderRadius | 10 | number | border radius of button |
buttonStyle | {} | style | style of button |
onPress | () => {} | function | the function to execute on tap |
disabled | false | bool | to disable the button |
labelAndTextContainer | {} | style | label container styles |
label | null | string | label of button |
labelStyle | {} | style | style of label |
iconComponent | null | elementType | Icon or Image component |
loading | false | bool | bool value to render spinkit indicator or button |
size | 10 | number | size of spinkit indicator |
type | CircleFlip | oneOf | type of spinkit indicator |
color | #FFFFFF | string | color of spinkit indicator |
animationDuration | 400 | number | duration of animation |
react-native-spinkit react-native-vector-icons
This project is licensed under the MIT License - (c) 2021 Muhammad Taimoor Sultani, MIT license.
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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