Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 773 Bytes

import-assets.md

File metadata and controls

23 lines (18 loc) · 773 Bytes

Importing assets from Figma into project

Icons

  1. Export from figma 2 pngs 2x and 3x put them in ./resources/images/icons2
  2. if necessary, rename file so that filename contains only lower case chars, e.g. "[email protected]" should be renamed to "[email protected]".
  3. In the app icon_name.png still can be accessed as icon-name, so in order to use can add the next code:
    ;; icon_name.png
    [vector-icons/icon :icon-name {:color ...}] 
    2x@2x
  4. If you want platform specific icon use .android or .ios suffixes. Example [email protected].:w

Images

Make sure to compress images before using into project.

make shell
./scripts/compress_image.sh image_path