react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

SVG support for bottom tab

Open jasonKRR opened this issue 3 years ago • 5 comments

🚀 Feature

(A clear and concise description of what the feature is.)

SVG support for bottom tab

Motivation

Images for bottom tab will have great quality than current one

Pitch

SVG is widely used format, and SVG has small size compared to other image format, which means your application can be faster and lighter !

jasonKRR avatar Apr 15 '22 06:04 jasonKRR

I will second this ask as I'm currently using a PNG and the image quality is less than ideal. Being able to utilize an SVG (or even an SVG as a JSX component) would be excellent.

jcerone-boom avatar Apr 20 '22 17:04 jcerone-boom

Guys, any progress or workarounds on this? I'm approaching release and will have to improve the quality of the icons. For a library that primes for performance, I can't get why this hasn't been a priority

mattwebhub avatar Feb 22 '24 14:02 mattwebhub

@mattwebhub You can use SVGs in the bottom tab its just a bit complicated to get it all setup at first. You will need react-native-vector-icons. Create an icoMoon icon set and download the font files and put those into your native project. Use the createIconSetFromIcoMoon function then get the icons from that where you setRoot. Then just put the icons from there into the navigator options as tab icons.

ChristianLippaGoodfood avatar Apr 04 '24 18:04 ChristianLippaGoodfood

@mattwebhub You can use SVGs in the bottom tab its just a bit complicated to get it all setup at first. You will need react-native-vector-icons. Create an icoMoon icon set and download the font files and put those into your native project. Use the createIconSetFromIcoMoon function then get the icons from that where you setRoot. Then just put the icons from there into the navigator options as tab icons.

could you show some small example code?

CrisangerA avatar Apr 21 '24 23:04 CrisangerA

I am currently trying the configuration suggested in the documentation. react-native-svg

  • Captura de pantalla 2024-04-21 a la(s) 18 36 23

But when running the application on Android I get the following error.

  • Screenshot_1713742750

If anyone knows anything about this, I would appreciate your comments.

CrisangerA avatar Apr 21 '24 23:04 CrisangerA