我正在使用最新版本的 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)