Spectrum: [Mobile] Image assets for React Native App.

Created on 15 Apr 2018  Â·  7Comments  Â·  Source: withspectrum/spectrum

We should figure out how to provide image assets for the mobile app, since React Native don't have out of the box support for SVG (https://react-native.canny.io/feature-requests/p/support-rendering-svg-images)

Some options that we have :
1) Use JPG or PNG files

2) Use Expo.SVG https://docs.expo.io/versions/latest/sdk/svg , in that case we would need to create a react components with svg elements based on the content of the current svg files, as this solution don't support loading and rendering image from file

Tech Debt

Most helpful comment

Default avatar: https://spectrum.imgix.net/default_images/default_avatar.svg

Cover photos (we already have png versions):

Profile photos (already have png versions):

Logo:

Let me know if anything else is needed here!

All 7 comments

We use Imgix, so we should be able to proxy any SVGs through imgix and pass the fm parameter to transform them into jpgs or pngs on the fly. /cc @brianlovin who knows how our imgix setup works, how can we make that happen?

Yeah I would just need a list of which assets need to be uploaded and reformatted (https://docs.imgix.com/apis/url/format/fm) so that I can upload them manually to S3 and share back the imgix urls.

Basically just the default avatar and cover photos at this point as far as I can tell

Default avatar: https://spectrum.imgix.net/default_images/default_avatar.svg

Cover photos (we already have png versions):

Profile photos (already have png versions):

Logo:

Let me know if anything else is needed here!

We definitely want to use our own icons. /cc @uberbryn do you reckon you can export the set as .ttfs?

We can do PNG like most apps. Should not use icon fonts.

On Apr 17, 2018 at 4:56 AM,

We definitely want to use our own icons. /cc @uberbryn (https://github.com/uberbryn) do you reckon you can export the set as .ttfs?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (https://github.com/withspectrum/spectrum/issues/2862#issuecomment-381964834), or mute the thread (https://github.com/notifications/unsubscribe-auth/AEstaMG0nyVPw-5wjo3EPNNMDjhn4g5Rks5tpdhQgaJpZM4TVZfa).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thundernixon picture thundernixon  Â·  4Comments

mxstbr picture mxstbr  Â·  3Comments

dmitryyankowski picture dmitryyankowski  Â·  4Comments

mattgaunt picture mattgaunt  Â·  4Comments

flaki picture flaki  Â·  5Comments