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

@equinor/eds-mobile-components

v0.1.0

Published

A React Native component library implementing the Equinor Design System.

Readme

EDS Mobile Components

A React Native component library implementing the Equinor Design System.

Installation

pnpm add @equinor/eds-mobile-components

Peer dependencies

This library requires the following peer dependencies:

pnpm add expo-font react-native-gesture-handler react-native-reanimated react-native-svg

Make sure to follow the installation instructions for each:

Getting started

Load the fonts and assets required by the library in your root component, and wrap your app in the EDSProvider:

import { EDSProvider, useEDS } from "@equinor/eds-mobile-components";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { StatusBar } from "expo-status-bar";

export default function App() {
    const [hasLoadedEds, edsLoadError] = useEDS();

    if (!hasLoadedEds) {
        return null;
    }

    return (
        <SafeAreaProvider>
            <EDSProvider colorScheme="light" density="phone">
                <Navigation />
                <StatusBar />
            </EDSProvider>
        </SafeAreaProvider>
    );
}

The EDSProvider gives you access to:

  • Color scheme — switch between light and dark mode
  • Density — switch between phone and tablet layouts

Theming

Create stylesheets that respond to the current theme using EDSStyleSheet:

import { EDSStyleSheet, useStyles } from "@equinor/eds-mobile-components";

const themeStyles = EDSStyleSheet.create((theme) => ({
    container: {
        backgroundColor: theme.colors.container.background,
        borderRadius: theme.geometry.border.containerBorderRadius,
    },
}));

const MyComponent = () => {
    const styles = useStyles(themeStyles);
    return <View style={styles.container} />;
};

The theme object resolves based on the current configuration, so colours adapt automatically to light/dark mode.

Passing props to stylesheets

For conditional styling, pass additional props as a second argument:

const themeStyles = EDSStyleSheet.create(
    (theme, props: { highlight?: boolean }) => ({
        container: {
            backgroundColor: props.highlight
                ? theme.colors.interactive.primary
                : theme.colors.container.background,
        },
    })
);

const MyComponent = ({ highlight }: { highlight?: boolean }) => {
    const styles = useStyles(themeStyles, { highlight });
    return <View style={styles.container} />;
};

Components

The library includes:

  • Layout — Paper, Spacer, Scrim
  • Inputs — Button, TextField, Input, Search, Select, Autocomplete, SelectionControls, Chip
  • Feedback — Dialog, Progress, ProgressIndicator, OfflineBanner
  • Navigation — Tabs, Menu, Accordion, Cell
  • Display — Typography, Icon, Label, Popover
  • Utilities — EDSProvider, Portal, ErrorBoundary, Environment

Hooks

  • useEDS — load fonts and assets
  • useStyles — resolve themed stylesheets
  • useToken — access design tokens directly
  • useBreakpoint — respond to screen size changes

License

MIT