@expo-google-fonts/dev

中文文档
0.4.93发布于 2026/11/13MITTypeScriptCommonJS零依赖近 30 天下载 3.2万

Load 1970 font families from Google Fonts over the network while developing your Expo app

原始使用文档

@expo-google-fonts/dev

If you are trying out lots of different fonts, you can try using the @expo-google-fonts/dev package.

You can import any font style from any Expo Google Fonts package from it. It will load the fonts over the network at runtime instead of adding the asset as a file to your project, so it may take longer for your app to get to interactivity at startup, but it is extremely convenient for playing around with any style that you want.

Usage

Usage is the same as any individual Expo Google Fonts package except that you can important any font variant from any font family from @expo-google-fonts/dev.

Install the package

npx expo install @expo-google-fonts/dev expo-font

In your app

import {
  useFonts,
  Nunito_400Regular,
  Lato_400Regular,
  Inter_900Black,
} from '@expo-google-fonts/dev';
// ...

etc.

版本与发布记录

@expo-google-fonts/dev 共发布 105 个版本,首次发布于 2020/05/05;过去 12 个月发布了 52 个版本。

版本发布日期距今
0.4.93latest2026/11/13今天
0.4.922026/11/077 天前
0.4.912026/11/059 天前
0.4.902026/10/3114 天前
0.4.892026/10/3015 天前
0.4.882026/10/2916 天前

关于 @expo-google-fonts/dev 的常见问题

@expo-google-fonts/dev 是什么?

Load 1970 font families from Google Fonts over the network while developing your Expo app

如何安装 @expo-google-fonts/dev?

在项目目录运行 npm install @expo-google-fonts/dev,或使用 pnpm add / yarn add / bun add。

@expo-google-fonts/dev 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@expo-google-fonts/dev 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@expo-google-fonts/dev 可以商用吗?

@expo-google-fonts/dev 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@expo-google-fonts/dev 的下载量有多少?

根据 npm 官方下载统计,@expo-google-fonts/dev 在 2026/10/14 – 2026/11/12 这 30 天内被下载 32,197 次,日均约 1,073 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@expo-google-fonts/dev 还在维护吗?

最新版本 0.4.93 发布于 2026/11/13(今天);至今共发布 105 个版本,其中过去 12 个月发布了 52 个;首次发布于 2020/05/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。