Gathering detailed insights and metrics for react-native-images-loaded
Gathering detailed insights and metrics for react-native-images-loaded
Gathering detailed insights and metrics for react-native-images-loaded
Gathering detailed insights and metrics for react-native-images-loaded
npm install react-native-images-loaded
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
5 Commits
1 Forks
1 Watchers
17 Branches
1 Contributors
Updated on Jan 27, 2021
Latest Version
1.0.2
Package Id
react-native-images-loaded@1.0.2
Unpacked Size
6.50 kB
Size
2.50 kB
File Count
8
NPM Version
6.14.4
Node Version
10.20.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
An imagesloaded wrapper with callback for react-native
I needed a clean way to wait for all child Image components to prefetch before fading in the parent component. I could manually prefetch all images in the parent component, but id rather have something that dynamically registers all images inside the context and waits for them to be loaded before triggering the callback provided to the context.
yarn add react-native-images-loaded
Simple example, you would probably use an animated value and fade in the wrapper once the images are loaded. Works for images in any depth.
1import React, {useState} from 'react'; 2import {View, StyleSheet} from 'react-native'; 3import { 4 ImagesLoadedWrapper, 5 Image 6} from 'react-native-images-loaded'; 7 8const styles = StyleSheet.create({ 9 hidden: { 10 opacity: 0, 11 overflow: 'hidden' 12 }, 13 image: { 14 width: 500, 15 height: 500 16 } 17}); 18 19const Foo = () => { 20 const [imagesLoaded, setImagesLoaded] = useState(false); 21 22 return ( 23 <ImagesLoadedWrapper 24 onImagesLoaded={() => setImagesLoaded(true)} 25 > 26 <View style={!imagesLoaded && styles.hidden}> 27 <Image 28 source={{uri: 'https://placekitten.com/500/500'}} 29 style={styles.image} 30 /> 31 32 <Image 33 source={{uri: 'https://placekitten.com/600/600'}} 34 style={styles.image} 35 /> 36 {/* 37 <ComponentWithMoreImages/> 38 <ComponentWithComponentsThatHasImages/> 39 */} 40 </View> 41 </ImagesLoadedWrapper> 42 ); 43 44}; 45 46export default Foo;
ImagesLoadedWrapper
is found then images work as normally.Image
component extends the default RN Image component and passes on any props.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
56 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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