Skip to content
Dmitry Usik edited this page Apr 3, 2022 · 12 revisions

🖼️ Images

Follow these steps in order to add a new image to the project:

  1. Add a new image to assets/images;
  2. There is an images object that keeps the paths to the images in order to import them from a single place. Add a new property to images object in images.ts;
  3. The application supports different sets of images that depend on the current theme. See Theme for more detailed information.

🔠 Fonts

Follow these steps in order to add a new font to the project:

  1. Add a new font to assets/fonts;
  2. In order to get access to the fonts from a single place, getFont function is used. Add a new value to the Font type and then process it in getFont function in getFont.ts;
  3. Use getFont function:
import { getFont } from '~assets';

fontFamily: getFont('fontName')

Clone this wiki locally