as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ
@amazon-devices/expo-font provides an interface to load fonts at runtime and use them in React Native components.

Installation

  1. Add the JavaScript library dependency in the package.json file. Select the tab for your React Native version.
  1. Reinstall dependencies using npm install command.

Examples

The example below demonstrates how to load fonts with the useFonts hook. You need to download the .otf file and replace the content inside the useFonts call.

API reference

Check out the dedicated documentation page for info about this library, API reference and more: Official Expo documentation for expo-font.

Hooks

Methods

Add custom fonts

In addition to modifying the standard Vega fonts in your app, you can load your own custom fonts. To load custom fonts, place your font file in the assets/fonts/ directory. Your font file name must match the font family name. For example, if the font family name is Open Sans, your font file name should be Open Sans.ttf.

Additional resources

For information on additional libraries, see Supported Third-Party Libraries and Services.
最終更新日 2026年10月7日