1.0.4 • Published 2 years ago

react-native-image-blur-shadow v1.0.4

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

Demo

https://snack.expo.io/@virtualvivek/image-blur-shadow

Installation

$ npm install react-native-image-blur-shadow

Import

import ImageBlurShadow from "react-native-image-blur-shadow";

Usage

import ImageBlurShadow from "react-native-image-blur-shadow";

<ImageBlurShadow
  style={styles.img}
  source={require('./src/assets/spiderman.jpg')}
  imageWidth={220}
  imageHeight={220}
  imageBorderRadius={22}
  shadowOffset={38}
  shadowBlurRadius={48}
  shadowBackgroundColor={'#ffffff'}
/>

Props

PropertyTypeDefaultDescription
styleobject{}set the style of component container
sourcestringnullset the image source
imageWidthnumberdefaultset image width
imageHeightnumberdefaultset image height
imageBorderRadiusnumber0set image border radius
imageFadeDurationnumber300set image fade animation duration in ms
shadowOffsetnumber38set/override shadow offset
shadowBlurRadiusnumber34set/override shadow blurRadius
shadowBackgroundColorHexColor#ffffffset/override shadow background color
shadowFadeDurationnumber300set shadow fade animation duration in ms

Advance Props

PropertyTypeDefaultDescription
defaultSourceobject{}set the default image source iOS
onLoadobject{}on Image Load Callback
onErrorobject{}on Image Error Callback
onLoadStartobject{}on Image Load Start Callback
onLoadEndobject{}on Image Load End Callback
onProgressobject{}on Image Load Progress Callback
onPartialLoadobject{}on Image Partial Load Callback
imageBorderTopLeftRadiusnumber0set image top left border radius
imageBorderTopRightRadiusnumber0set image top right border radius
imageBorderBottomLeftRadiusnumber0set image bottom left border radius
imageBorderBottomRightRadiusnumber0set image bottom right border radius

Find this component useful? :heart:

Support it by joining stargazers for this repository. :star:

License

react-native-image-blur-shadow is licensed under MIT license. View license. Copyright (c) 2021 Vivek Verma