Skip to content

Commit e82e4dd

Browse files
Merge pull request #776 from shoutem/feature/fix-resolveFontFamily-with-undefined-fontName
Default to Rubik-Regular for fontName when resolving font family
2 parents d5cb5a7 + fa86598 commit e82e4dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shoutem/ui",
3-
"version": "6.1.1",
3+
"version": "6.1.2-rc.0",
44
"description": "Styleable set of components for React Native applications",
55
"scripts": {
66
"lint": "eslint .",

theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function responsiveHeight(dimension, actualRefVal = window.height) {
6868
// 'fontWeight' and 'fontStyle' aren't always supplied for every component, so we're setting default
6969
// values of 'normal'.
7070
export function resolveFontFamily(
71-
fontName,
71+
fontName = 'Rubik-Regular',
7272
fontWeight = 'normal',
7373
fontStyle = 'normal',
7474
) {

0 commit comments

Comments
 (0)