react-native-icon-converter
v0.0.3
Published
A command-line tool to convert SVG icons into formats compatible with both Android and iOS from a single source.
Readme
react-native-icon-converter
A command-line tool to convert SVG icons into formats compatible with both Android and iOS from a single source. Also has an expo plugin to copy the files into the correct native folders.
Installation
npm install react-native-icon-converter --save-devExpo Integration
Add the plugin to your Expo config in app.json or app.config.js:
{
"expo": {
"plugins": ["react-native-icon-converter"]
}
}With custom paths (optional):
{
"expo": {
"plugins": [
[
"react-native-icon-converter",
{
"ios": "./assets/ios-icons/Icons.xcassets",
"android": "./assets/android-icons"
}
]
]
}
}Usage Guide
- Place your SVG icons in the
assets/iconsfolder - Run the converter tool:
npx generate-icons - For Expo projects:
- Run
npx expo prebuildto copy the generated icons to the native folders - The next time you build your app, the icons will be included
- For non-Expo projects, you'll need to manually copy the generated files to their respective native folders.
- Run
Example use case using Lucide Icons inside native menus
iOS Icons

Android Icons

