0.1.14 • Published 9 months ago

@bittingz/expo-native-fonts v0.1.14

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

expo-native-fonts

This module is for adding custom fonts to native iOS extensions, for example if you use my expo widgets module.

Installation

npx expo install @bittingz/expo-widgets

Setup

To add fonts, simply create a folder and drop iOS compatible fonts (e.g. ttf files) in there. Then add the following to your expo app.config.(ts/js) plugins array:

"@bittingz/expo-native-fonts",
    {
        "srcFolder": "./fonts",
            "fonts": [
            {
                "filePath": "Montserrat/Montserrat-Bold.ttf",
                "targets": [
                    "expowidgetsWidgetExtension"
                ],
                "platform": "ios"
            }
        ]
    }

srcFolder should relative path from your project root to the fonts folder. fonts is an array of fonts to inject

Each item of fonts must have the file path, the targets it is to be injected into and the platform. Android is not yet supported.

0.1.14

9 months ago

0.1.13

9 months ago

0.1.12

9 months ago

0.1.11

9 months ago

0.1.10

9 months ago

0.1.9

9 months ago

0.1.8

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago