Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 564 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 564 Bytes

SVGR Helper

Tool to quick convert multiple svg files in React or ReactNative components

Based on SVGR

Usage

Create input folder and put inside it svg files. Then run command:

npm start [-- options]

Options

  • --icon: Replace SVG width and height with 1em to make SVG inherit text size.
  • --native: Modify all SVG nodes with uppercase and use react-native-svg template.
  • --typescript: Generate .tsx files with TypeScript bindings.
  • --prefix <prefix-value>: Add a prefix to components and files name.