import {StatusBarStyle} from "react-native/Libraries/Components/StatusBar/StatusBar"; export interface IHeader { // bar 类型 readonly barStyle: HeaderBar // 设置 bar readonly setBar: (barStyle: StatusBarStyle) => void // 获取 bar readonly getBar: () => HeaderBarStyle readonly getDefaultBar: () => StatusBarStyle // 初始化 状态条 颜色 readonly initBar: (barStyle: StatusBarStyle, defaultBar?: StatusBarStyle) => void } /** * header bar 类型 */ export type HeaderBar = { // 默认 readonly default: 'default' /** * 黑色文字 */ readonly black: 'dark-content' /** * 白色文字 */ readonly white: 'light-content' }