Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-load-shimmer
Advanced tools
Add a simple shimmer effect to any UI loading state. No native dependencies!
yarn add react-native-load-shimmer
Prop | Description | Required |
---|---|---|
children | React native elements that you want to apply a shimmer to | Y |
isShimmering | Boolean - Dictates whether shimmer effect is occurring | Y |
containerStyle | Style to apply to wrapper on shimmer component | N |
shimmerConfig | Config object for shimmer effect | Y |
Key | Description | Required | Default |
---|---|---|---|
skewX | Slant applied to shimmer | N | "-30deg" |
gradientWidth | Width of each gradient | N | 20 |
startX | Starting position for shimmer effect | N | Variable |
duration | Duration in ms of 1 loop of shimmer effect | N | 1500 |
useNativeDriver | Uses the native driver when true. | N | True |
shimmerColor | Color of shimmer effect. Should match background of screen. | Y | |
toValue | Ending position of shimmer effect | N | Variable |
opacityArr | Array of opacity values to create shimmer | N | [.05, .15, .25, .3, .35, .3, .25, .15, .05] |
/**
* @flow strict-local
*/
import React from 'react';
import Shimmer from 'react-native-simple-shimmer';
export default function LoadingWithShimmer({children}) {
const shimmerConfig = {
startingX: -200,
useNativeDriver: true,
shimmerColor: '#FFF',
toValue: Dimensions.get('window').width + 100,
};
return (
<SafeAreaView>
<ScrollView
style={styles.scrollView}>
<Shimmer shimmerConfig={shimmerConfig} containerStyle={containerStyle} isShimmering={true}>
{children}
</Shimmer>
</ScrollView>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
scrollView: {
backgroundColor: 'white',
},
});
MIT License. react-native-load-shimmer is under MIT license. © Kevin DeArmond 2020 - present
FAQs
Simple loading shimmer for React Native
The npm package react-native-load-shimmer receives a total of 28 weekly downloads. As such, react-native-load-shimmer popularity was classified as not popular.
We found that react-native-load-shimmer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.