0

We are considering using react-native-svg in our app. We are a bit tempted to use it liberally around the app to create pretty much the visuals of every page, since it should scale better than using images. We are targeting both Android and iOS, tablets and phones.

Does it make sense to make heavy use of SVGs around the app with react-native-svg instead of using PNG images?

Gazihan Alankus
  • 11,256
  • 7
  • 46
  • 57

1 Answers1

0

IMHO, you should not. I had to deal with svgs a lot of time, and it was always way more complex than pure PNG. If you have to draw icons on tabs or on menus, use PNG, PNG@2x, PNG@3x. react-native-svg can be useful for remote SVG loading, like content managed in a back-office.

MBach
  • 1,647
  • 16
  • 30
  • Than you for your insights, I appreciate it. Did you mean "remote SVG loading"? What exactly do you mean there? – Gazihan Alankus Feb 05 '20 at 10:47
  • You can load content which is not included in your folder `assets/images` for instance. Like a dynamic `drawer` returned by an API call, where every item has a link, and a picture. – MBach Feb 05 '20 at 14:36