@expo/prebuild-config
Version:
Get the prebuild config
31 lines (30 loc) • 1.02 kB
TypeScript
import { ExpoConfig } from '@expo/config-types';
export type SplashScreenConfig = {
xxxhdpi?: string;
xxhdpi?: string;
xhdpi?: string;
hdpi?: string;
mdpi?: string;
image?: string;
backgroundColor?: string;
resizeMode: 'contain' | 'cover' | 'native';
drawable?: {
icon: string;
darkIcon?: string;
};
dark?: {
backgroundColor?: string;
xxxhdpi?: string;
xxhdpi?: string;
xhdpi?: string;
hdpi?: string;
mdpi?: string;
image?: string;
resizeMode?: 'contain' | 'cover' | 'native';
};
};
export type AndroidSplashConfig = {
imageWidth?: number;
} & SplashScreenConfig;
export declare function getAndroidSplashConfig(config: Pick<ExpoConfig, 'splash' | 'android'>, props?: AndroidSplashConfig | null): AndroidSplashConfig | null;
export declare function getAndroidDarkSplashConfig(config: Pick<ExpoConfig, 'splash' | 'android'>, props?: AndroidSplashConfig | null): SplashScreenConfig | null;