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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nafapp

v5.1.1

Published

Library for using NAFs designcomponents in [ReactNative](https://reactnative.dev/) and [Expo](https://expo.dev/) built apps.

Downloads

218

Readme

NAF App Components

Library for using NAFs designcomponents in ReactNative and Expo built apps.

How to use

Install with npm

npm install nafapp --save

Install with yarn

yarn add nafapp --save

Fonts

To make the fonts work, you need to import these into the App. Below is an example of how you can do this if you use Expo.

We are using the embedding version, so the fonts are updated during build time using Expo plugin.

Read more at Expo documentation

// ./app.json
// change path to node_modules/nafapp/dist/media/fonts/<file name>
[
  'expo-font',
  {
    fonts: [
      './assets/fonts/Arial.ttf',
      './assets/fonts/NewTransport-Regular.ttf',
      './assets/fonts/NewTransport-Bold.ttf',
      './assets/fonts/NewTransport-Medium.ttf',
      './assets/fonts/QuestaSans-Regular.otf',
      './assets/fonts/QuestaSans-Black.otf',
      './assets/fonts/QuestaSans-Bold.otf',
      './assets/fonts/QuestaSans-Light.otf',
      './assets/fonts/QuestaSans-Medium.otf',
      './assets/fonts/QuestaSans-LightItalic.otf',
    ],
  },
];

This will allow you to use the fonts in your app. Ex: QuestaSans-LightItalic or QuestaSans-Light. Android uses file name and iOS uses postscript field (specific font field), but for clarity we set filename = postscript. See example under:

import { StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  text: {
    fontFamily: 'QuestaSans-LightItalic',
  },
});

Techincal overview

Please use the npm package manager while working on this repo. You can find the package on npmjs.com.

Versioning

The package is following the Semantic Versioning standard.

Version strategy

major version is incremented when the library supports a new version of either (or both) new version of React and React Native. minor version is incremented when there is a new feature in the package patch version is incremented when there is a bug fix in the package

Commit strategy

The library is following the Conventional Commits standard. The pipeline will automatically bump the vesion based on the commit type, (t.ex: fix and feature). It will also update the Changelog based on the commit type and message.

Husky

The huskey plugin will make sure that you follow the correct commit-rules, but as a reminder, the following are the commit-rules:

breaking change

git commit -m 'feat!(component): <description>'

Or without scope, for instance when we bump the React or React Native version: git commit -m 'feat!: bump react version to <version>'.

The key to bumping the major version is to add an exclamation mark (!) after the word feat in the commit message, feat!: some commit message.

feature:

git commit -m 'feature(<component>): <description>'

The feat keyword (leaving out the exclamation mark), bumps the minor version number of the current major.

bugfix:

git commit -m 'fix(<component>): <description>'

The fix keyword bumps the patch number of the current minor.

The scope could be removed if the commit is more global, ex: git commit -m 'fix: component a and component b is now renamed to component c'

While merging multiple commits in the pull request the pull request commit message could be written as: build: <description> to avoid the text be written to the changelog.

Version mapping to React and React Native

| nafapp | ReactNative | React | | ------ | -------------------------------------------- | --------------------------------- | --- | | ^1.0.0 | 0.64.3 | 17.0.1 |   |

Disclaimer

The package is still in development, so as long the major is on 1.x.x the package will be considered unstable. The package will be stable when it reaches the 2.x.x version.