【发布时间】:2019-07-29 16:07:05
【问题描述】:
我正在使用最新版本的 react-native (0.60.4) 从本地基础获取带有 Icon 组件的白屏。
这是我的代码
<Item floatingLabel error={hasError} style={styles.inputElement}>
<Icon name="ios-menu" style={{ fontSize: 20, color: "red" }} />
<Label style={styles.placeHolderStyle}>{placeHolder}</Label>
<Input
secureTextEntry={hasSecureTextEntry}
style={styles.inputPaddingLeft}
onChangeText={text => this.props.onChangeText(text, key)}
value={value}
/>
</Item>
如果我删除<Icon name="ios-menu" style={{ fontSize: 20, color: "red" }} /> 标签,它工作正常。
此外,上述代码适用于旧版本的 react-native(0.55.4)
【问题讨论】:
标签: android react-native native-base react-native-vector-icons