expo-status-bar
Version:
Provides the same interface as the React Native StatusBar API, but with slightly different defaults to work great in Expo environments.
14 lines • 498 B
JavaScript
export default function styleToBarStyle(style = 'auto', colorScheme) {
if (!colorScheme) {
colorScheme = 'light';
}
let resolvedStyle = style;
if (style === 'auto') {
resolvedStyle = colorScheme === 'light' ? 'dark' : 'light';
}
else if (style === 'inverted') {
resolvedStyle = colorScheme === 'light' ? 'light' : 'dark';
}
return resolvedStyle === 'light' ? 'light-content' : 'dark-content';
}
//# sourceMappingURL=styleToBarStyle.web.js.map