Gathering detailed insights and metrics for @vietkidz/react-native-image-progress
Gathering detailed insights and metrics for @vietkidz/react-native-image-progress
Gathering detailed insights and metrics for @vietkidz/react-native-image-progress
Gathering detailed insights and metrics for @vietkidz/react-native-image-progress
Progress indicator for networked images in React Native
npm install @vietkidz/react-native-image-progress
Typescript
Module System
Node Version
NPM Version
JavaScript (33.15%)
Java (29.4%)
Objective-C (21.3%)
TypeScript (9.55%)
Ruby (3.75%)
Starlark (2.85%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,727 Stars
96 Commits
177 Forks
30 Watchers
1 Branches
13 Contributors
Updated on Jul 02, 2025
Latest Version
1.1.0
Package Id
@vietkidz/react-native-image-progress@1.1.0
Unpacked Size
11.95 kB
Size
4.19 kB
File Count
4
NPM Version
6.4.1
Node Version
10.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
Progress indicator for networked images in React Native
yarn add react-native-image-progress
Note: Progress indicators has been broken out to a separate component; react-native-progress. To use them, please follow installation instructions for that package.
1import Image from 'react-native-image-progress'; 2import ProgressBar from 'react-native-progress/Bar'; 3<Image 4 source={{ uri: 'http://loremflickr.com/640/480/dog' }} 5 indicator={ProgressBar} 6 style={{ 7 width: 320, 8 height: 240, 9 }}/>
Any Image
property and the following:
Prop | Description | Default |
---|---|---|
imageStyle | Styles applied to the inner image component. | None |
indicator | A component to display progress, will be passed a progress prop with a number between 0 and 1 and indeterminate a boolean wether or not component has started recieveing data. | ActivityIndicator |
indicatorProps | An object of props being passed to the indicator component. To disable indeterminate state, pass {indeterminate: false} . | None |
renderIndicator(progress, indeterminate) | Function to render your own custom indicator, useful for something very simple. If not, consider breaking it out to a separate component and use indicator prop instead. | None |
renderError(error) | Function to render your own custom error message or image fallback. | None |
threshold | Number of milliseconds after mount to wait before displaying the indicator. Basically a workaround for cached images not to flash a spinner. Set to 0 to disable. | 50 |
Note: onLoad*
events are bubbled up, so if you want to do some custom thing when the image is loaded for example.
Check full example in the Example
folder.
1import Image from 'react-native-image-progress'; 2import Progress from 'react-native-progress'; 3<Image 4 source={{ uri: 'http://loremflickr.com/640/480/dog' }} 5 indicator={Progress.Pie} 6 indicatorProps={{ 7 size: 80, 8 borderWidth: 0, 9 color: 'rgba(150, 150, 150, 1)', 10 unfilledColor: 'rgba(200, 200, 200, 0.2)' 11 }} 12 style={{ 13 width: 320, 14 height: 240, 15 }}/>
For some use cases such as better GIF support or more granular control over caching you might want to use a custom image component, to do this simply use the createImageProgress
function:
1import { createImageProgress } from 'react-native-image-progress'; 2import FastImage from 'react-native-fast-image'; 3 4const Image = createImageProgress(FastImage);
NOTE: the alternative image implementation must conform to the core Image
component life cycle props, notably onProgress
, onError
, onLoad
and onLoadStart
.
MIT License. © Joel Arvidsson
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
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
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
52 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