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

@onekeyfe/react-native-skeleton

v6.7.0-33

Published

Native shimmer loading placeholder for OneKey on iOS and Android

Readme

@onekeyfe/react-native-skeleton

A native shimmer loading placeholder for OneKey React Native applications on iOS and Android. The Nitro view animates its own native rendering surface; the application decides when to display it and when loaded content replaces it.

Installation

yarn add @onekeyfe/react-native-skeleton react-native-nitro-modules

Install the application's iOS pods and rebuild the native application after adding the package. A JavaScript-only install does not register the Nitro view.

Usage

import { SkeletonView } from '@onekeyfe/react-native-skeleton';

<SkeletonView
  style={{ width: 160, height: 24, borderRadius: 6 }}
  shimmerSpeed={3}
  shimmerGradientColors={['#E5E7EB', '#F3F4F6']}
/>;

Give the view a width and height through its layout style. The example uses the actual exported package name and supported shimmer props; there is no public color prop on this view.

Props and lifecycle

| Prop | Meaning | | --- | --- | | shimmerSpeed | Animation duration in seconds; defaults to 3 and is clamped to at least 0.1. | | shimmerGradientColors | Two gradient colors; native uses the first two entries and falls back to its defaults when fewer are provided. |

Use six-digit hex colors for consistent iOS and Android input. The view's native renderer handles attachment and animation lifecycle; it does not track network requests or emit a loading-completion event. Consumers control whether the placeholder remains mounted and should verify the resulting layout with their actual content.

The current interface is in src/Skeleton.nitro.ts, and the public component is exported from src/index.tsx.

Loading-state ownership

SkeletonView is the exported native host component. The package declares no onLoad, onError or network-request prop: the application removes or hides the placeholder when its own loading state changes.

shimmerGradientColors supplies a string array rather than React Native color objects, and shimmerSpeed is a duration rather than frames per second. Preserve layout dimensions when replacing the skeleton with loaded content if the consumer needs to avoid a layout shift. Native animation results remain separate from the application's data-loading completion.

License

MIT.