react-native-edge-to-edge
Version:
Effortlessly enable edge-to-edge display in React Native
16 lines (12 loc) • 467 B
text/typescript
type SystemBarsProp<T> = T | { statusBar?: T; navigationBar?: T };
export type SystemBarStyle = "auto" | "inverted" | "light" | "dark";
export type SystemBarsEntry = {
statusBarStyle: SystemBarStyle | undefined;
navigationBarStyle: SystemBarStyle | undefined;
statusBarHidden: boolean | undefined;
navigationBarHidden: boolean | undefined;
};
export type SystemBarsProps = {
style?: SystemBarsProp<SystemBarStyle>;
hidden?: SystemBarsProp<boolean>;
};