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

react-zen-ui

v0.0.19

Published

Simple React Native components library

Readme

ZEN UI Logo, made with AI

A React Native component library with a focus on simplicity and ease of use. ZEN UI was built upon the idea of providing a set of essential components that can be easily integrated into any React Native application and customized to fit the specific needs of the project; but keeping the number of external dependencies to a minimum.

Inspired by libraries like React Native Paper and UI KItten, ZEN UI doesn't aim to be a comprehensive solution for all UI needs, but rather a starting point for developers looking for a simple and effective way to build their applications.

React Native Node Version JavaScript Style Guide Language

npm version Downloads License

Key Features

  • Lightweight: Minimal dependencies to keep your app size small.
  • Customizable: Easily theme and style components to match your app's design.
  • Essential Components: A curated set of components that cover common UI needs.
  • TypeScript Support: Built with TypeScript for better developer experience and type safety.
  • No Native Dependencies: Pure JavaScript implementation, no need for linking native modules.
  • No Expo Dependencies: Can be used in both Expo and non-Expo React Native projects without any issues.

Manual Installation

To install ZEN UI, simply use npm or yarn:

npm install react-zen-ui

Usage

To start using ZEN UI components in your React Native project, first you need to enclose your app with the ZenThemeProvider component. This component provides the necessary context for theming and styling. Additionally to this, you need to pass the theme object to the ZenThemeProvider. You can use the default theme provided by ZEN UI or create your own custom theme.

import { ZenDark, ZenThemeProvider } from 'react-zen-ui';

export default function App() {
  return (
    <ZenThemeProvider theme={ZenDark}>
      {/* Your app code here */}
    </ZenThemeProvider>
  );
}

After wrapping your app with the ZenThemeProvider, you can start using ZEN UI components. For example, to use a button:

import { ZenButton } from 'react-zen-ui';
import { View } from 'react-native';

export default function App() {
  return (
    <View>
      <ZenButton onPress={() => alert('Button pressed!')}>Press me</ZenButton>
    </View>
  );
}

Theming

ZEN UI comes with two pre-defined themes: ZenLight and ZenDark. You can use these themes directly or customize them to fit your application's design.

import { ZenDark, ZenThemeProvider } from 'react-zen-ui';

export default function App() {

  const customTheme = {
    ...ZenDark,
    primary: '#ff6347', // Custom primary color
    secondary: '#4caf50', // Custom secondary color
    text: '#ffffff', // Custom text color
    background: '#1e1e1e', // Custom background color
    // other colors could be success, warning, info, danger and all its variants from 1 to 50
    // for example success-dark-1, success-dark-2, success-light-1, success-light-2, etc.
    // The greater the number, the darker or lighter the color will be.
  };

  return (
    <ZenThemeProvider theme={customTheme}>
      {/* Your app code here */}
    </ZenThemeProvider>
  );
}

And with this, you can access the useTheme() method that will return the current theme object for all components within the ZenThemeProvider.

import { useTheme } from 'react-zen-ui';
import { View, Text } from 'react-native';
import { ZenButton } from 'react-zen-ui';

export default function ThemedComponent() {
  const theme = useTheme();

  return (
    <View style={{ backgroundColor: theme.background, padding: 20 }}>
      <Text style={{ color: theme.text, marginBottom: 10 }}>
        This is a themed component!
      </Text>
      <ZenButton onPress={() => alert('Themed Button pressed!')}>
        Themed Button
      </ZenButton>
    </View>
  );
}

Documentation

You can read more about this library, check examples, and get more information on our Documentation site.

License

ZEN UI is open source software licensed under the MIT license.