top of page
Keyboard and Mouse

Blog

  • Writer's pictureLemanK

My first react-native based library - SVGR-IconKit

Here's the little background of this story...


Recently resumed studying about react-native and expo project and looking for a newer icon solution instead of embedding font files. SVG content rendering will be a better choice but right now it's leaking direct support from original packages - Just like font-awsome5, it's good for react.js in website but not yet in react-native / Expo.


Thanks to @gregberge/svgr provided solution. That is a good way to convert all SVG files into JS readable resource for React.js / ReactNative - by command line, or directly convert by webpack/rollup during build time.


But, it's still missing something like react-native-vector-icons in SVG... So here we are. i created my first react library - SVGR-IconKit, to render SVG Icon content with famous and common iconset from the market. And you can use the same package for both web and react-native (or expo).



If anyone of you are looking for similar thing, welcome to install / lookup from npmjs.com or checkout the details from github page https://svgr-iconkit.dev/ or lookup all icons from explorer


Enjoy and give me notes if find any problems!

Recent Posts

See All

Lets feed more here, with React/redux

After a long studies & works with react(native)/redux toolset, it's a fine set to start with the tools, how we play with state, memorized content and get it started with 5x developers. When you doing

Comments


bottom of page