1.1.0 • Published 2 years ago

react-native-fb-shimmer v1.1.0

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

react-native-fb-shimmer

Simple shimmering effect in React Native using native shimmer libraries by Facebook Shimmer/shimmer-android.

Support

The library supports react native's New Architecture

Shimmer

Works for React Native versions >= 0.60

Usage

NOTE: Shimmer may only have one child.

import Shimmer from "react-native-fb-shimmer";

<Shimmer>
    <Text>Hello World</Text>
</Shimmer>;

Properties

PropDescriptionDefault
animatingWhether or not to show shimmering effect.true
durationThe shimmering animation duration in milliseconds.1000
pauseDurationThe time interval between shimmerings in milliseconds.400
animationOpacityThe opacity of the content while it is shimmering.1
shimmeringDirectionThe direction of shimmering animation, valid values are up, down, left, right.right
shimmeringOpacityThe opacity of the content before it is shimmering.0.5
highlightLengthThe highlight length of shimmering. Range of 0–1. iOS only1
beginFadeDurationThe duration of the fade used when shimmer begins. iOS only0
endFadeDurationThe duration of the fade used when shimmer ends. iOS only0
tiltThe tilt angle of the highlight, in degrees. Android only0
intensityThe intensity of the highlight mask. Range of 0–1. Android only0

License

MIT