jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
515 stars 81 forks source link

Support for react native functionnal components #216

Closed LucasBourgeois closed 6 months ago

LucasBourgeois commented 6 months ago

Hello Maintainers,

Im opening this PR to add a support of React Native in your project. As you already support React in it, this PR is widely get it's inspiration from existing React support.

It's the first time that im contributing to a public repository.

Im hoping that it'll suit you. Ive runned all scripts and used generated components in my own app as a test.

Thanks for your feedback

LucasBourgeois commented 6 months ago

For additionnal context, the main purpose of this is to generate ReactNative components to imports in project and the final step is to be able to import dynamically those components. It seems that without a mapped object, it shouldnt be possible.. Im starting to be out of ideas, if anyone has some, it's welcome

LucasBourgeois commented 6 months ago

Using more deeply the result of this isnt giving a dynamic usage