UNPKG

999 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const WarningAggregator_1 = require("../WarningAggregator");
4function getSplashScreen(config) {
5 var _a, _b, _c;
6 if (((_a = config.splash) === null || _a === void 0 ? void 0 : _a.image) || ((_c = (_b = config.android) === null || _b === void 0 ? void 0 : _b.splash) === null || _c === void 0 ? void 0 : _c.mdpi)) {
7 return true;
8 }
9 else {
10 return false;
11 }
12}
13exports.getSplashScreen = getSplashScreen;
14async function setSplashScreenAsync(config, projectRoot) {
15 let splash = getSplashScreen(config);
16 if (!splash) {
17 return;
18 }
19 WarningAggregator_1.addWarningAndroid('splash', 'This is the image that your app uses on the loading screen, we recommend installing and using expo-splash-screen.', 'https://github.com/expo/expo/blob/master/packages/expo-splash-screen/README.md');
20}
21exports.setSplashScreenAsync = setSplashScreenAsync;
22//# sourceMappingURL=SplashScreen.js.map
\No newline at end of file