kristerkari / react-native-svg-transformer

Import SVG files in your React Native project the same way that you would in a Web application.
MIT License
1.57k stars 116 forks source link

Implement as Babel macro #16

Open alamothe opened 5 years ago

alamothe commented 5 years ago

Hello, Is it possible to implement as babel macro? (https://github.com/kentcdodds/babel-plugin-macros)

This way, it would work out-of-the-box with Expo, with no configuration necessary. This is how I load graphql files for example. Thanks!

kristerkari commented 5 years ago

Hi,

I think that it is totally possible to do the same thing with Babel, but I'm not sure could the hot reload/live reload be supported with using a Babel plugin. Using a Metro packager transformer is currently working out well, except that there are some improvements needed to make the Expo use easier.