0.0.3 • Published 6 years ago

react-native-gradient-blur-view v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

React Native: Native Gradient Blur View

This library is a thin React Native bridge around iOS: shashankpali/EZYGradientView

  • iOS: It is a different and unique take on creating gradients and gradients with blur on the iOS platform. The default CAGradientLayer implementation works just fine, but is confusing and gives different results than expected.

Getting started

  • npm install react-native-gradient-blur-view --save
  • react-native link react-native-gradient-blur-view

Usage

import RNGradientBlurView from 'react-native-gradient-blur-view';
<RNGradientBlurView style={styles.gradientView} />

Props

PropTypeDefaultNote
firstColorstringPrimary Color
secondColor: iOSstringSecondary Color
angle: iOSnumberAngle of Color Division
colorRatio: iOSnumberColor Ratio
fadeIntensitynumberFade Intensity Value
blurOpacitynumberBlur Opacity Value

TO-DO

  • Android Support

Credits

Contribution

Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

License

This library is provided under the MIT License.

RNGradientBlurView @ Pranav Raj Singh Chauhan

Other Contributions

Screenshots

Screenshots Screenshots

npm.io

npm.io

npm.io

Screenshots

npm.io

npm.io

npm.io

npm.io

Screenshots

Screenshots