Skip to content

Turns SVG files into React Native (Web) (+optional ReasonML) components, without shitload of dependencies

License

Notifications You must be signed in to change notification settings

broerjuang/react-from-svg

 
 

Repository files navigation

react-from-svg

Build Status Version

Repo on GitHub Repo on GitLab

Turns SVG files into React Native (Web) (+ optional ReasonML) components

Usage

react-from-svg [sourcePath] [outputPath] [--with-reason] [--remove-fill] [--reason-module-path]

Examples

Just React Native / React Native Web SVGs, with fill svg props removed, nice for icons

react-from-svg assets/svgs src/Svgs --remove-fill

React Native (Web) + ReasonML bindings SVGs

react-from-svg assets/svgs src/Svgs --with-reason

React Native (Web) + ReasonML bindings SVGs and absolute path : it's usefull if you defined a webpack alias and you don't generate your bucklescript output "in-source"

react-from-svg assets/svgs src/Svgs --with-reason --reason-module-path=./src/components

About

Turns SVG files into React Native (Web) (+optional ReasonML) components, without shitload of dependencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Reason 78.4%
  • JavaScript 21.6%