This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

22 lines
944 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SplashScreen_1 = require("../../android/SplashScreen");
const SplashScreen_2 = require("../../ios/SplashScreen");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-splash-screen';
exports.withSplashScreen = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedSplashScreen,
});
};
const withUnversionedSplashScreen = core_plugins_1.createRunOncePlugin(config => {
config = SplashScreen_1.withSplashScreen(config);
config = SplashScreen_2.withSplashScreen(config);
return config;
}, packageName);
exports.default = exports.withSplashScreen;
//# sourceMappingURL=expo-splash-screen.js.map