This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo-status-bar/build/styleToBarStyle.web.js.map

1 line
1.1 KiB
Plaintext
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
{"version":3,"file":"styleToBarStyle.web.js","sourceRoot":"","sources":["../src/styleToBarStyle.web.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,QAAwB,MAAM,EAC9B,WAA6B;IAE7B,IAAI,CAAC,WAAW,EAAE;QAChB,WAAW,GAAG,OAAO,CAAC;KACvB;IAED,IAAI,aAAa,GAAG,KAAK,CAAC;IAC1B,IAAI,KAAK,KAAK,MAAM,EAAE;QACpB,aAAa,GAAG,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;KAC5D;SAAM,IAAI,KAAK,KAAK,UAAU,EAAE;QAC/B,aAAa,GAAG,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;KAC5D;IAED,OAAO,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC;AACtE,CAAC","sourcesContent":["import { StatusBarStyle } from './StatusBar.types';\n\nexport default function styleToBarStyle(\n style: StatusBarStyle = 'auto',\n colorScheme: 'light' | 'dark'\n): 'light-content' | 'dark-content' {\n if (!colorScheme) {\n colorScheme = 'light';\n }\n\n let resolvedStyle = style;\n if (style === 'auto') {\n resolvedStyle = colorScheme === 'light' ? 'dark' : 'light';\n } else if (style === 'inverted') {\n resolvedStyle = colorScheme === 'light' ? 'light' : 'dark';\n }\n\n return resolvedStyle === 'light' ? 'light-content' : 'dark-content';\n}\n"]}