I have a basic problem with usage of styled-icons in react-native. Error: Invariant Violation: Invalid prop display
of value inline-block
supplied to StyleSheet generated
, expected one of ["none","flex"]. StyleSheet generated: { "display": "inline-block", "verticalAlign"
There is a screenshot with this enter image description here
styled-icons
not compatible with react-native. You can use react-native-vector-icons
instead of styled-icons
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.