An open API service indexing awesome lists of open source software.

https://github.com/mmusaib/react-native-skeleton-loading

React Native's Skeleton Loading Component
https://github.com/mmusaib/react-native-skeleton-loading

expo expo-skeleton-loader expo-skeleton-loading loading react-native react-native-skeleton-loader react-native-skeleton-loading skeleton skeleton-loader skeleton-loading skeletonloader

Last synced: about 1 year ago
JSON representation

React Native's Skeleton Loading Component

Awesome Lists containing this project

README

          

| | | | | |
| --------------------------------------- | -------- | ---------- |---------- |---------- |
| ![NPM VERSION](https://img.shields.io/npm/v/react-native-skeleton-loading?style=for-the-badge) | ![NPM WEEKLY DOWNLOADS](https://img.shields.io/npm/dw/react-native-skeleton-loading?color=%232CA215&label=WEEKLY%20DOWNLOADS&style=for-the-badge) | ![GITHUB STAR](https://img.shields.io/github/stars/mmusaib/react-native-skeleton-loading?label=Give%20Us%20A%20Star&style=for-the-badge) | ![YOUTUBE VIEWS](https://img.shields.io/youtube/channel/views/UCSwIR2KBHiqiProH3Me8IZQ?label=YOUTUBE%20VIEWS&style=for-the-badge) | ![NPM LIFETIME DOWNLOADS](https://img.shields.io/npm/dt/react-native-skeleton-loading?color=%232CA215&style=for-the-badge)


🏳️‍🌈 React Native Skeleton Loading

🟢 Skeleton Loading Component for React Native powered apps



Light Weight and Robust Skeleton Loader.

- Design skeleton loading screen of your choice
- Pass colors of your choice
- Powered by Reanimated 3
- Make your apps professional in UI/UX

# Compatibility

| iOS | Android | React Native Cli |
--------|---------|------|
| ✅ | ✅ | ✅ |

# Expo Equivalent
For Expo Loader [(Click Here)](https://github.com/mmusaib/expo-skeleton-loading)

# 🔌 Installation

```sh
$ npm install react-native-skeleton-loading

```

OR

```sh
$ yarn add react-native-skeleton-loading
```

# Setup
This package is based on react-natve-reanimated 3 so according to their documentation,
you need to initialize that in babel.config.js. To do that stop the metro bundler and
then add following line of code to the return object of babel.config.js

```js
plugins: ['react-native-reanimated/plugin']
```

After adding the line of code, start the bundler or project with --clear tag like,

```sh
npx expo start --clear
```
This will clear the bundler cache and you are ready to go.

# 😎 Displaying the skeleton loading
All you need is to just import the skeleton loading component, and in between the
closing and ending tags, you can design the UI of your skeleton loading screen
as shown in the code snippet below:

```jsx
import SkeletonLoading from 'react-native-skeleton-loading'

const App = () => {

return(









)

};
```

For Live `Demo` [(Expo Snack)](https://snack.expo.dev/@mmusaib/react-native-skeleton-loading?platform=android)

# ⭐ Props for the component
| Name | Type | Description |
| ---- | ----------- | ----------- |
| background | hex color string | Hex color string for the background of loading component
| highlight | hex color string | Hex color string for the highlight of loading component

# 💲 Would you like to support me?

If you would like me come up with similar packages, buy me a cup of coffee to boost my energy.



[![Paypal](https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png)](https://paypal.me/mmusaib)


# ▶️ Watch Tutorial Video

[![Watch video](https://i.imgur.com/DdfMsly.png)](https://www.youtube.com/watch?v=QIStdt9sx5Y&list=PLbMQyvHNUAyKVjlOwqkLATvGG9e1Lgw0O&index=11&pp=gAQBiAQB)