在使用listitem的时候发现在Android上右图片默认显示不出来,在iOS运行直接报错 Unrecognized font family ‘Material Icons’。
react-native-elements/ListItem bug

react-native-elements/ListItem bug

修复:
打开ListItem源码发现这个
react-native-elements/ListItem bug
所以解决这个很简单只要设置hidechevron=true就可以了。
react-native-elements/ListItem bug
或者也可以修改设置默认值
react-native-elements/ListItem bug

修改后效果:
react-native-elements/ListItem bug
react-native-elements/ListItem bug
版本信息:
“react”: “16.0.0-alpha.6”,
“react-native”: “0.44.3”,
“react-native-elements”: “^0.14.0”,
“react-native-vector-icons”: “^4.2.0”,
相关issue:
https://github.com/react-native-training/react-native-elements/issues/503

相关文章: