Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-shimmer

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-shimmer

Simple shimmering effect in React Native

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.9K
increased by95.25%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-shimmer

Simple shimmering effect in React Native. Based on Shimmer.

Shimmer

Installation

$ yarn add react-native-shimmer

$ react-native link react-native-shimmer

Option: Manually

Add ios/RNShimmer.xcodeproj to Libraries and add libRNShimmer.a to Link Binary With Libraries under Build Phases. More info and screenshots about how to do this is available in the React Native documentation.

Option: With CocoaPods

Add the following to your Podfile and run pod update:

pod 'react-native-shimmer', :path => 'node_modules/react-native-shimmer'

Usage

NOTE: Shimmer may only have one child and currently doesn't work with View.

import Shimmer from 'react-native-shimmer';

<Shimmer>
  <Text>Loading...</Text>
</Shimmer>

Properties

PropDescriptionDefault
animatingWether or not to show shimmering effect.true
directionThe direction of shimmering animation, valid values are up, down, left, right.right
pauseDurationThe time interval between shimmerings in milliseconds.400
animationOpacityThe opacity of the content while it is shimmering.0.5
opacityThe opacity of the content before it is shimmering.1
speedThe speed of shimmering, in points per second.230
highlightLengthThe highlight length of shimmering. Range of 0–1.1
beginFadeDurationThe duration of the fade used when shimmer begins.0.1
endFadeDurationThe duration of the fade used when shimmer ends.0.3

License

MIT License. Shimmer is under BSD license. © Joel Arvidsson 2016-now

Keywords

FAQs

Package last updated on 20 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc