- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import { StatusBar, useColorScheme } from 'react-native';
|
|
|
|
import { StatusBarProps } from './StatusBar.types';
|
|
import styleToBarStyle from './styleToBarStyle';
|
|
|
|
export default function ExpoStatusBar(props: StatusBarProps) {
|
|
const {
|
|
style,
|
|
animated,
|
|
hidden,
|
|
backgroundColor: backgroundColorProp,
|
|
translucent: translucentProp,
|
|
} = props;
|
|
|
|
// Default to true for translucent
|
|
const translucent = translucentProp ?? true;
|
|
|
|
// Pick appropriate default value depending on current theme, so if we are
|
|
// locked to light mode we don't end up with a light status bar
|
|
const colorScheme = useColorScheme();
|
|
const barStyle = styleToBarStyle(style, colorScheme);
|
|
|
|
// If translucent and no backgroundColor is provided, then use transparent
|
|
// background
|
|
let backgroundColor = backgroundColorProp;
|
|
if (translucent && !backgroundColor) {
|
|
backgroundColor = 'transparent';
|
|
}
|
|
|
|
return (
|
|
<StatusBar
|
|
translucent={translucent}
|
|
barStyle={barStyle}
|
|
backgroundColor={backgroundColor}
|
|
animated={animated}
|
|
hidden={hidden}
|
|
/>
|
|
);
|
|
}
|