1.0.1 • Published 3 years ago

react-native-shimmer-loading v1.0.1

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

Get Started

Installation

npm i react-native-shimmer-loading --save

or

yarn add react-native-shimmer-loading

Usage

Simple

For react-native-linear-gradient

import LinearGradient from 'react-native-linear-gradient';
import ShimmerPlaceHolder from 'react-native-shimmer-loading'

...

<ShimmerPlaceHolder
  LinearGradient={LinearGradient}
/>

Props

PropDescriptionTypeDefault
LinearGradientLinear Gradient components ('react-native-linear-gradient' or 'expo-linear-gradient')Componentundefined
visibleVisible child componentsbooleanfalse
styleContainer StyleStyle{backgroundColor: '#ebebeb',overflow: 'hidden'}
shimmerStyleShimmer Style onlyStyle{}
contentStyleContent Style when visibleStyle{}
durationDuration of shimmer over a rownumber1000
reverseLoopDirection of loopnumbertrue
shimmerWidthPercentPercent of shimmer widthnumber1.0
isReversedReverse direction of animationbooleanfalse
shimmerColorsColors of the shimmer.string[]'#ebebeb', '#c5c5c5', '#ebebeb'
containerPropsProps passed to the outermost ViewViewPropsundefined
shimmerContainerPropsProps passed to the View which contains the loading animationViewPropsundefined
childrenContainerPropsProps passed to the View which contains the childrenViewPropsundefined

Contribute

Welcome help me to build this awesome lib.

License

MIT