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

re-native-ui

v0.0.4

Published

A comprehensive React Native UI component library built with TypeScript, featuring modern design patterns and extensive customization options.

Readme

re-native-ui

A comprehensive React Native UI component library built with TypeScript, featuring modern design patterns and extensive customization options.

Features

  • TypeScript Support: Full TypeScript support with comprehensive type definitions
  • Modern Components: 25+ pre-built components for common UI patterns
  • Customizable: Extensive theming and styling options
  • Form Integration: Built-in support for react-hook-form
  • Accessible: Components follow accessibility best practices
  • Cross-platform: Works seamlessly on iOS and Android

Installation

npm install re-native-ui
# or
yarn add re-native-ui

Quick Start

import React from "react";
import { View } from "react-native";
import { Button, Text, Box, ThemeProvider } from "re-native-ui";

export default function App() {
  return (
    <ThemeProvider>
      <Box padding={20}>
        <Text variant="h1" marginBottom={16}>
          Welcome to React Native UI
        </Text>
        <Button
          title="Get Started"
          onPress={() => console.log("Button pressed!")}
        />
      </Box>
    </ThemeProvider>
  );
}

Components

Layout Components

  • Box - Flexible container with padding, margin, and styling
  • Container - Centered container with max-width
  • Stack - Vertical or horizontal stack layout
  • Grid - Responsive grid system
  • StaggeredGrid - Masonry-style grid layout
  • Spacer - Flexible spacing component
  • Divider - Visual separator

Form Components

  • Input - Text input with validation
  • PasswordInput - Secure password input
  • TextArea - Multi-line text input
  • Select - Dropdown selection
  • CheckBox - Checkbox input
  • RadioGroup - Radio button group
  • Switch - Toggle switch
  • Slider - Range slider
  • StepperInput - Number input with increment/decrement
  • DatePicker - Date selection picker
  • MaskedInput - Input with format masking
  • OTPInput - One-time password input
  • TagInput - Tag/keyword input

Form Management

  • Form - Form wrapper with validation
  • ControlledInput - Controlled input component
  • ControlledSelect - Controlled select component

Interactive Components

  • Button - Primary, secondary, and outline button variants
  • Accordion - Collapsible content sections

Feedback Components

  • Snackbar - Toast notifications
  • SlideDownToast - Animated toast messages

Typography

  • Text - Typography component with variants

Theming

The library includes a comprehensive theming system:

import { ThemeProvider, createTheme } from "re-native-ui";

const customTheme = createTheme({
  colors: {
    primary: "#007AFF",
    secondary: "#5856D6",
    success: "#34C759",
    warning: "#FF9500",
    error: "#FF3B30",
  },
  spacing: {
    xs: 4,
    sm: 8,
    md: 16,
    lg: 24,
    xl: 32,
  },
  typography: {
    h1: {
      fontSize: 32,
      fontWeight: "bold",
    },
    h2: {
      fontSize: 24,
      fontWeight: "600",
    },
  },
});

export default function App() {
  return (
    <ThemeProvider theme={customTheme}>
      {/* Your app components */}
    </ThemeProvider>
  );
}

Form Integration

The library integrates seamlessly with react-hook-form:

import { useForm } from "react-hook-form";
import { Form, ControlledInput, Button } from "re-native-ui";

export default function LoginForm() {
  const { control, handleSubmit } = useForm();

  const onSubmit = (data) => {
    console.log(data);
  };

  return (
    <Form onSubmit={handleSubmit(onSubmit)}>
      <ControlledInput
        name="email"
        control={control}
        placeholder="Email"
        rules={{ required: "Email is required" }}
      />
      <ControlledInput
        name="password"
        control={control}
        placeholder="Password"
        secureTextEntry
        rules={{ required: "Password is required" }}
      />
      <Button title="Login" type="submit" />
    </Form>
  );
}

Advanced Usage

Custom Styling

import { Box, Text } from "re-native-ui";

export default function CustomComponent() {
  return (
    <Box
      backgroundColor="primary"
      borderRadius={8}
      padding={16}
      shadowColor="#000"
      shadowOffset={{ width: 0, height: 2 }}
      shadowOpacity={0.25}
      shadowRadius={3.84}
      elevation={5}
    >
      <Text color="white" textAlign="center">
        Custom styled component
      </Text>
    </Box>
  );
}

Snackbar Notifications

import { useSnackbar } from "re-native-ui";

export default function MyComponent() {
  const { showSnackbar } = useSnackbar();

  const handleSuccess = () => {
    showSnackbar({
      message: "Operation completed successfully!",
      type: "success",
      duration: 3000,
    });
  };

  return <Button title="Show Success" onPress={handleSuccess} />;
}

API Reference

For detailed API documentation, visit our documentation site.

Contributing

We welcome contributions! Please see our contributing guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Changelog

See CHANGELOG.md for a list of changes and version history.