RE

React Content Loader

react-content-loader

SVG-Powered component to easily create placeholder loadings (like Facebook cards loading)

React Native Libraries
react
react-native
skeleton
placeholder
loader
loading
content
svg
react-content-loader
React Native Libraries
Stars
14k
Weekly
912k
Open issues
23
Bundle
~25 kB

Installation

npm install react-content-loader

Code example

import { View, Text, StyleSheet } from "react-native";
import { ContentLoader } from "react-content-loader";

export function Example() {
  return (
    <View style={styles.box}>
      <Text style={styles.title}>React Content Loader</Text>
      <ContentLoader />
    </View>
  );
}

const styles = StyleSheet.create({
  box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
  title: { fontSize: 18, fontWeight: "600" },
});

Pros & cons

Pros

  • Actively maintained by Danilo Woznica
  • 912k weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • 23 open issues on GitHub

FAQs

Alternatives & similar libraries