{"version":3,"file":"ExpoStatusBar.android.js","sourceRoot":"","sources":["../src/ExpoStatusBar.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAqB;IACzD,MAAM,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,eAAe,EAAE,mBAAmB,EACpC,WAAW,EAAE,eAAe,GAC7B,GAAG,KAAK,CAAC;IAEV,kCAAkC;IAClC,MAAM,WAAW,GAAG,eAAe,IAAI,IAAI,CAAC;IAE5C,0EAA0E;IAC1E,+DAA+D;IAC/D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAErD,0EAA0E;IAC1E,aAAa;IACb,IAAI,eAAe,GAAG,mBAAmB,CAAC;IAC1C,IAAI,WAAW,IAAI,CAAC,eAAe,EAAE;QACnC,eAAe,GAAG,aAAa,CAAC;KACjC;IAED,OAAO,CACL,oBAAC,SAAS,IACR,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { StatusBar } from 'react-native';\n\nimport { StatusBarProps } from './StatusBar.types';\nimport styleToBarStyle from './styleToBarStyle';\nimport useColorScheme from './useColorScheme';\n\nexport default function ExpoStatusBar(props: StatusBarProps) {\n  const {\n    style,\n    animated,\n    hidden,\n    backgroundColor: backgroundColorProp,\n    translucent: translucentProp,\n  } = props;\n\n  // Default to true for translucent\n  const translucent = translucentProp ?? true;\n\n  // Pick appropriate default value depending on current theme, so if we are\n  // locked to light mode we don't end up with a light status bar\n  const colorScheme = useColorScheme();\n  const barStyle = styleToBarStyle(style, colorScheme);\n\n  // If translucent and no backgroundColor is provided, then use transparent\n  // background\n  let backgroundColor = backgroundColorProp;\n  if (translucent && !backgroundColor) {\n    backgroundColor = 'transparent';\n  }\n\n  return (\n    <StatusBar\n      translucent={translucent}\n      barStyle={barStyle}\n      backgroundColor={backgroundColor}\n      animated={animated}\n      hidden={hidden}\n    />\n  );\n}\n"]}