772 B
772 B
Importing assets from Figma into project
Icons
- Export from figma 2 pngs 2x and 3x put them in
./resources/images/icons2
- if necessary, rename file so that filename contains only lower case chars, e.g.
"Icon-Name@2x.png"
should be renamed to"icon_name@2x.png"
. - In the app
icon_name.png
still can be accessed asicon-name
, so in order to use can add the next code:
2x@2x;; icon_name.png [vector-icons/icon :icon-name {:color ...}]
- If you want platform specific icon use
.android
or.ios
suffixes. Exampleicon_name@2x.android.png
.:w
Images
Make sure to compress images before using into project.
make shell
./scrips/compress_image.sh image_path