react-native-nitro-gradients
v0.4.1
Published
High-performance Linear, Radial & Sweep gradient components for React Native with first-class Reanimated support, built on Nitro Modules
Maintainers
Readme
React Native Nitro Gradients
High-performance gradient components for React Native, built with Nitro Modules ⚡
Features
- 🎨 Three gradient types - Linear, Radial, and Sweep gradients
- 🔮 Built-in blur - Gaussian blur on any gradient via the
blurprop - 🎭 First-class Reanimated support - Use shared values as gradient props
Installation
npm install react-native-nitro-gradients
npm install react-native-nitro-modules react-native-reanimated
cd ios && pod installRequires React Native 0.78.0+ with New Architecture enabled
Quick Example
import { LinearGradient } from 'react-native-nitro-gradients';
function App() {
return (
<LinearGradient
colors={['#667eea', '#764ba2']}
start={{ x: 0, y: 0 }}
end={{ x: '100%', y: '100%' }}
style={{ width: 200, height: 200 }}
/>
);
}Documentation
License
MIT
