expo-splash-screen
Version:
Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.
22 lines (21 loc) • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.withAndroidSplashScreen = void 0;
const config_plugins_1 = require("expo/config-plugins");
const getAndroidSplashConfig_1 = require("./getAndroidSplashConfig");
const withAndroidSplashDrawables_1 = require("./withAndroidSplashDrawables");
const withAndroidSplashImages_1 = require("./withAndroidSplashImages");
const withAndroidSplashMainActivity_1 = require("./withAndroidSplashMainActivity");
const withAndroidSplashStrings_1 = require("./withAndroidSplashStrings");
const withAndroidSplashStyles_1 = require("./withAndroidSplashStyles");
const withAndroidSplashScreen = (config, props) => {
const splash = (0, getAndroidSplashConfig_1.getAndroidSplashConfig)(props);
return (0, config_plugins_1.withPlugins)(config, [
withAndroidSplashMainActivity_1.withAndroidSplashMainActivity,
[withAndroidSplashImages_1.withAndroidSplashImages, splash],
[withAndroidSplashDrawables_1.withAndroidSplashDrawables, splash],
[withAndroidSplashStyles_1.withAndroidSplashStyles, splash],
[withAndroidSplashStrings_1.withAndroidSplashStrings, splash],
]);
};
exports.withAndroidSplashScreen = withAndroidSplashScreen;