New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-shimmer-text

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-shimmer-text

Cross‑platform Shimmer Text component for React Native (iOS/Android) and Web.

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
1.9K
-34.7%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-shimmer-text

Demo

💡 Building a full mobile app?

Check out Ship Mobile Fast - The #1 React Native Expo boilerplate to build and ship mobile apps in days, not weeks.

Ship Mobile Fast

Authentication • Payments • AI Integration • And More!

NPM version NPM downloads License

Cross-platform shimmer text component for React Native (iOS, Android, Web) with customizable animations and theme support.

✨ Features

  • Cross-platform support (iOS, Android, Web)
  • Customizable duration, direction, colors
  • Theme-aware (light/dark mode)
  • Predefined sizes (xs to 9xl)
  • Smooth animations with react-native-reanimated

📦 Installation

npm install react-native-shimmer-text
expo install react-native-reanimated @react-native-masked-view/masked-view

🚀 Usage

import ShimmerText from "react-native-shimmer-text";

export default function Example() {
  return (
    <ShimmerText size="lg" duration={3} direction="ltr">
      Thinking...
    </ShimmerText>
  );
}

⚙️ Props

PropTypeDefaultDescription
childrenstringundefinedText content
styleTextStyleundefinedText styles
shimmerStyleViewStyle or WebShimmerStyleundefinedShimmer effect styles
containerStyleViewStyleundefinedContainer styles
durationnumber3Animation duration (seconds)
boldbooleantrueBold text
highlightWidthnumberundefinedShimmer width percentage (0-100)
direction'ltr' or 'rtl''ltr'Animation direction
anglenumber100Gradient angle (degrees)
sizeTextSize'md'Text size ('xs' to '9xl')
colors{ light?: ShimmerColors, dark?: ShimmerColors }undefinedTheme colors
widthnumberundefinedCustom width
heightnumberundefinedCustom height

TextSize

'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '7xl' | '9xl'

ShimmerColors

interface ShimmerColors {
  text: string;
  shimmer: {
    start: string;
    middle: string;
    end: string;
  };
}

🎨 Custom Colors

const customColors = {
  light: {
    text: "#333333",
    shimmer: { start: "#e0e0e0", middle: "#f5f5f5", end: "#e0e0e0" },
  },
  dark: {
    text: "#cccccc",
    shimmer: { start: "#424242", middle: "#616161", end: "#424242" },
  },
};

<ShimmerText size="2xl" colors={customColors}>
  Custom Colors
</ShimmerText>;

License

MIT

Keywords

react-native

FAQs

Package last updated on 14 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts