@howincodes/expo-dynamic-app-icon
Version:
Programmatically change the app icon in Expo.
18 lines (17 loc) • 486 B
TypeScript
import { ConfigPlugin } from "@expo/config-plugins";
type AndroidAdaptiveIconConfig = {
foregroundImage: string;
backgroundColor: string;
};
type IconSet = Record<string, IconSetProps>;
type IosIconSet = string | {
light: string;
dark?: string;
tinted?: string;
};
type IconSetProps = {
ios?: IosIconSet;
android?: string | AndroidAdaptiveIconConfig;
};
declare const withDynamicIcon: ConfigPlugin<string[] | IconSet | void>;
export default withDynamicIcon;