【发布时间】:2017-09-05 12:02:42
【问题描述】:
我是 React Native 的新手!我在我的项目中使用了shoutem/ui。 修改默认 fontFamily 时出现问题。这是我的代码,请检查然后帮我解决这个问题。 非常感谢大家。
const theme = _.merge(getTheme(), {
defaultFont: {
fontFamily: 'Rubik-Italic',
},
'shoutem.ui.NavigationBar': {
'.clear': {
container: {
backgroundColor: params.primaryColor,
borderBottomColor: 'transparent',
position: 'relative',
},
'shoutem.ui.Title': {
color: 'white',
fontSize: 16,
},
},
'.normal': {
container: {
position: 'relative'
},
'shoutem.ui.Button': {
'shoutem.ui.Icon': {
color: params.colorTextAlpha,
},
'shoutem.ui.Text': {
color: params.colorTextAlpha,
},
},
'shoutem.ui.Title': {
color: params.colorText,
},
}
},
'shoutem.ui.Row': {
'.fix': {
paddingHorizontal: 10,
paddingVertical: 10,
}
}
});
【问题讨论】:
-
描述问题,只是说你有问题并不能真正帮助我们帮助你。
-
我做了上面的代码,但我的应用程序中的所有组件仍然不能使用这种字体。我使用
将它们连接到我项目中的所有组件
标签: javascript react-native shoutem