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

@akbeniwal/react-native-smart-image

v1.0.10

Published

A powerful React Native image component with skeleton loading and reveal animations.

Readme

@akbeniwal/react-native-smart-image

A high-performance, lightweight React Native image component featuring built-in skeleton loading state placeholders and smooth, hardware-accelerated image reveal animations powered by React Native Reanimated.


Key Features

  • Zero-Jitter Placeholder: Showcases a customizable skeleton loading background while the image is loading.
  • 🚀 Hardware-Accelerated Reveal Animations: Smooth entry animations using Reanimated worklets (runs on the UI thread).
  • 🎨 Extremely Customizable: Adjust animation types, custom durations, and skeleton colors easily.
  • 📱 Robust Layout Sync: Keeps layout aspect ratio and styles consistent during transitions.
  • 🔥 TypeScript First: Full type safety with out-of-the-box definitions.
  • ⚙️ Performance Tuned: Consolidates all reveal animations into a single custom hook, reducing JS-to-Native bridge overhead.

Installation

Install using yarn:

yarn add @akbeniwal/react-native-smart-image

Or using npm:

npm install @akbeniwal/react-native-smart-image

Note: This package requires react-native-reanimated (v2.x, v3.x or v4.x). Ensure it is installed and configured in your project.


Supported Animations

The following reveal animations are supported out-of-the-box:

  • fade (Default)
  • slide-up
  • slide-down
  • slide-left
  • slide-right
  • zoom-out
  • zoom-in
  • fold-out

Usage & Examples

Basic Usage

import React from "react";
import { SmartImage } from "@akbeniwal/react-native-smart-image";

const App = () => {
  return (
    <SmartImage
      source={{ uri: "https://picsum.photos/500" }}
      style={{
        width: 200,
        height: 200,
        borderRadius: 12,
      }}
    />
  );
};

Customized Animations

Slide Up Animation

<SmartImage
  source={{ uri: "https://picsum.photos/500" }}
  animation="slide-up"
  animationDuration={500}
  style={{ width: 200, height: 200 }}
/>

Zoom Out Animation

<SmartImage
  source={{ uri: "https://picsum.photos/500" }}
  animation="zoom-out"
  animationDuration={700}
  style={{ width: 200, height: 200 }}
/>

Zoom In Animation

<SmartImage
  source={{ uri: "https://picsum.photos/500" }}
  animation="zoom-in"
  animationDuration={700}
  style={{ width: 200, height: 200 }}
/>

Fold Out Animation

<SmartImage
  source={{ uri: "https://picsum.photos/500" }}
  animation="fold-out"
  animationDuration={600}
  skeletonColor="#E8E8E8"
  style={{ width: 200, height: 200 }}
/>

Component API Props

| Prop | Type | Required | Default | Description | | :---------------------- | :---------------------- | :------- | :---------- | :----------------------------------------------------------------------------------------------------------------- | | source | ImageSourcePropType | Yes | - | The image source (e.g. URI or local resource). | | style | StyleProp<ImageStyle> | No | - | Style object applied to both the image and the skeleton wrapper. | | animation | AnimationType | No | "fade" | The reveal animation type (fade, slide-up, slide-down, slide-left, slide-right, zoom-out, zoom-in, fold-out). | | animationDuration | number | No | 400 | Duration of the transition animation in milliseconds. | | skeletonColor | string | No | "#E5E5E5" | The background color of the skeleton placeholder block. |


Roadmap

🚀 v1.1.0

  • [ ] Customizable skeleton shimmer/pulse effect animation
  • [ ] Error placeholder state / fallback image component
  • [ ] Retry loading trigger on image press/failure

🚀 v1.2.0

  • [ ] Blur-up placeholder reveal animation
  • [ ] Progressive resolution image loading (loading a tiny thumbnail first)
  • [ ] Advanced caching layer for network source images

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Abhishek Beniwal