Skip to content
Build app icons for your React Native project from SVG
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
.prettierrc.json
.travis.yml
README.md
package-lock.json
package.json

README.md

react-native-icon-builder

Mobile app icon generator for React Native projects.

Features

  • Reads SVG, writes PNG
  • Supports generation of:
    • iOS icons
    • Android icons
    • React native images
  • Fast, using sharp
  • No non-npm dependencies

Usage

  1. Create config file icon-config.json

    {
      "assets": {
        "inputDir": "src/images",
        "outputDir": "src/images/generated"
      },
      "android": {
        "icon": "icons/android.svg",
        "outputDir": "android/src/main/res"
      },
      "ios": {
        "icon": "icons/ios.svg",
        "outputDir": "ios/AwesomeProject/images.xcassets"
      }
    }
  2. Generate images with

    react-native-icon-builder icon-config.json
You can’t perform that action at this time.