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.2

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.

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
  • 🧩 Custom splash content via React node, component, or render function
  • 🌍 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);

3️⃣ Custom Splash Content

Use object params when the splash content is more complex than logo/text/spinner. If no custom content is passed, the default rendering stays exactly the same.

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

Splash.show({
  duration: 0,
  bg: "#050816",
  primary: "#7dd3fc",
  component: WorkspaceSplash,
  props: {
    title: "Switching workspace"
  }
});

You can also pass a React node directly:

Splash.show({
  duration: 0,
  bg: "#050816",
  content: <WorkspaceSplash title="Switching workspace" />
});

⚙️ API Reference

🔹 SplashProvider Props


Prop Type Description


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

bgProp string Background color (default: white)

clProp string Primary color override

content ReactNode Default custom splash content

renderContent (payload) => ReactNode Default custom splash renderer

🔹 Splash Static Methods


Method Description


Splash.show(duration, header, sub, logo, primary, bg, content) Backward-compatible positional API

Splash.show({ duration, header, sub, logo, primary, bg, content }) Object API with optional custom content

Splash.show({ duration, bg, component, props }) Render a custom component inside splash

Splash.show({ duration, bg, renderContent }) Render content from a function payload

Splash.hide(duration) Hide splash overlay

renderContent receives:

{
  visible,
  header,
  sub,
  logo,
  color,
  primary,
  bg,
  backgroundColor,
  hide
}

children is also accepted as an alias for content in the object API.


🧩 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 🚀