Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-splash-screen

Package Overview
Dependencies
Maintainers
28
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-splash-screen

Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.

  • 0.29.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
28
Created

What is expo-splash-screen?

The expo-splash-screen package is used to control and customize the splash screen for Expo and React Native apps. It allows developers to show a splash screen while the app is loading, hide it once the app is ready, and customize its appearance.

What are expo-splash-screen's main functionalities?

Preventing Auto-Hide

This feature allows you to prevent the splash screen from auto-hiding. This is useful if you need to perform some asynchronous operations before the splash screen is hidden.

import * as SplashScreen from 'expo-splash-screen';

SplashScreen.preventAutoHideAsync();

Hiding the Splash Screen

This feature allows you to manually hide the splash screen once your app is ready. This is typically done after your app has finished loading all necessary resources.

import * as SplashScreen from 'expo-splash-screen';

async function hideSplashScreen() {
  await SplashScreen.hideAsync();
}

Showing the Splash Screen

This feature allows you to manually show the splash screen. This can be useful if you need to display the splash screen again after it has been hidden.

import * as SplashScreen from 'expo-splash-screen';

async function showSplashScreen() {
  await SplashScreen.showAsync();
}

Other packages similar to expo-splash-screen

Keywords

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc