xcode - 在我的 react-native 应用程序(iOS 和 Android)中的应用程序中添加自定义字体和图像的最佳做法是什么
问题描述
我需要知道在我的 react-native 应用程序(iOS 和 Android)中添加 fontFamily 和图像的最佳做法是什么
以前我曾经在 (iOS) 的 Resources 文件夹和 android drawable 文件夹 (images) 中添加 FontFamily 和 Images
解决方案
对我来说,我添加了本博客中提到的自定义字体。它工作正常。
https://medium.com/@sharadkatre01/custom-font-installation-in-react-native-e8ac44b7a121
推荐阅读
- python - Django: searching in related models
- javascript - datetimepicker 中的约会释放/锁定控制
- c++ - Visual Studio 2019 broke Visual Studio 2015
- c# - 如何使用 Linq 从 Json 或类对象中查找子元素
- matlab - 循环混淆
- django - 如何向 Django 动态创建的表单字段添加类?
- android - 当我从后台删除贴纸应用程序时,贴纸从 WhatsApp 中消失
- ansible - 仅在 apt 任务第一次安装软件包时复制文件
- javascript - 基于 cookie 多次渲染 react 组件
- android - 如何在颤动的tabcontroller底部添加视图