oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.46k stars 2.13k forks source link

material-design-icons Not displaying properly in iOS #1659

Closed ningmengchongshui closed 2 months ago

ningmengchongshui commented 2 months ago
import MaterialIcon from '@react-native-vector-icons/material-design-icons'

Is it using 'MaterialCommunityIcons.ttf` I found that it cannot be rendered properly in iOS, only displaying ❓

eisodev commented 1 month ago

Make sure the icon you are using are available in the version supported by the package.

For example:

MaterialCommunityIcons has account-credit-card, but that was only added in v7.0.96 and the latest version supported by this package is v6.5.95 sadly.

ningmengchongshui commented 1 month ago

确保您使用的图标在软件包支持的版本中可用。

例如:

MaterialCommunityIcons 有 account-credit-card,但是它是在 v7.0.96 中才添加的,遗憾的是这个软件包支持的最新版本是 v6.5.95。

The problem had already been solved at that time, just copy MaterialDesignIcons.ttf from fonts to ios/Fonts/. I mistakenly thought it was MaterialCommunityIcons.ttf from another version