Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
react-native-skeletons
Advanced tools
Fully customizable small library with no extra dependencies for creating animated loading skeletons
Fully customizable small library with no extra dependencies for creating animated loading skeletons.
yarn add react-native-skeletons
or
npm install react-native-skeletons
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} />
Prop | Description | Default |
---|---|---|
color | The background color of the skeleton. | #ebebeb |
width | The width of the skeleton. | 100% |
height | The height of each skeleton line. | |
borderRadius | The border radius of the skeleton. | 4 |
count | The 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
|
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
Fully customizable small library with no extra dependencies for creating animated loading skeletons
The npm package react-native-skeletons receives a total of 898 weekly downloads. As such, react-native-skeletons popularity was classified as not popular.
We found that react-native-skeletons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.