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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@danielsledz/react-native-skeleton-placeholder

v1.0.2

Published

Fork of react-native-skeleton-placeholder with TypeScript support and improvements

Readme

@danielsledz/react-native-skeleton-placeholder

npm version MIT License

🧪 Fork of react-native-skeleton-placeholder, rewritten in TypeScript with improvements.

🚀 Features

  • ✅ Full TypeScript support
  • ✅ Improved performance
  • ✅ Customizable animation
  • ✅ Shimmer effect
  • ✅ Easy to use API
  • ✅ React Native 0.63+ compatible

📦 Installation

npm install @danielsledz/react-native-skeleton-placeholder
# or
yarn add @danielsledz/react-native-skeleton-placeholder

📋 Prerequisites

This library requires the following peer dependencies:

npm install @react-native-masked-view/masked-view react-native-linear-gradient
# or
yarn add @react-native-masked-view/masked-view react-native-linear-gradient

🎯 Usage (Quick Example)

import React from "react";
import { View, Text } from "react-native";
import { SkeletonPlaceholder } from "@danielsledz/react-native-skeleton-placeholder";

const MyComponent = () => {
  const [isLoading, setIsLoading] = React.useState(true);

  if (isLoading) {
    return (
      <SkeletonPlaceholder>
        <View style={{ flexDirection: "row", alignItems: "center" }}>
          <View style={{ width: 60, height: 60, borderRadius: 50 }} />
          <View style={{ marginLeft: 20 }}>
            <View style={{ width: 120, height: 20, borderRadius: 4 }} />
            <View
              style={{ marginTop: 6, width: 80, height: 20, borderRadius: 4 }}
            />
          </View>
        </View>
      </SkeletonPlaceholder>
    );
  }

  return (
    <View>
      <Text>Your actual content here</Text>
    </View>
  );
};

Using SkeletonPlaceholder.Item

import React from "react";
import { View } from "react-native";
import { SkeletonPlaceholder } from "@danielsledz/react-native-skeleton-placeholder";

const MyComponent = () => {
  return (
    <SkeletonPlaceholder>
      <SkeletonPlaceholder.Item width={60} height={60} borderRadius={50} />
      <SkeletonPlaceholder.Item width={120} height={20} borderRadius={4} />
      <SkeletonPlaceholder.Item width={80} height={20} borderRadius={4} />
    </SkeletonPlaceholder>
  );
};

Custom Animation

import React from "react";
import { SkeletonPlaceholder } from "@danielsledz/react-native-skeleton-placeholder";

const MyComponent = () => {
  return (
    <SkeletonPlaceholder
      backgroundColor="#E1E9EE"
      highlightColor="#F2F8FC"
      speed={1200}
      direction="left"
      borderRadius={8}
      shimmerWidth={100}
    >
      {/* Your skeleton content */}
    </SkeletonPlaceholder>
  );
};

📚 API Reference

SkeletonPlaceholder Props

| Prop | Type | Default | Description | | ----------------- | ------------------- | ----------- | ---------------------------------------------- | | children | React.ReactNode | - | The content to render as skeleton | | backgroundColor | string | "#E1E9EE" | Background color of skeleton | | highlightColor | string | "#F2F8FC" | Highlight color for shimmer effect | | speed | number | 800 | Animation speed in milliseconds (0 to disable) | | direction | "left" \| "right" | "right" | Animation direction | | enabled | boolean | true | Enable/disable skeleton | | borderRadius | number | - | Default border radius for all items | | shimmerWidth | number | - | Width of the shimmer highlight |

SkeletonPlaceholder.Item Props

SkeletonPlaceholder.Item accepts all ViewStyle props plus:

| Prop | Type | Description | | ---------- | ---------------------- | ----------------- | | children | React.ReactNode | Optional children | | style | StyleProp<ViewStyle> | Additional styles |

🎨 Customization

Colors

You can customize the skeleton appearance by changing colors:

<SkeletonPlaceholder backgroundColor="#f0f0f0" highlightColor="#e0e0e0">
  {/* Content */}
</SkeletonPlaceholder>

Animation

Control animation behavior:

<SkeletonPlaceholder
  speed={1000} // Slower animation
  direction="left" // Left-to-right animation
  enabled={false} // Disable animation
>
  {/* Content */}
</SkeletonPlaceholder>

🔧 Development

# Install dependencies
npm install

# Build the package
npm run build

# Clean build artifacts
npm run clean

# Type check only
npm run typecheck

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check issues page or submit a pull request.

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

MIT © Daniel Śledź

📝 Changelog

See full Changelog