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-shimmer-effect

v1.0.0

Published

A beautiful shimmer loading effect for React Native with LinearGradient animation, multiple variants, and direction support

Downloads

4

Readme

react-native-shimmer-effect

A beautiful shimmer loading effect for React Native with LinearGradient animation, multiple variants, and direction support.

npm license

Features

  • Smooth LinearGradient shimmer animation
  • Pulse variant for simple opacity animation
  • 4 direction options (leftToRight, rightToLeft, topToBottom, bottomToTop)
  • Built-in presets (dark, light, neutral, twitter)
  • Custom colors support
  • ShimmerGroup for coordinated loading states
  • Fade-in transition when content loads
  • TypeScript support

Installation

npm install react-native-shimmer-effect
# or
yarn add react-native-shimmer-effect

Peer Dependencies

This package requires the following peer dependencies:

npm install expo-linear-gradient react-native-reanimated

Usage

Basic Usage

import { Shimmer } from "react-native-shimmer-effect";

function MyComponent() {
  const [loading, setLoading] = useState(true);

  return (
    <Shimmer
      isLoading={loading}
      style={{ width: 200, height: 100, borderRadius: 12 }}
    >
      <Text>Content appears here when loaded</Text>
    </Shimmer>
  );
}

With ShimmerGroup

Control multiple shimmer components with a single loading state:

import { Shimmer, ShimmerGroup } from "react-native-shimmer-effect";

function ProfileCard() {
  const [loading, setLoading] = useState(true);

  return (
    <ShimmerGroup isLoading={loading} preset="dark" duration={1000}>
      <Shimmer style={styles.avatar}>
        <Image source={{ uri: user.avatar }} style={styles.avatar} />
      </Shimmer>

      <Shimmer style={styles.name}>
        <Text>{user.name}</Text>
      </Shimmer>

      <Shimmer style={styles.bio}>
        <Text>{user.bio}</Text>
      </Shimmer>
    </ShimmerGroup>
  );
}

Presets

// Dark theme (for dark backgrounds)
<Shimmer preset="dark" style={styles.box} />

// Light theme (for light backgrounds)
<Shimmer preset="light" style={styles.box} />

// Neutral (grayscale)
<Shimmer preset="neutral" style={styles.box} />

// Twitter-style (blue tint)
<Shimmer preset="twitter" style={styles.box} />

Custom Colors

<Shimmer
  preset="custom"
  shimmerColors={["transparent", "rgba(255, 0, 0, 0.2)", "transparent"]}
  style={{ backgroundColor: "#1a1a1a", width: 200, height: 40 }}
/>

Pulse Variant

<Shimmer
  variant="pulse"
  duration={1000}
  style={{ width: 100, height: 100 }}
/>

Different Directions

<Shimmer direction="leftToRight" />  // Default
<Shimmer direction="rightToLeft" />
<Shimmer direction="topToBottom" />
<Shimmer direction="bottomToTop" />

API Reference

Shimmer / ShimmerEffect

| Prop | Type | Default | Description | |------|------|---------|-------------| | isLoading | boolean | true | Whether to show shimmer effect | | variant | "shimmer" \| "pulse" | "shimmer" | Animation type | | direction | "leftToRight" \| "rightToLeft" \| "topToBottom" \| "bottomToTop" | "leftToRight" | Animation direction | | preset | "dark" \| "light" \| "neutral" \| "twitter" \| "custom" | "neutral" | Color preset | | shimmerColors | string[] | - | Custom colors (requires preset="custom") | | duration | number | 1500 | Animation duration in ms | | opacity | number | 1 | Container opacity | | style | ViewStyle | - | Container style | | children | ReactNode | - | Content to show when not loading |

ShimmerGroup

| Prop | Type | Default | Description | |------|------|---------|-------------| | isLoading | boolean | true | Loading state for all children | | preset | ShimmerPreset | "neutral" | Default preset for children | | duration | number | 1500 | Default duration for children | | direction | ShimmerDirection | "leftToRight" | Default direction for children | | opacity | number | 1 | Default opacity for children | | children | ReactNode | - | Child components |

Custom Presets

Create your own preset configuration:

import { createPreset } from "react-native-shimmer-effect";

const myPreset = createPreset({
  colors: ["transparent", "rgba(255, 215, 0, 0.3)", "transparent"],
  backgroundColor: "#1a1a1a",
});

License

MIT