How to use react-native-bootsplash - 4 common examples

To help you get started, we’ve selected a few react-native-bootsplash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RocketChat / Rocket.Chat.ReactNative / storybook / index.js View on Github external
import { AppRegistry } from 'react-native';
import { getStorybookUI, configure } from '@storybook/react-native'; // eslint-disable-line

import RNBootSplash from 'react-native-bootsplash';
import 'react-native-gesture-handler';

RNBootSplash.hide();

// import stories
configure(() => {
	require('./stories');
}, module);

// Refer to https://github.com/storybooks/storybook/tree/master/app/react-native#start-command-parameters
// To find allowed options for getStorybookUI
const StorybookUIRoot = getStorybookUI({});

// If you are using React Native vanilla and after installation you don't see your app name here, write it manually.
// If you use Expo you can safely remove this line.
AppRegistry.registerComponent('RocketChatRN', () => StorybookUIRoot);

export default StorybookUIRoot;
github zoontek / react-native-bootsplash / example / App.js View on Github external
let init = async () => {
    BootSplash.hide();

    // You can uncomment this line to add a delay on app startup
    // let data = await fakeApiCallWithoutBadNetwork(3000);

    let useNativeDriver = true;

    Animated.stagger(250, [
      Animated.spring(translateY.current, { useNativeDriver, toValue: -50 }),
      Animated.spring(translateY.current, {
        useNativeDriver,
        toValue: Dimensions.get("window").height,
      }),
    ]).start();

    Animated.timing(opacity.current, {
      useNativeDriver,
github pankod / react-native-boilerplate / src / App.tsx View on Github external
public componentDidMount(): void {
        I18n.init();
        BootSplash.hide();
    }
github berty / berty / js / packages / messenger-app / App.tsx View on Github external
useMountEffect(() => {
		RNBootSplash.hide({ fade: true })
	})
	return null

react-native-bootsplash

Display a bootsplash on your app starts. Hide it when you want.

MIT
Latest version published 2 months ago

Package Health Score

80 / 100
Full package analysis

Popular react-native-bootsplash functions