1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const withAndroidSplashScreen_1 = require("@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen");
4const withIosSplashScreen_1 = require("@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen");
5const config_plugins_1 = require("expo/config-plugins");
6const pkg = require('expo-splash-screen/package.json');
7const withSplashScreen = (config) => {
8    // For simplicity, we'll version the unversioned code in expo-splash-screen.
9    // This adds more JS to the package overall, but the trade-off is less copying between expo-cli/expo.
10    config = (0, withAndroidSplashScreen_1.withAndroidSplashScreen)(config);
11    config = (0, withIosSplashScreen_1.withIosSplashScreen)(config);
12    return config;
13};
14exports.default = (0, config_plugins_1.createRunOncePlugin)(withSplashScreen, pkg.name, pkg.version);
15