@temmiland/expo-extra-app-icons
v1.0.1
Published
Manage alternate app icons programmatically with Expo and React Native.
Downloads
16
Maintainers
Readme
expo-extra-app-icons
Manage alternate app icons programmatically in Expo and React Native. Switch icons dynamically for iOS and Android without ejecting your project.
Features
- Programmatically change your app icon
- Supports iOS and Android
- Easy setup with Expo plugins
Installation
bunx expo install @temmiland/expo-extra-app-iconsSetup
1. Add icon files
Place all your alternate icon files in a folder (e.g., assets/images/app-icons).
2. Configure the plugin
Add the plugin to your app.json under the plugins array:
"plugins": [
[
"@temmiland/expo-extra-app-icons",
{
"expoExtraAppIconsPath": "assets/images/app-icons",
"icons": [
{
"name": "icon",
"androidForeground": "[email protected]",
"androidBackground": "[email protected]",
"androidMonochrome": "[email protected]",
"iosIconFile": "icon.icon",
"isMainIcon": true,
"platforms": ["ios", "android"]
},
{
"name": "pride",
"androidForeground": "[email protected]",
"androidBackground": "[email protected]",
"androidMonochrome": "[email protected]",
"iosIconFile": "pride.icon",
"platforms": ["ios", "android"]
}
]
}
]
]💡 Tip: The plugin fully manages your app icon, so make sure you set one with (
isMainIcon: true).
3. Prebuild the project
bunx expo prebuild --clean4. Run your dev client
bunx expo run:ios
bunx expo run:androidUsage
import { setAppIcon, getAppIcon } from '@temmiland/expo-extra-app-icons';
const [currentIcon, setCurrentIcon] = useState(getAppIcon());
setAppIcon(props.iconName);
setCurrentIcon(props.iconName);Support
If you like this project and want to support it:
- ⭐ Star it on GitHub
- 🔄 Share it with friends or colleagues
- 🐞 Report issues or suggest features
- 💡 Contribute code or improvements

