Skip to content

Commit 7c744fc

Browse files
committed
update readme on how to use expo-font
1 parent 5add292 commit 7c744fc

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

packages/react-native-autoplay/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,32 @@ The library does **not** bundle any icon font — the consuming app must provide
314314
315315
For cross-platform compatibility use **lowercase names with underscores only** (e.g. `material_symbols`).
316316
317+
**or**
318+
319+
1. use expo-font
320+
```js
321+
[
322+
'expo-font',
323+
{
324+
android: {
325+
fonts: [
326+
{
327+
fontFamily: 'MaterialSymbols',
328+
fontDefinitions: [
329+
{
330+
path: './assets/fonts/material_symbols.ttf',
331+
weight: 800,
332+
},
333+
],
334+
},
335+
],
336+
},
337+
ios: ['./assets/fonts/material_symbols.ttf'],
338+
},
339+
],
340+
```
341+
For cross-platform compatibility use **lowercase names with underscores only** (e.g. `material_symbols`).
342+
317343
2. Register the font and an optional glyph map at startup:
318344
319345
```ts

0 commit comments

Comments
 (0)