UNPKG

@expo/prebuild-config

Version:
86 lines (85 loc) 2.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withIosSplashScreen = void 0; function _configPlugins() { const data = require("@expo/config-plugins"); _configPlugins = function () { return data; }; return data; } function _debug() { const data = _interopRequireDefault(require("debug")); _debug = function () { return data; }; return data; } function _getIosSplashConfig() { const data = require("./getIosSplashConfig"); _getIosSplashConfig = function () { return data; }; return data; } function _withIosSplashAssets() { const data = require("./withIosSplashAssets"); _withIosSplashAssets = function () { return data; }; return data; } function _withIosSplashColors() { const data = require("./withIosSplashColors"); _withIosSplashColors = function () { return data; }; return data; } function _withIosSplashInfoPlist() { const data = require("./withIosSplashInfoPlist"); _withIosSplashInfoPlist = function () { return data; }; return data; } function _withIosSplashScreenStoryboard() { const data = require("./withIosSplashScreenStoryboard"); _withIosSplashScreenStoryboard = function () { return data; }; return data; } function _withIosSplashScreenStoryboardImage() { const data = require("./withIosSplashScreenStoryboardImage"); _withIosSplashScreenStoryboardImage = function () { return data; }; return data; } function _withIosSplashXcodeProject() { const data = require("./withIosSplashXcodeProject"); _withIosSplashXcodeProject = function () { return data; }; return data; } function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } const debug = (0, _debug().default)('expo:prebuild-config:expo-splash-screen:ios'); const withIosSplashScreen = (config, props) => { // If the user didn't specify a splash object, infer the splash object from the Expo config. const splashConfig = (0, _getIosSplashConfig().getIosSplashConfig)(config, props ?? null); debug(`config:`, props); return (0, _configPlugins().withPlugins)(config, [[_withIosSplashInfoPlist().withIosSplashInfoPlist, splashConfig], [_withIosSplashAssets().withIosSplashAssets, splashConfig], [_withIosSplashColors().withIosSplashColors, splashConfig], // Add the image settings to the storyboard. [_withIosSplashScreenStoryboardImage().withIosSplashScreenImage, splashConfig], // Link storyboard to xcode project. // TODO: Maybe fold this into the base mod. _withIosSplashXcodeProject().withIosSplashXcodeProject, // Insert the base mod last, no other ios.splashScreenStoryboard mods can be added after this. _withIosSplashScreenStoryboard().withIosSplashScreenStoryboardBaseMod]); }; exports.withIosSplashScreen = withIosSplashScreen; //# sourceMappingURL=withIosSplashScreen.js.map