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

@chainplatform/splash

v0.3.1

Published

@chainplatform/splash is a lightweight React Native & Web library for showing global splash/loading screens using Context and animated transitions --- without relying on component state.

Downloads

38

Readme

React Native & React Native Web Splash

@chainplatform/splash is a lightweight React Native & Web library for showing global splash/loading screens using Context and animated transitions --- without relying on component state.

💧 @chainplatform/splash

A universal splash/loading overlay for React Native & React Native Web --- state-free, ultra-fast, and controlled by a static API.


🚀 Features

  • Instant show/hide --- stays mounted, no re-render delay
  • 🧠 Controlled globally via Splash.show() / Splash.hide()
  • 🎨 Custom logo, title, subtitle, and dynamic background color
  • 🌍 Fully compatible with React Native Web
  • 💨 Smooth animated fade transitions using Animated API
  • 🪶 Minimal dependencies --- zero context/state overhead

📦 Installation

npm install @chainplatform/splash
# or
yarn add @chainplatform/splash

🧠 Basic Usage

1️⃣ Wrap your app with SplashProvider

import React from "react";
import { SplashProvider } from "@chainplatform/splash";
import MainNavigation from "./MainNavigation";

export default function App() {
  return (
    <SplashProvider theme={{ colors: { primary: "#007bff", background: "#fff" } }}>
      <MainNavigation />
    </SplashProvider>
  );
}

2️⃣ Show / Hide Splash Anywhere

import { Splash } from "@chainplatform/splash";

// Show splash instantly
Splash.show(0, "Loading", "Please wait...", "https://chainplatform.github.io/chain.png", "#fff");

// Hide splash after 1.5s
setTimeout(() => Splash.hide(0), 1500);

⚙️ API Reference

🔹 SplashProvider Props


Prop Type Description


theme { colors: { primary: string, background: string } } Optional color theme

bgProp string Background color (default: white)

🔹 Splash Static Methods


Method Params Description


Splash.show(duration, header, sub, logo, bg) Duration in ms (0 = Show global splash overlay instant)

Splash.hide(duration) Duration in ms (0 = Hide splash overlay instant)


🧩 Notes

  • The splash view is never unmounted --- eliminating render delay
  • setNativeProps ensures instant background rendering
  • Optimized for both React Native and React Native Web
  • Ideal for global transitions, route loading, or async actions

🪪 License

MIT © 2025 Chain Platform


💖 Support & Donate

If you find this package helpful, consider supporting the development:

| Cryptocurrency | Address | |----------------|----------| | Bitcoin (BTC) | 17grbSNSEcEybS1nHh4TGYVodBwT16cWtc | alt text | Ethereum (ETH) | 0xa2fd119a619908d53928e5848b49bf1cc15689d4 | alt text | Tron (TRX) | TYL8p2PLCLDfq3CgGBp58WdUvvg9zsJ8pd | alt text | DOGE (DOGE) | DDfKN2ys4frNaUkvPKcAdfL6SiVss5Bm19 | | USDT (SOLANA) | cPUZsb7T9tMfiZFqXbWbRvrUktxgZQXQ2Ni1HiVXgFm |

Your contribution helps maintain open-source development under the Chain Platform ecosystem 🚀