@howincodes/expo-dynamic-app-icon
Version:
Programmatically change the app icon in Expo.
17 lines (13 loc) • 428 B
text/typescript
import { DynamicAppIconRegistry } from "./types";
export type IconName = DynamicAppIconRegistry["IconName"];
export function setAppIcon(
name: IconName | null,
isInBackground: boolean = true
): IconName | "DEFAULT" | false {
console.error("setAppIcon is not supported on web");
return false;
}
export function getAppIcon(): IconName | "DEFAULT" {
console.error("getAppIcon is not supported on web");
return "";
}