
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
rn-fade-wrapper
Advanced tools
rn-fade-wrapper is a simple, highly-performant React Native component that adds smooth, customizable fade gradients to the edges of any content. Perfect for enhancing the user experience in scrollable containers, lists, carousels, modals, or any view with overflowing content.
inward mode to fade towards content instead of outwardyarn add rn-fade-wrapper
or
npm install rn-fade-wrapper
| Platform | Old Arch | Fabric |
|---|---|---|
| iOS | ✅ | ✅ |
| Android | ✅ | ✅ |
import { FadeWrapper } from 'rn-fade-wrapper';
const MyComponent = () => {
return (
<FadeWrapper
color="#ffffff"
size={24}
orientation="vertical"
>
<ScrollView>
<Text>Fading edges example</Text>
</ScrollView>
</FadeWrapper>
);
};
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | "#ffffff" | Fade color (can be any valid color string) |
size | number | 20 | Uniform fade size in points |
style | ViewStyle | { zIndex: 2 } | Custom style applied to the wrapper view |
inward | boolean | false | Makes the gradient fade inward (towards the center) instead of outward |
sizes | { top?: number, right?: number, bottom?: number, left?: number } | undefined | Specific fade sizes per edge (overrides size and orientation) |
orientation | 'horizontal' | 'vertical' | 'vertical' | Preset for direction: applies size to top/bottom or left/right |
children | React.ReactNode | — | Your wrapped content |
Note:
sizestakes precedence over bothsizeandorientation.
<FadeWrapper
color="black"
inward
sizes={{ top: 20, bottom: 30 }}
>
<FlatList ... />
</FadeWrapper>
<FadeWrapper
color="rgba(0,0,0,0.5)"
size={16}
orientation="horizontal"
>
<ScrollView horizontal>
{/* content */}
</ScrollView>
</FadeWrapper>
CAGradientLayer inside native UIViewLinearGradient on custom ViewGroup using CanvasUse rn-fade-wrapper to subtly indicate content overflow — especially in carousels, scroll views, and horizontal sliders. Gradients help hint to the user that there's more to scroll, improving engagement.
MIT — free to use, improve and contribute 🎉
FAQs
🔥 Fade gradient wrapper for React Native scrollable views and overlays on iOS and Android.
We found that rn-fade-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than 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 researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.