You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging into source code, I found that it might be pretty easy to implement react-icons for React Native with a simple replacement via react-native-svg as every icon is described as a tree.
It should require replacement of a tag in a tree builder as well as general svg tag replacement to an Svg component from react-native-svg.
I tried that in a built version locally and a few icons seem to be looking just fine.
Do you see any significant flaws in that approach?
It might be released under prefix react-icons/native/md etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Digging into source code, I found that it might be pretty easy to implement
react-icons
for React Native with a simple replacement viareact-native-svg
as every icon is described as a tree.It should require replacement of a tag in a tree builder as well as general
svg
tag replacement to anSvg
component fromreact-native-svg
.The code might look something like this:
I tried that in a built version locally and a few icons seem to be looking just fine.
Do you see any significant flaws in that approach?
It might be released under prefix
react-icons/native/md
etc.Beta Was this translation helpful? Give feedback.
All reactions