1.0.4 • Published 6 months ago

rn-skeleton-loading v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

šŸŽ¬ 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 šŸš€šŸ˜Š šŸ˜Ž

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

1 year ago