UNPKG

1.21 kBSource Map (JSON)View Raw
1{"version":3,"file":"SplashScreen.js","sourceRoot":"","sources":["../../src/ios/SplashScreen.ts"],"names":[],"mappings":";;AACA,4DAAqD;AAErD,SAAgB,eAAe,CAAC,MAAkB;;IAChD,IAAI,MAAM,CAAC,MAAM,WAAI,MAAM,CAAC,GAAG,0CAAE,MAAM,CAAA,EAAE;QACvC,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAND,0CAMC;AAED,SAAgB,oBAAoB,CAAC,MAAkB,EAAE,WAAmB;IAC1E,IAAI,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO;KACR;IAED,iCAAa,CACX,QAAQ,EACR,mHAAmH,EACnH,gFAAgF,CACjF,CAAC;AACJ,CAAC;AAXD,oDAWC","sourcesContent":["import { ExpoConfig } from '../Config.types';\nimport { addWarningIOS } from '../WarningAggregator';\n\nexport function getSplashScreen(config: ExpoConfig) {\n if (config.splash || config.ios?.splash) {\n return true;\n } else {\n return false;\n }\n}\n\nexport function setSplashScreenAsync(config: ExpoConfig, projectRoot: string) {\n let splash = getSplashScreen(config);\n if (!splash) {\n return;\n }\n\n addWarningIOS(\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