react-native-svg-web-transform
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

react-native-svg-web-transform

This library can be used as a drop-in replacement for react-native-svg when targeting the web. Inspiration for this library was react-native-svg-web. Sadly, it doesn't seem to be maintained anymore and doesn't seem to actually work. On top of that, this library will also convert group transforms to the correct web svg props. In example:

<G translateX={25} translateY={100} scale={2} />

is transformed into

<g transform="translate(25,100) scale(2)" />

There are two ways to drop this library in as replacement.

How to change your webpack config

module.exports = {
  resolve: {
    alias: {
      'react-native-svg': 'react-native-svg-web-transform'
    }
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-svg-web-transform

Weekly Downloads

22

Version

1.3.2

License

MIT

Unpacked Size

111 kB

Total Files

15

Last publish

Collaborators

  • xanderd