UNPKG

@howincodes/expo-dynamic-app-icon

Version:
17 lines (13 loc) 428 B
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 ""; }