Skip to content

A basic React Native module that exposes the operating system's installed fonts and available font families.

License

Notifications You must be signed in to change notification settings

ReadyFluent/react-native-font-list

Repository files navigation

react-native-font-list

A basic React Native module that exposes the operating system's installed fonts and available font families. It ships with a single function: .get().

Installation

Add Dependency

Yarn:

yarn add react-native-font-list

NPM:

npm install react-native-font-list --save

Update Pods (iOS)

cd ios && pod install

That's it! You are ready to use FontList.

Usage

// import
import FontList from 'react-native-font-list';

// sample use case
const [availableFontFamilies, setAvailableFontFamilies] = useState([]);
const [installedFonts, setInstalledFonts] = useState([]);

FontList.get((fontFamilies, fonts) => {
  setAvailableFontFamilies(fontFamilies);
  setInstalledFonts(fonts);
});

License

View License;

About

A basic React Native module that exposes the operating system's installed fonts and available font families.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published