You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-gradient-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-gradient-wrapper

A flexible React Native gradient wrapper component with animated border and background gradients.

1.0.1
Source
npmnpm
Version published
Weekly downloads
41
-93.31%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-gradient-wrapper

A flexible React Native gradient wrapper component with animated borders and backgrounds.

Features

  • Customizable gradient background
  • Animated rotating gradient borders
  • Supports dark and light mode
  • Press feedback (scale effect)
  • Optional angle-based gradient directions

Installation

npm install react-native-gradient-wrapper react-native-linear-gradient

Usage

import { GradientWrapper } from 'react-native-gradient-wrapper';

<GradientWrapper
  backgroundGradient={['#4c669f', '#3b5998', '#192f6a']}
  angle={45}
  borderWidth={3}
  borderRadius={12}
  onPress={() => console.log('Pressed!')}
  style={[styles.customStyle]}
>
  <Text style={{ color: 'white' }}>Hello Gradient</Text>
</GradientWrapper>

Props

Check src/GradientWrapper.tsx for all available props and defaults.

License

MIT

Keywords

react-native

FAQs

Package last updated on 09 Jul 2025

Did you know?

Socket

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.

Install

Related posts