我正在构建一个带有自定义图标字体的 React Native 应用程序,我需要能够显示默认图标而不是问号,其中特定图标不存在或在自定义图标字体集中丢失,这是否可能?
There's a hasIcon
function shipped with react-native-vector-icons that will return a boolean on if the value passed into the function is present in the icon set.
See documentation here: Static methods
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.