V

Volodymyr

3 min

A skeleton keeps the layout while data loads

Someone asks for a spinner and the list is empty. I show them a skeleton, so the layout stays where the rows will be.

People ask for a spinner when their list is empty. What they usually want is a skeleton. Yes — a React Native skeleton is the polite loading state: the layout stays put, gray bones mark where the real rows will land, and the screen does not jump when the data arrives.

A spinner is not the same job

ActivityIndicator tells you the app is busy. It floats in the middle of nowhere. Fine for a full-screen gate. Wrong for a feed, a profile header, or a chat thread that already has a shape.

A skeleton copies that shape first. Avatar circle. Two text bars. A card outline. Then it waits. When the payload lands, the bones swap for content at the same coordinates. That is why it feels polite. The thumb already knew where to go.

A progress bar and a toast live in the same family — they report status — but they do not reserve layout. Skeleton does. That is the fork people miss when they type "loading" into a search and grab the first spinner they see.

Skeleton loading is a layout promise

The hard part is not the pulse. Anyone can fade opacity with Reanimated:

function Bone({ width, height }: { width: number; height: number }) {
  const opacity = useSharedValue(0.4);
  useEffect(() => {
    opacity.value = withRepeat(withTiming(1, { duration: 700 }), -1, true);
  }, []);
  const style = useAnimatedStyle(() => ({ opacity: opacity.value }));
  return <Animated.View style={[{ width, height, borderRadius: 6, backgroundColor: "#E5E7EB" }, style]} />;
}

The hard part is the width and height you pass in. They have to match the final UI closely enough that the swap is invisible. Miss the heights and the list jumps. Miss the margins and the header slides. Miss the card radius and the eye notices the fake. Good skeletons are boring on purpose. They are measured off the real row, not invented as a separate design system.

That is also why a react native ui library with a generic "Loading" component often fails here. A shared spinner ignores your row. A skeleton has to know your row — the composer height, the avatar size, the gap under the title.

Libraries like Moti Skeleton lean on bones as first-class layout, with motion as a secondary layer.

A skeleton view from a UI kit does the same job with the kit's own sizing. Either path works. The ones that fail animate a pretty rectangle that has nothing to do with the row it claims to preview.

Why I keep it under Feedback & Status

In the catalog sidebar, skeleton sits with activity indicator, progress bar, toast, and tooltip. That is not a layout group. It is a status group. Every one of those answers the same user question: what is the app doing right now.

I used to wonder whether skeleton belonged next to list and card. It does not. A list is content. A skeleton is a message about missing content. The rest of that status family, spinners to banners, is lined up in the status UI write-up.

Measure the row before you draw the bone

Open the screen with real data, write down the heights, then build the skeleton from those numbers. The ones in the Skeleton filter are worth watching for one thing only: whether the swap to content moves anything.