【发布时间】:2018-08-07 15:53:33
【问题描述】:
我正在尝试在 Text 样式上使用 fontVariant。 documentation 表示它需要一个“枚举数组”。这在 json 中是什么样子的?我试过传递一个字符串,它 works on android 在 android 上被忽略,但在 ios 上抛出一个错误:
<Text style={{ fontVariant: 'small-caps' }}>some text</Text>
将抛出:
NSString 类型的 JSON 值 'small-caps' 无法转换为 NSArray
我在版本 0.53.3 react-native
【问题讨论】:
标签: react-native