npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

rn-skeletons

v1.1.1

Published

A powerful, highly customizable skeleton loading library for React Native applications.

Readme

💀 rn-skeletons

A powerful, highly customizable skeleton loading library for React Native applications.

📸 Preview

🚀 Features

  • 🎨 Fully Customizable Components
  • 🔬 Multiple Skeleton Types
  • 🌈 Advanced Animation Options
  • 📱 Responsive Design
  • ♿ Accessibility Support
  • 💨 Lightweight & Performance-Optimized
  • 🌓 Dark/Light Mode Compatible
  • 🔄 Multiple Animation Types

📦 Installation

npm install rn-skeletons
# or
yarn add rn-skeletons
# or
pnpm add rn-skeletons

🛠 Basic Usage

import React from "react";
import { SkeletonText, SkeletonImage, SkeletonButton } from "rn-skeletons";

function LoadingScreen() {
  return (
    <View>
      <SkeletonText lines={3} lineHeight={20} spacing={10} />

      <SkeletonImage width={200} height={200} borderRadius={10} />

      <SkeletonButton width="100%" height={50} />
    </View>
  );
}

🌈 Comprehensive Component List

1. Base Skeleton Props

Common props for all skeleton components:

| Prop | Type | Default | Description | | ----------------- | ------------------------------------ | ----------- | ----------------------- | | width | number\|string | '100%' | Width of skeleton | | height | number | 50 | Height of skeleton | | backgroundColor | string | '#E1E9EE' | Background color | | highlightColor | string | '#F2F8FC' | Shimmer color | | borderRadius | number | 4 | Corner radius | | animationType | 'shimmer'\|'pulse'\|'fade'\|'none' | 'shimmer' | Animation style | | duration | number | 1500 | Animation duration (ms) | | style | ViewStyle | {} | Additional styles | | testID | string | undefined | Test identifier |

2. Text Skeleton

Create multi-line text placeholders

Text Skeleton Props

| Prop | Type | Default | Description | | ------------ | ---------------- | -------- | ---------------------- | | lines | number | 1 | Number of text lines | | lineHeight | number | 20 | Height of each line | | spacing | number | 10 | Space between lines | | width | number\|string | '100%' | Width of text skeleton |

<SkeletonText
  lines={3} // Number of lines
  lineHeight={20} // Height of each line
  spacing={10} // Space between lines
  width="90%" // Width of text
  backgroundColor="#F0F0F0"
/>

3. Image Skeleton

Placeholder for images

Image Skeleton Props

| Prop | Type | Default | Description | | -------------- | -------- | ------- | ------------- | | width | number | 200 | Image width | | height | number | 200 | Image height | | borderRadius | number | 10 | Corner radius |

<SkeletonImage
  width={200} // Image width
  height={200} // Image height
  borderRadius={10} // Corner radius
  animationType="pulse"
/>

4. Button Skeleton

Placeholder for buttons

Button Skeleton Props

| Prop | Type | Default | Description | | -------------- | ---------------- | -------- | ------------- | | width | number\|string | '100%' | Button width | | height | number | 50 | Button height | | borderRadius | number | 8 | Corner radius |

<SkeletonButton
  width="100%" // Button width
  height={50} // Button height
  borderRadius={8} // Corner radius
  backgroundColor="#E0E0E0"
/>

5. Carousel Skeleton

Horizontal/vertical carousel loader

Carousel Skeleton Props

| Prop | Type | Default | Description | | ------------ | --------- | ------- | ------------------- | | itemCount | number | 3 | Number of items | | itemWidth | number | 200 | Item width | | itemHeight | number | 150 | Item height | | horizontal | boolean | true | Scroll direction | | spacing | number | 10 | Space between items |

<SkeletonCarousel
  itemCount={3} // Number of items
  itemWidth={200} // Item width
  itemHeight={150} // Item height
  horizontal={true} // Scroll direction
  spacing={10} // Space between items
/>

6. Review Skeleton

Review card placeholder

Review Skeleton Props

| Prop | Type | Default | Description | | ------------ | -------- | ------- | -------------------- | | avatarSize | number | 50 | Size of avatar | | textLines | number | 2 | Number of text lines |

<SkeletonReview
  avatarSize={50} // Avatar size
  textLines={2} // Text lines
  backgroundColor="#F5F5F5"
/>

7. Grid Skeleton

Grid-based layout skeleton

Grid Skeleton Props

| Prop | Type | Default | Description | | ------------ | ---------------- | ------- | ------------------- | | columns | number | 2 | Number of columns | | itemHeight | number | 150 | Item height | | spacing | number | 10 | Space between items | | itemWidth | number\|string | '45%' | Width of each item |

<SkeletonGrid
  columns={2} // Number of columns
  itemHeight={150} // Item height
  spacing={10} // Space between items
  itemWidth="45%" // Width of grid items
/>

8. List Skeleton

List-based skeleton loader

List Skeleton Props

| Prop | Type | Default | Description | | ------------ | -------- | ------- | ------------------- | | itemCount | number | 5 | Number of items | | itemHeight | number | 80 | Height of each item | | spacing | number | 10 | Space between items |

<SkeletonList
  itemCount={5} // Number of items
  itemHeight={80} // Item height
  spacing={10} // Space between items
/>

🎨 Advanced Customization

Animation Control

Customize animation for each skeleton:

<SkeletonText
  animationType="pulse" // Options: shimmer, pulse, fade, none
  duration={1500} // Animation duration in ms
  highlightColor="#E0E0E0"
/>

🌐 Responsive Design

Support for dynamic sizing:

<SkeletonText
  width="90%" // Percentage width
  lineHeight={20} // Fixed line height
/>

🚀 Performance Optimization

  • Minimal render overhead
  • Native animation driver
  • Lightweight implementation
  • Efficient memory management

🔧 Troubleshooting

  • Ensure correct package installation
  • Check React Native version compatibility
  • Verify import statements

🤝 Contributing

  1. Fork the repository
  2. Create feature branch
  3. Commit changes
  4. Push to branch
  5. Open Pull Request

📄 License

MIT License

📞 Contact

[Your Name/Organization]


⭐ Star the project if you find it helpful!