[英]How can I solve react-native styled-icon error
I have a basic problem with usage of styled-icons in react-native.我在 react-native 中使用样式图标有一个基本问题。 Error: Invariant Violation: Invalid prop
display
of value inline-block
supplied to StyleSheet generated
, expected one of ["none","flex"].错误:不变违规:提供给
StyleSheet generated
inline-block
值的无效道具display
,预期为 ["none","flex"] 之一。 StyleSheet generated: { "display": "inline-block", "verticalAlign"生成的样式表:{ "display": "inline-block", "verticalAlign"
There is a screenshot with this enter image description here有一个带有此输入图像描述的屏幕截图here
styled-icons
not compatible with react-native. styled-icons
与 react-native 不兼容。 You can use react-native-vector-icons
instead of styled-icons
.您可以使用
react-native-vector-icons
而不是styled-icons
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.