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

@eventuras/ratio-ui-native

v0.1.0

Published

Ratio UI for React Native: the design system's components for Expo and React Native apps, drawn from @eventuras/ratio-ui-core's theme data.

Readme

@eventuras/ratio-ui-native

Ratio UI for React Native and Expo: the design system's components, drawn from the theme data in @eventuras/ratio-ui-core. An app looks like its web sibling — Bureau's paper and navy, the hard shadows, the pixel display face — without installing the web renderer.

Beta. Built for Expo SDK 57 (React Native 0.86, React 19.2). The components are Text, Heading, Button, Card and ChatLog; more follow as apps need them. Every component and prop may still change.

Installation

npx expo install @eventuras/ratio-ui-native

react and react-native are peer dependencies. @eventuras/ratio-ui-core comes with the package.

Usage

import { RatioProvider, Heading, Text, Button, Card } from '@eventuras/ratio-ui-native';

export default function App() {
  return (
    <RatioProvider>
      <Card>
        <Heading level={3}>Knowledge-sharing summit</Heading>
        <Text tone="muted">Three days of talks and workshops.</Text>
        <Button onPress={register}>Register</Button>
      </Card>
    </RatioProvider>
  );
}

RatioProvider takes a theme (Bureau by default) and a colorScheme (the device's light or dark setting by default). Without a provider the components use Bureau in the device's mode. useTheme() gives a component of your own the same values: colors, radius, space, fontSize, font, components, and shadow(key) as a boxShadow string.

Chat

ChatLog takes the same ChatLogMessage[] as the web's Chat.Log, and reads links and mentions with the same rules from @eventuras/ratio-ui-core/chat, so a message looks alike in the app and on the web:

<ChatLog
  messages={messages}
  me="tor"
  onToggleReaction={(id, emoji) => toggle(id, emoji)}
  onOpenLink={url => router.push(url)} // default: Linking.openURL
/>

Each row puts the nick and time above the text, as a narrow web log does, with a mention band, link previews and reactions. It is a FlatList and does not scroll itself; the ref is the list, so the app decides when to follow new messages. Not yet in native: the reaction picker, a highlighted message and message links.

Fonts

The theme names its families; the app loads the files. For Bureau:

import { useFonts } from 'expo-font';

const [loaded] = useFonts({
  'Fira Sans': require('./assets/fonts/FiraSans-Regular.ttf'),
  'Space Mono': require('./assets/fonts/SpaceMono-Regular.ttf'),
});

The keys must match theme.font — 'Fira Sans' (display and body) and 'Space Mono'. Both are on Google Fonts under the SIL OFL.

Shadows

The hard offset shadow is a boxShadow style, which React Native has had since 0.76 on the New Architecture (Expo's default). It renders the same on iOS, Android and the web.

Development

The components are shown through react-native-web in the repo's Storybook, under Native. That covers layout, colour, type and press behaviour; fonts and shadows should still be checked on a device.

Like ratio-ui-core, the package has a rule in eslint and in the build: it imports React Native and @eventuras/ratio-ui-core, never react-dom, react-native-web or a web package of the family.