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

@molecule/app-splash-screen-react-native

v1.0.1

Published

React Native splash screen provider for molecule.dev (expo-splash-screen)

Readme

@molecule/app-splash-screen-react-native

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

React Native splash screen provider for molecule.dev.

Implements the SplashScreenProvider interface from @molecule/app-splash-screen using expo-splash-screen: keeps the native splash visible during startup and hides it when the app is ready.

Quick Start

import { setProvider, hide } from '@molecule/app-splash-screen'
import { provider } from '@molecule/app-splash-screen-react-native'

setProvider(provider)

// Later — once the root view has rendered / initial data + fonts are ready:
await hide()

Type

provider

Installation

npm install @molecule/app-splash-screen-react-native @molecule/app-i18n @molecule/app-logger @molecule/app-splash-screen expo-splash-screen

API

Interfaces

ReactNativeSplashScreenConfig

Configuration for the React Native splash screen provider.

interface ReactNativeSplashScreenConfig {
  /**
   * Whether to prevent auto-hide on app launch.
   * When true, the splash screen stays visible until explicitly hidden.
   * @default true
   */
  preventAutoHide?: boolean
}

Functions

createReactNativeSplashScreenProvider(config)

Creates a React Native splash screen provider backed by expo-splash-screen.

function createReactNativeSplashScreenProvider(
  config?: ReactNativeSplashScreenConfig,
): SplashScreenProvider
  • config — Optional provider configuration.

Returns: A SplashScreenProvider implementation for React Native.

Constants

provider

Default React Native splash screen provider.

const provider: SplashScreenProvider

Core Interface

Implements @molecule/app-splash-screen interface.

Bond Wiring

Setup function to register this provider with the core interface:

import { setProvider } from '@molecule/app-splash-screen'
import { provider } from '@molecule/app-splash-screen-react-native'

export function setupNativeSplashScreenReactNative(): void {
  setProvider(provider)
}

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-i18n ^1.0.1
  • @molecule/app-logger ^1.0.1
  • @molecule/app-splash-screen ^1.0.1
  • expo-splash-screen >=0.20.0

Runtime Dependencies

  • @molecule/app-i18n

  • @molecule/app-logger

  • @molecule/app-splash-screen

  • expo-splash-screen

  • Creating the default provider immediately arms prevent-auto-hide (config preventAutoHide defaults to true): the native splash stays up until the app explicitly calls hide(). If the app appears to hang on the splash forever, the missing hide() call is why. Use createReactNativeSplashScreenProvider({ preventAutoHide: false }) to keep the OS auto-hide behavior.

  • expo-splash-screen is loaded on demand — install with npx expo install expo-splash-screen.

  • show()/hide() OPTIONS (fade, duration, spinner) are ignored on this platform — getCapabilities() reports spinnerSupported: false, configurable: false. Style the splash via the Expo config plugin (app.jsonexpo-splash-screen), not at runtime.

  • show() cannot bring back an already-hidden splash; it only re-arms prevent-auto-hide for the current launch.

Translations

Translation strings are provided by @molecule/app-locales-splash-screen.