UNPKG

1.28 kBSource Map (JSON)View Raw
1{"version":3,"file":"SplashScreen.js","sourceRoot":"","sources":["../../src/android/SplashScreen.ts"],"names":[],"mappings":";;AACA,4DAAyD;AAEzD,SAAgB,eAAe,CAAC,MAAkB;;IAChD,IAAI,OAAA,MAAM,CAAC,MAAM,0CAAE,KAAK,kBAAI,MAAM,CAAC,OAAO,0CAAE,MAAM,0CAAE,IAAI,CAAA,EAAE;QACxD,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAND,0CAMC;AAEM,KAAK,UAAU,oBAAoB,CAAC,MAAkB,EAAE,WAAmB;IAChF,IAAI,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO;KACR;IAED,qCAAiB,CACf,QAAQ,EACR,mHAAmH,EACnH,gFAAgF,CACjF,CAAC;AACJ,CAAC;AAXD,oDAWC","sourcesContent":["import { ExpoConfig } from '../Config.types';\nimport { addWarningAndroid } from '../WarningAggregator';\n\nexport function getSplashScreen(config: ExpoConfig) {\n if (config.splash?.image || config.android?.splash?.mdpi) {\n return true;\n } else {\n return false;\n }\n}\n\nexport async function setSplashScreenAsync(config: ExpoConfig, projectRoot: string) {\n let splash = getSplashScreen(config);\n if (!splash) {\n return;\n }\n\n addWarningAndroid(\n 'splash',\n 'This is the image that your app uses on the loading screen, we recommend installing and using expo-splash-screen.',\n 'https://github.com/expo/expo/blob/master/packages/expo-splash-screen/README.md'\n );\n}\n"]}
\No newline at end of file