πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

rn-skeleton-loading

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-skeleton-loading

I'm piecing together a detailed description for a "rn-skeleton-loading." The goal is to highlight this tool's simplicity and effectiveness in creating animated skeleton components for better user experience during content loading, aiming for a clear, enga

1.0.4
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
Β 
Created
Source

🎬 Demo

rn-skeleton-loading demo

🦴 rn-skeleton-loading

A lightweight, customizable, and fast skeleton loading component for React Native.
πŸ”₯ Supports shimmer animation & fully customizable UI elements.

npm downloads

πŸš€ Installation

You can install it using npm or yarn:

npm install rn-skeleton-loading

or

yarn add rn-skeleton-loading

πŸ”₯ Usage

Here is a basic usage example:

import { Skeleton } from "rn-skeleton-loading";
import { View } from "react-native";

export default function App() {
  return (
    <View style={{ padding: 20 }}>
      <Skeleton width="90%" height={20} />
      <Skeleton width="80%" height={20} />
      <Skeleton width={60} height={60} borderRadius={30} />
    </View>
  );
}

🎨 Customization

You can customize the skeleton UI by passing props.

PropTypeDefaultDescription
widthstring / number"100%"Width of the skeleton
heightnumber20Height of the skeleton
borderRadiusnumber4Border radius
colorstring"#E0E0E0"Base color of the skeleton
highlightColorstring"#F5F5F5"Shimmer effect color
durationnumber1000Duration of shimmer animation in ms

🌟 Advanced Example (With Custom Props)

import { Skeleton } from "rn-skeleton-loading";
import { View } from "react-native";

export default function ProfileSkeleton() {
  return (
    <View style={{ padding: 20 }}>
      <Skeleton width={100} height={100} borderRadius={50} color="#ccc" />
      <Skeleton width="80%" height={15} style={{ marginTop: 10 }} />
      <Skeleton width="60%" height={15} style={{ marginTop: 5 }} />
    </View>
  );
}

βœ… Features

βœ” Lightweight & Fast
βœ” Customizable Width, Height, Colors, Border Radius
βœ” Works on both iOS & Android
βœ” Supports shimmer animation
βœ” Perfect for loading states in lists, cards, and avatars

🀝 Contributing

Pull requests are welcome! If you find a bug or have a feature request, please open an issue. πŸš€

πŸ“œ License

MIT License – You are free to use, modify, and distribute this package!

πŸŽ‰ πŸ’‘ Happy Coding πŸš€πŸ˜Š 😎

Keywords

skeleton

FAQs

Package last updated on 07 Feb 2025

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