Gathering detailed insights and metrics for react-native-loading-spinner-overlay-dxc
Gathering detailed insights and metrics for react-native-loading-spinner-overlay-dxc
Gathering detailed insights and metrics for react-native-loading-spinner-overlay-dxc
Gathering detailed insights and metrics for react-native-loading-spinner-overlay-dxc
npm install react-native-loading-spinner-overlay-dxc
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Commits
1 Branches
2 Contributors
Updated on Mar 16, 2018
Latest Version
0.5.2
Package Id
react-native-loading-spinner-overlay-dxc@0.5.2
Unpacked Size
11.35 kB
Size
4.31 kB
File Count
5
NPM Version
5.3.0
Node Version
7.10.1
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
tldr; The only pure React Native Native iOS and Android loading spinner (progress bar indicator) overlay
For React Native version >=0.28.x
use version >=0.3.x
(0.2.x
is broken, sorry!):
1npm install --save react-native-loading-spinner-overlay@latest
For React Native version <=0.27.x
use version 0.1.x
:
1npm install --save react-native-loading-spinner-overlay@0.1.x
This usage shows the default styles and properties.
Property | Type | Default | Description |
---|---|---|---|
cancelable | boolean | false | Android: If set to false, it will prevent spinner from hiding when pressing the hardware back button. If set to true, it will allow spinner to hide if the hardware back button is pressed. |
color | string | white | Changes the spinner's color (example values are red , #ff0000 , etc). For adjusting the contrast see overlayColor prop below. |
animation | none , slide , fade | none | Changes animation on show and hide spinner's view. |
overlayColor | string | rgba(0, 0, 0, 0.25) | Changes the color of the overlay. |
size | small , normal , large | large | Sets the spinner's size. No other cross-platform sizes are supported right now. |
textContent | string | "" | Optional text field to be shown. |
textStyle | style | - | The style to be applied to the <Text> that displays the textContent . |
visible | boolean | false | Controls the visibility of the spinner. |
You can also add a child view to act as a custom activity indicator.
1import React, { View, Text } from 'react-native'; 2 3import Spinner from 'react-native-loading-spinner-overlay'; 4 5class MyComponent extends React.Component { 6 7 constructor(props) { 8 super(); 9 this.state = { 10 visible: false 11 }; 12 } 13 14 /* eslint react/no-did-mount-set-state: 0 */ 15 componentDidMount() { 16 setInterval(() => { 17 this.setState({ 18 visible: !this.state.visible 19 }); 20 }, 3000); 21 } 22 23 render() { 24 return ( 25 <View style={{ flex: 1 }}> 26 <Spinner visible={this.state.visible} textContent={"Loading..."} textStyle={{color: '#FFF'}} /> 27 </View> 28 ); 29 } 30}
To use a custom activity indicator just pass it as child of the component:
1<Spinner visible={this.state.visible}> 2 <Text>This is my custom spinner</Text> 3</Spinner>
For
>= 0.3.x
:
ActivityIndicator
now!For
0.2.x
:
>= 0.3.x
please!For
<= 0.1.x
:
Modal
(docs/source) to overlay and ActivityIndicatorIOS
(docs) for the loading spinnerPortal
(source) to overlay and ActivityIndicator
(docs) for the loading spinnerFor
>= 0.3.x
:
ActivityIndicator
now!For
0.2.x
:
For
<= 0.1.x
:
Portal
, see this issue on GitHub; once those are in, then we can add a link to the source in PlatformsProgressBarAndroid
will not have support for a StyleAttr
value of "Normal"
- therefore we only support a size
prop of "small"
or "large"
right now (defaulting to "large"
) - in other words, we can only support Android's inverse styling with a styleAttr
of "Inverse"
, "SmallInverse"
(for a size
prop of "small"
), and "LargeInverse"
(for a size
prop of "large
") (since there is no "Normal"
support right now for "size"
of "normal"
).npm install
src
directorynpm test
when you're doneNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/2 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
26 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