Socket
Book a DemoInstallSign in
Socket

react-native-icon-converter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-icon-converter

A command-line tool to convert SVG icons into formats compatible with both Android and iOS from a single source.

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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-dev

Expo 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/icons folder
  • Run the converter tool:
    npx generate-icons
    
  • For Expo projects:
    • Run npx expo prebuild to 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.

Example use case using Lucide Icons inside native menus

iOS Icons

iOS Icons

Android Icons

Android Icons

Keywords

react-native

FAQs

Package last updated on 05 May 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.