
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
expo-alternate-app-icons
Advanced tools
Expo Alternate App Icons is a library that allows you to easily switch between different app icons in your Expo project.
Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ❌ |
Customizing app icons can be a valuable way to provide users with a personalized experience for your app. This library simplifies the process of implementing alternate app icons in your Expo project.
To get started, install the library using Expo CLI:
npx expo install expo-alternate-app-icons
Ensure your project is running Expo SDK 51+.
This package contains an Expo Plugin that copies your alternative icons to native projects.
expo-alternate-app-icons
to the plugins array inside your app.json.npx expo prebuild --clean
to apply the plugin changes.// app.json
{
// ...
"plugins": [
// ...
[
"expo-alternate-app-icons",
[
{
"name": "IconA", // The name of the alternate icon
"ios": {
"light":"./assets/icon-a.png",
"dark":"./assets/icon-a-dark.png",
"tinted":"./assets/icon-a-tinted.png"
}, // Path to the iOS app icons or if you do not want to use the variants enter directly the path
"android": {
"foregroundImage": "./assets/icon-a-foreground.png", // Path to Android foreground image
"backgroundColor": "#001413" // Background color for Android adaptive icon
}
},
{
"name": "IconB",
"ios": "./assets/icon-b.png", // Without variants,
"android": {
"foregroundImage": "./assets/icon-b-foreground.png",
"backgroundColor": "#001413"
}
},
{
"name": "IconC",
"ios": "./assets/icon-c.png",
"android": {
"foregroundImage": "./assets/icon-c-foreground.png",
"backgroundColor": "#001413"
}
}
]
]
]
}
Your icons should follow the same format as your default app icon.
A boolean value indicating whether the current device supports alternate app icons.
const supportsAlternateIcons: boolean;
To set app icon to IconA, use setAlternateAppIcon("IconA")
. This function takes icon name as argument.
To reset the app icon to the default pass null
like setAlternateAppIcon(null)
.
function setAlternateAppIcon(name: string | null): Promise<string | null>;
Retrieves the name of the currently active app icon.
function getAppIconName(): string | null;
Reset app icon to the default one.
This is just a shortcut for
setAlternateAppIcon(null)
.
function resetAppIcon(): Promise<void>;
yarn run build plugin # Start build on save
cd example && yarn expo prebuild # Execute the config plugin
FAQs
Provides functions that let you change the app icon
The npm package expo-alternate-app-icons receives a total of 2,326 weekly downloads. As such, expo-alternate-app-icons popularity was classified as popular.
We found that expo-alternate-app-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.