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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-skelo

v0.0.5

Published

Automatic skeleton loading for React Native. Write your UI once, Skelo builds the loading state automatically.

Readme

🦴 react-native-skelo

Write your UI once. Skelo builds the loading state — automatically.

npm version downloads license PRs welcome

Stop building and maintaining a second copy of your UI just for loading states. Wrap your components in <Skeleton> and Skelo generates a matching skeleton — sized from the styles you already wrote.

<Skeleton loading={isLoading}>
  <ProfileCard user={user} />
</Skeleton>

That's the whole API. No skeleton screens to hand-draw, no keeping two layouts in sync.

⚠️ Pre-release (0.0.x) — evolving fast; the API may change before the stable 0.1.0.


✨ Features

  • 🪄 Zero-config — wrap a component, get a skeleton. No setup, no separate loading screen.
  • 🧠 Sees inside your components — introspects custom components automatically (no inlining).
  • 📋 Lists includedFlatList / SectionList render skeleton rows while data loads.
  • 🎨 Shimmer · Pulse · None — built-in animations on the native driver.
  • 🪶 No dependencies — no reanimated, no gradient library. Just react + react-native.
  • 📐 Style-aware — every skeleton is sized from your real element styles.

📦 Installation

npm install react-native-skelo

That's it — no other dependencies. Everything (including custom-component introspection) works out of the box.

React 18 apps: add "react-reconciler": "0.29.x" to your deps (Skelo ships targeting React 19's 0.31).


🚀 Usage

Just wrap it

import { Skeleton } from 'react-native-skelo';

function Screen({ loading, user }) {
  return (
    <Skeleton loading={loading} animation="shimmer">
      <ProfileCard user={user} />
    </Skeleton>
  );
}

Skelo renders ProfileCard, reads its real View/Text/Image tree + styles, and draws a matching skeleton while loading is true. When it's false, your real UI renders.

Lists

Wrap a FlatList — Skelo fills it with skeleton rows while the data loads:

<Skeleton loading={loading} count={6}>
  <FlatList data={items} renderItem={renderItem} />
</Skeleton>

Keep something visible

<Skeleton loading={loading}>
  <Skeleton.Ignore>
    <Text style={styles.heading}>Profile</Text>   {/* stays real */}
  </Skeleton.Ignore>
  <ProfileBody />
</Skeleton>

Generate from a StyleSheet

<Skeleton loading={loading} styles={styles} excludeStyles={['container']} />

Custom skeleton for a component

import { Skelo } from 'react-native-skelo';

Skelo.register({
  name: 'Avatar',
  component: Avatar,
  strategy: (props, { primitives }) => <primitives.Circle size={props.size ?? 40} />,
});

⚙️ <Skeleton> props

| Prop | Type | Default | Description | |---|---|---|---| | loading | boolean | — | Show skeleton (true) or real content (false) | | animation | 'shimmer' \| 'pulse' \| 'none' | 'shimmer' | Animation style | | duration | number | 1200 | Animation duration (ms) | | baseColor / highlightColor | string | theme | Skeleton colors | | borderRadius | number | 4 | Default corner radius | | count | number | 6 | Placeholder rows for a FlatList/SectionList | | deep | boolean | auto | Force component introspection on/off (auto when available) | | styles | StyleSheet \| style[] | — | Generate from styles instead of children | | accessibilityLabel | string | 'Loading content' | Screen-reader label |

Also exported: withSkeleton, SkeletonIgnore, StyleSkeleton, the primitives (SkeletonBox, SkeletonText, SkeletonImage, SkeletonCircle), and Skelo (register / fromStyles).


🧩 How it works

  • Host elements (View / Text / Image) are read directly (React.Children + StyleSheet.flatten).
  • Custom components are expanded by a tiny JS-only react-reconciler renderer (bundled) that renders them off-screen to recover their real host tree + styles — then feeds the same skeleton engine.
  • Anything Skelo can't introspect (native content) is measured and shown as one size-matched block.

⚠️ Good to know

Skelo skeletonizes what your component renders during loading:

  • Introspection runs mount effects — a screen that fetches on mount may fetch twice. Prefer it for presentational trees; register a plugin for effect-heavy screens.
  • It renders outside your providers — components needing navigation/theme/redux context fall back to a measured block.
  • Native content (WebView, MapView, Video, …) lives outside React, so it becomes a single sized block.
  • A data-driven list/grid that renders nothing while loading has nothing to skeletonize — keep placeholder items rendered (see the example).

📋 Requirements

  • React Native (New Architecture recommended)
  • React 19 (React 18 → override react-reconciler to 0.29)
  • No other dependencies

📄 License

MIT © Shubhanshu Barnwal