-
Notifications
You must be signed in to change notification settings - Fork 2
Assets
Dmitry Usik edited this page Apr 3, 2022
·
12 revisions
Follow these steps in order to add a new image to the project:
- Add a new image to assets/images;
- There is an
imagesobject that keeps the paths to the images in order to import them from a single place. Add a new property toimagesobject in images.ts; - The application supports different sets of images that depend on the current theme. See Theme for more detailed information.
Follow these steps in order to add a new font to the project:
- Add a new font to assets/fonts;
- In order to get access to the fonts from a single place,
getFontfunction is used. Add a new value to theFonttype and then process it ingetFontfunction in getFont.ts; - Use
getFontfunction:
import { getFont } from '~assets';
fontFamily: getFont('fontName')