0.0.7 • Published 5 years ago

react-native-icon-builder v0.0.7

Weekly downloads
26
License
-
Repository
github
Last release
5 years ago

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