'Chalet' 家族字体在 React Native 中不起作用 iOS 应用程序

'Chalet' Family fonts doesn't work in React Native iOS app

我已经习惯了在 react-native 应用程序中使用 'chalet' 字体。此字体在 'iOS build' 中不起作用,但在 Android 构建中可以正常工作。我尝试过使用其他字体,但它在构建 iOS 和 android.

中都工作正常

Can you please check this link for Font-family .ttf files.

如果你们找到任何解决方案,请帮助我!!

通常 iOS 和 android、

的字体名称不同

请按照下面link了解iOS,

的字体名称

https://medium.com/react-native-training/adding-custom-fonts-to-react-native-b266b41bff7f

并根据平台名称应用字体