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 🙏

© 2024 – Pkg Stats / Ryan Hefner

npac-design-lib-alma

v1.1.20

Published

⚛️ Alma Design System - React Native Components

Downloads

179

Readme

Alma DS React Native Components

Alma React Native is the official React Native lib composed with Emotion from Dasa. Access here all documentation.

Getting Started

See all components in our Storybook.

Install Package

yarn add @dasa-nexus/alma-design-system-react-native

There are required dependencies to use this package that you should have installed on your project:

  • React Native Safe Area Context (usually comes with React Navigation)
yarn add react-native-safe-area-context
  • React Native Svg
yarn add react-native-svg

How to use

In order to use the Text components (Heading, Subtitle, Body, etc) in your RN app, you will need to place the DasaSans font in your project, and load it before the render of your app. If you ar using Expo, you can do something like this:

import { useFonts } from 'expo-font';
import AppLoading from 'expo-app-loading';

...

  const [fontsLoaded] = useFonts({
    'DasaSans-Bold': require('./[PATH_TO_YOUR_FONTS_FOLDER]]/DasaSans-Bold.otf'),
    'DasaSans-BoldItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-BoldItalic.otf'),
    'DasaSans-Italic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Italic.otf'),
    'DasaSans-Light': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Light.otf'),
    'DasaSans-LightItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-LightItalic.otf'),
    'DasaSans-Medium': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Medium.otf'),
    'DasaSans-MediumItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-MediumItalic.otf'),
    'DasaSans-Regular': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Regular.otf'),
    'DasaSans-Semibold': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Semibold.otf'),
    'DasaSans-SemiboldItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-SemiboldItalic.otf'),
  });

  if (!fontsLoaded) {
    return <AppLoading />;
  } else {
    return <YourApp />;
  }

If you are developing an exported RN project (not using expo), you will have to react-native link your fonts (please refer to some documentation on how to do this)

Deploy

Publishing the new version on the Nexus

Publishing the new version in NPM

  • Change the package name in all files that mention it (do a general search)
    • @dasa-nexus/npac-design-lib-almanpac-design-lib-alma
  • Remove field from package.json
  "publishConfig": {
    "registry": "https://nexus.dasaexp.io/repository/alma-design-system-mobile/"
  },
  • Swap the .npmrc file token (the token can be found in the file history)
    • From //nexus.dasaexp.io/repository/dasa-alma-design-system-mobile/:_authToken=NpmToken.*****************
    • To //registry.npmjs.org/:_authToken=npm_*****************
  • Run the command npm publish

IMPORTANT: The changes made in the second step must not be committed, but discarded after publication in the public NPM