
Security News
AI Slop Is Polluting Bug Bounty Platforms with Fake Vulnerability Reports
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
react-native-js-shimmer-placeholder
Advanced tools
Shimmering effect using react-native-reanimated, react-native-linear-gradient and react-native-masked-view
npm install react-native-js-shimmer-placeholder
To use shimmering effect for View
import { ViewPlaceholder } from "react-native-js-shimmer-placeholder";
<ViewPlaceholder show={true} width={100}>
<View style={{ height: 100, width: 100, backgroundColor: "blue"}} />
</ViewPlaceholder>;
To use shimmering effect for Text
import { TextPlaceholder } from "react-native-js-shimmer-placeholder";
<TextPlaceholder show={true} textStyle={{marginStart: 10, fontWeight: 'bold',}} maskStyle={{height: 30, flex: 0}}>
{`${item.first_name} ${item.last_name}`}
</TextPlaceholder>;
Prop | Description | Default |
---|---|---|
baseColor | The base color of the linear gradient | white |
canTriggerAnimationCompletion | Conditional trigger of Animation completion (useful for lists) | true |
end | Same as the prop used in Linear Gradient | { x: 1, y:0 } |
gradientStyle | Style for the Linear Gradient itself | {} |
highlightColor | The highlight color for the shimmer | rgba(211,211,211,0.5) |
locations | Same as the prop used in Linear Gradient | [0, 0.5, 1] |
onAnimationComplete | Triggers on animation completion | emptyFn |
show | Whether to show the shimmer effect | true |
start | Same as the prop used in Linear Gradient | { x: 0, y:0 } |
totalDuration | Duration of the single shimmer cycle | 1500 |
Prop | Description | Default |
---|---|---|
children | Child to render inside placeholder | null |
childrenWrapperStyle | Wrapper style for the children | {} |
containerStyle | Container style for shimmer which wraps the Linear Gradient and the children you pass | {} |
gradientContainerStyle | Container style for gradient | {} |
height | Height of the shimmer | 100% |
width | Width of the Shimmer | Required |
Prop | Description | Default |
---|---|---|
children | Text to be shimmered | undefined |
maskStyle | Style for the MaskedView | { flex:1 } |
maskedChildrenStyle | Children of MaskedView which gives the actual color for the Text | { flex:1, backgroundColor:"#5F717B" } |
textStyle | Style for Text to be rendered | {} |
FAQs
A Shimmer using React Native Reanimated
The npm package react-native-js-shimmer-placeholder receives a total of 9 weekly downloads. As such, react-native-js-shimmer-placeholder popularity was classified as not popular.
We found that react-native-js-shimmer-placeholder 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.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
Research
Security News
The Socket Research team investigates a malicious Python package disguised as a Discord error logger that executes remote commands and exfiltrates data via a covert C2 channel.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.