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.
2021-04-02 02:24:13 +03:00

79 lines
2.0 KiB
TypeScript

import { SplashScreenImageResizeModeType, SplashScreenStatusBarStyleType } from './constants';
export declare type Color = [number, number, number, number];
/**
* iOS SplashScreen config.
*/
export declare type IosSplashScreenConfig = {
backgroundColor: Color;
image?: string;
imageResizeMode?: SplashScreenImageResizeModeType;
statusBar?: {
hidden?: boolean;
style?: SplashScreenStatusBarStyleType;
};
darkMode?: {
backgroundColor?: Color;
image?: string;
};
};
/**
* Android SplashScreen config.
*/
export declare type AndroidSplashScreenConfig = {
backgroundColor: Color;
image?: string;
imageResizeMode?: SplashScreenImageResizeModeType;
statusBar?: {
hidden?: boolean;
style?: SplashScreenStatusBarStyleType;
translucent?: boolean;
backgroundColor?: Color;
};
darkMode?: {
backgroundColor?: Color;
image?: string;
statusBar?: {
style?: SplashScreenStatusBarStyleType;
backgroundColor?: Color;
};
};
};
/**
* The very same as `IosSplashScreenConfig`, but JSON-friendly (values for each property are JavaScript built-in types).
*/
export declare type IosSplashScreenConfigJSON = {
backgroundColor: string;
image?: string;
imageResizeMode?: string;
statusBar?: {
hidden?: boolean;
style?: string;
};
darkMode?: {
backgroundColor?: string;
image?: string;
};
};
/**
* The very same as `IosSplashScreenConfig`, but JSON-friendly (values for each property are JavaScript built-in types).
*/
export declare type AndroidSplashScreenConfigJSON = {
backgroundColor: string;
image?: string;
imageResizeMode?: string;
statusBar?: {
hidden?: boolean;
style?: string;
translucent?: boolean;
backgroundColor?: string;
};
darkMode?: {
backgroundColor?: string;
image?: string;
statusBar?: {
style?: string;
backgroundColor?: string;
};
};
};