{"ast":null,"code":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { UnavailabilityError } from 'expo-modules-core';\nimport ExpoSplashScreen from \"./ExpoSplashScreen\";\nexport function preventAutoHideAsync() {\n  return _preventAutoHideAsync.apply(this, arguments);\n}\nfunction _preventAutoHideAsync() {\n  _preventAutoHideAsync = _asyncToGenerator(function* () {\n    if (!ExpoSplashScreen.preventAutoHideAsync) {\n      throw new UnavailabilityError('expo-splash-screen', 'preventAutoHideAsync');\n    }\n    return yield ExpoSplashScreen.preventAutoHideAsync();\n  });\n  return _preventAutoHideAsync.apply(this, arguments);\n}\nexport function hideAsync() {\n  return _hideAsync.apply(this, arguments);\n}\nfunction _hideAsync() {\n  _hideAsync = _asyncToGenerator(function* () {\n    if (!ExpoSplashScreen.hideAsync) {\n      throw new UnavailabilityError('expo-splash-screen', 'hideAsync');\n    }\n    return yield ExpoSplashScreen.hideAsync();\n  });\n  return _hideAsync.apply(this, arguments);\n}\nexport function hide() {\n  console.warn('SplashScreen.hide() is deprecated in favour of SplashScreen.hideAsync()');\n  hideAsync();\n}\nexport function preventAutoHide() {\n  console.warn('SplashScreen.preventAutoHide() is deprecated in favour of SplashScreen.preventAutoHideAsync()');\n  preventAutoHideAsync();\n}","map":{"version":3,"sources":["../src/SplashScreen.ts"],"names":[],"mappings":";AAAA,SAAS,mBAAmB,QAAQ,mBAAmB;AAEvD,OAAO,gBAAgB;AAqBvB,gBAAsB,oBAAoB,CAAA;EAAA,OAAA,qBAAA,CAAA,KAAA,OAAA,SAAA;AAAA;AAKzC,SAAA,sBAAA;EAAA,qBAAA,GAAA,iBAAA,CALM,aAAmC;IACxC,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE;MAC1C,MAAM,IAAI,mBAAmB,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;IAC5E;IACD,aAAa,gBAAgB,CAAC,oBAAoB,CAAA,CAAE;EACtD,CAAC;EAAA,OAAA,qBAAA,CAAA,KAAA,OAAA,SAAA;AAAA;AAQD,gBAAsB,SAAS,CAAA;EAAA,OAAA,UAAA,CAAA,KAAA,OAAA,SAAA;AAAA;AAK9B,SAAA,WAAA;EAAA,UAAA,GAAA,iBAAA,CALM,aAAwB;IAC7B,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE;MAC/B,MAAM,IAAI,mBAAmB,CAAC,oBAAoB,EAAE,WAAW,CAAC;IACjE;IACD,aAAa,gBAAgB,CAAC,SAAS,CAAA,CAAE;EAC3C,CAAC;EAAA,OAAA,UAAA,CAAA,KAAA,OAAA,SAAA;AAAA;AAMD,OAAM,SAAU,IAAI,CAAA,EAAA;EAClB,OAAO,CAAC,IAAI,CAAC,yEAAyE,CAAC;EACvF,SAAS,CAAA,CAAE;AACb;AAMA,OAAM,SAAU,eAAe,CAAA,EAAA;EAC7B,OAAO,CAAC,IAAI,CACV,+FAA+F,CAChG;EACD,oBAAoB,CAAA,CAAE;AACxB","sourcesContent":["import { UnavailabilityError } from 'expo-modules-core';\n\nimport ExpoSplashScreen from './ExpoSplashScreen';\n\n// @needsAudit\n/**\n * Makes the native splash screen (configured in `app.json`) remain visible until `hideAsync` is called.\n *\n * > **Important note**: It is recommended to call this in global scope without awaiting, rather than\n * > inside React components or hooks, because otherwise this might be called too late,\n * > when the splash screen is already hidden.\n *\n * @example\n * ```ts\n * import * as SplashScreen from 'expo-splash-screen';\n *\n * SplashScreen.preventAutoHideAsync();\n *\n * export default function App() {\n *  // ...\n * }\n * ```\n */\nexport async function preventAutoHideAsync(): Promise<boolean> {\n  if (!ExpoSplashScreen.preventAutoHideAsync) {\n    throw new UnavailabilityError('expo-splash-screen', 'preventAutoHideAsync');\n  }\n  return await ExpoSplashScreen.preventAutoHideAsync();\n}\n\n// @needsAudit\n/**\n * Hides the native splash screen immediately. Be careful to ensure that your app has content ready\n * to display when you hide the splash screen, or you may see a blank screen briefly. See the\n * [\"Usage\"](#usage) section for an example.\n */\nexport async function hideAsync(): Promise<boolean> {\n  if (!ExpoSplashScreen.hideAsync) {\n    throw new UnavailabilityError('expo-splash-screen', 'hideAsync');\n  }\n  return await ExpoSplashScreen.hideAsync();\n}\n\n/**\n * @deprecated Use `SplashScreen.hideAsync()` instead\n * @ignore\n */\nexport function hide(): void {\n  console.warn('SplashScreen.hide() is deprecated in favour of SplashScreen.hideAsync()');\n  hideAsync();\n}\n\n/**\n * @deprecated Use `SplashScreen.preventAutoHideAsync()` instead\n * @ignore\n */\nexport function preventAutoHide(): void {\n  console.warn(\n    'SplashScreen.preventAutoHide() is deprecated in favour of SplashScreen.preventAutoHideAsync()'\n  );\n  preventAutoHideAsync();\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"module"}