react-native-svg-types

SVG types for React Native

Usage no npm install needed!

<script type="module">
  import reactNativeSvgTypes from 'https://cdn.skypack.dev/react-native-svg-types';
</script>

README

react-native-svg-types

Type declaration for SVG module in React Native, to use with react-native-svg-transformer

yarn add -D thanhtunguet/react-native-svg-types

Usage

Add to tsconfig.json:

{
  "compilerOptions": {
    "types": [
      "react-native-svg-types"
    ]
  }
}