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

react-native-skeletons

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-skeletons

Fully customizable small library with no extra dependencies for creating animated loading skeletons

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
968
decreased by-6.38%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Skeletons

Fully customizable small library with no extra dependencies for creating animated loading skeletons.

Installation

yarn add react-native-skeletons

or

npm install react-native-skeletons

Usage

Simple skeleton:

<Skeleton width={'100%'} height={14} />

Skeleton with circle prop:

<Skeleton circle width={40} height={40} />

Skeleton with count prop:

<Skeleton count={4} width={'100%'} height={14} />

Props Reference

PropDescriptionDefault
colorThe background color of the skeleton.#ebebeb
widthThe width of the skeleton.100%
heightThe height of each skeleton line.
borderRadiusThe border radius of the skeleton.4
countThe number of lines of skeletons.1
circle Makes the skeleton circular by setting borderRadius to 50%. false
style A custom style for the individual skeleton elements which is used alongside the default style
containerStyle A custom style for the container of multiple skeletons that wraps the individual skeleton elements. NOTE: this will only apply when count value is greater than 1, else you can use style
spacing Value for setting marginBottom when using with multiple skeleton elements. NOTE: this will only apply when count value is greater than 1

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Package last updated on 20 Mar 2022

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