Convert

airfoil convert [svg]

convert svg

Converts .svg files to .tsx files for use in React Native.

Also installs react-native-svg if not already installed.

Usage

  • First, add your .svg files to the app/assets/svg directory.
airfoil convert svg
airfoil convert svg --cleanup # to remove app/assets/svg after successful conversion

Args:

FlagAliasExplanation
--cleanup[]remove source .svg files after conversion
--verbose[-v]print more detailed logs
--debug[]print all stdout for debugging