MaterialDesign icon indicating copy to clipboard operation
MaterialDesign copied to clipboard

Write a script to generate `@mdi/react-native` from `@mdi/react`

Open Templarian opened this issue 5 years ago • 2 comments

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!

Templarian avatar Feb 04 '20 06:02 Templarian

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.

Templarian avatar Feb 06 '20 05:02 Templarian

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.

dohomi avatar Sep 08 '22 15:09 dohomi

Bumping this thread? Any solutions for using react native here? Right now we're copying SVG pathD strings into our codebase :(

schlosser avatar Dec 24 '22 23:12 schlosser