eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 172 forks source link

Support for SVG images #794

Open luciandinu opened 8 years ago

luciandinu commented 8 years ago

Support to use SVG images as Image:Type ( https://tabrisjs.com/documentation/latest/types#image )

gmitros commented 8 years ago

This would require external libraries on Android and iOS. As SVG support is probably not so commonly needed, instead of adding it to the core we could create a widget for it (similar to the maps widget.) Can you tell us what is your use case?

luciandinu commented 8 years ago

The use case scenario was to have resolution independent image assets (for icons - similar in concept with Android Drawables - http://developer.android.com/reference/android/graphics/drawable/VectorDrawable.html), so that we don't have to provide multiple sizes for icons on each platform.

cookieguru commented 8 years ago

@luciandinu Would #698 suffice for your use case?

luciandinu commented 8 years ago

Yes! This is a good solution for this problem.