79 lines
2.0 KiB
TypeScript
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;
|
||
|
};
|
||
|
};
|
||
|
};
|