npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rn-remote-fonts

v1.2.0

Published

A React Native library for rn-remote-fonts font loading

Readme

rn-remote-fonts

A React Native library for loading remote fonts dynamically.

Installation

npm install rn-remote-fonts
# or
yarn add rn-remote-fonts

iOS Setup

Add the following to your ios/Podfile:

pod 'rn-remote-fonts', :path => '../node_modules/rn-remote-fonts'

Then run:

cd ios && pod install

Android Setup

The module should be automatically linked. If you're using React Native 0.60+, no additional setup is required.

For manual linking, add the following to your android/settings.gradle:

include ':rn-remote-fonts'
project(':rn-remote-fonts').projectDir = new File(rootProject.projectDir, '../node_modules/rn-remote-fonts/android')

And to your android/app/build.gradle:

dependencies {
    implementation project(':rn-remote-fonts')
}

Manual Registration (if auto-linking fails)

Android

In your MainApplication.java, add the package to the list:

@Override
protected List<ReactPackage> getPackages() {
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Add the RNRemoteFonts package
  packages.add(new RNRemoteFontsPackage());
  return packages;
}

iOS

Make sure the module is imported in your AppDelegate.mm:

#import <RNRemoteFonts/RNRemoteFonts.h>

Usage

import { loadFont } from 'rn-remote-fonts';

// Load a font from base64 data
const fontData = 'data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzL4Xy...';

try {
  const fontName = await loadFont('MyCustomFont', fontData, 'ttf');
  console.log('Font loaded:', fontName);
} catch (error) {
  console.error('Failed to load font:', error);
}

Troubleshooting

If you see the linking error, make sure:

  1. You have run pod install (iOS)
  2. You have rebuilt your app after installing the package
  3. You are not using Expo Go (this library requires native code)
  4. The native module is properly registered in your project

Debug Information

The library now provides debug information in the console:

  • Available native modules will be logged
  • Module registration status will be shown
  • Method availability will be checked

Check the console output for detailed information about what's happening.

API

loadFont(name: string, data: string, type: string): Promise<string>

Loads a font from base64 data and returns the font name.

  • name: The name you want to give to the font
  • data: Base64 encoded font data (can include data URL format)
  • type: Font type ('ttf', 'otf', etc.)

Returns a Promise that resolves to the actual font name.