MaterialDesign
MaterialDesign copied to clipboard
Write a script to generate `@mdi/react-native` from `@mdi/react`
It looks like with a few small tweaks a react native package should be possible.
- Take https://github.com/Templarian/MaterialDesign-React
- With this: https://www.npmjs.com/package/react-native-svg
- Regex it into a working component
- Research if anything is special needed to publish a react native component to NPM
- Publish as
@mdi/react-native - Find people that know react native to test it
I'm sure there would be a good number of users that could benefit from this. If anyone sees this and is interested in helping with this effort let me know!
If it's as simple as adding a new import and uppercasing a few SVG tags this might be easier than I think?
I wonder if we could just insert the import line and then regex replace the tags with capital tags for g, path, svg.
Did anybody find a solution to use @mdi in react-native? I'd love to use the icons but would like to avoid the font version which is available.
Bumping this thread? Any solutions for using react native here? Right now we're copying SVG pathD strings into our codebase :(