1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const WarningAggregator_1 = require("../WarningAggregator");
|
4 | function getSplashScreen(config) {
|
5 | var _a;
|
6 | if (config.splash || ((_a = config.ios) === null || _a === void 0 ? void 0 : _a.splash)) {
|
7 | return true;
|
8 | }
|
9 | else {
|
10 | return false;
|
11 | }
|
12 | }
|
13 | exports.getSplashScreen = getSplashScreen;
|
14 | function setSplashScreenAsync(config, projectRoot) {
|
15 | let splash = getSplashScreen(config);
|
16 | if (!splash) {
|
17 | return;
|
18 | }
|
19 | WarningAggregator_1.addWarningIOS('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 | }
|
21 | exports.setSplashScreenAsync = setSplashScreenAsync;
|
22 |
|
\ | No newline at end of file |