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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@jamadd/react-native-template-ui

v0.4.8

Published

React Native Template UI is a collection of UI components designed by JaMa D&D.

Readme

React Native Template UI

React Native Template UI provides a set of UI components designed by JaMa D&D.

All UI components are built on top of different common React Native packages to provide great performace, usability and flexibility.

Features

Prerequisites

React Native Template UI requires the following dependencies to function properly:

You may want to check the documentation of each dependency for installation and setup instructions.

yarn add @jamadd/react-native-template-icons @shopify/flash-list @shopify/restyle react-native-gesture-handler react-native-reanimated react-native-safe-area-context react-native-worklets

or

npm install @jamadd/react-native-template-icons @shopify/flash-list @shopify/restyle react-native-gesture-handler react-native-reanimated react-native-safe-area-context react-native-worklets

Installation

yarn add @jamadd/react-native-template-ui

or

npm install @jamadd/react-native-template-ui

Usage

Creating a Custom Theme

To create a look and feel that matches your application/brand, you should create a custom theme by following these steps:

  1. Create a theme by extending the default theme or creating a theme from scratch.

    1. Extending the default themes

      import { lightTheme, darkTheme } from '@jamadd/react-native-template-ui';
      import { createTheme } from '@shopify/restyle';
      
      // Minimal example of creating custom light & dark themes by    extending the default themes
      const customLightTheme = createTheme({
        ...lightTheme,
        colors: {
          ...lightTheme.colors,
          theme: '#ff6347',
        },
      });
      
      const customDarkTheme = createTheme({
        ...darkTheme,
        colors: {
          ...darkTheme.colors,
          theme: customLightTheme.colors.theme,
        },
      });
    2. Or creating themes from scratch

      import { createTheme } from '@shopify/restyle';
      
      // Example of creating light & dark themes from scratch (theme structure must follow the default themes)
      const customLightTheme = createTheme({
        colors: {
          transparent: YOUR_CUSTOM_COLOR,
          theme: YOUR_CUSTOM_COLOR,
          background: YOUR_CUSTOM_COLOR,
          backgroundOverlay: YOUR_CUSTOM_COLOR,
          text: YOUR_CUSTOM_COLOR,
          textOverlay: YOUR_CUSTOM_COLOR,
          textButton: YOUR_CUSTOM_COLOR,
          border: YOUR_CUSTOM_COLOR,
          separator: YOUR_CUSTOM_COLOR,
          err: YOUR_CUSTOM_COLOR,
        },
        spacing: {
          none: 0,
          xxxs: YOUR_CUSTOM_SPACING,
          xxs: YOUR_CUSTOM_SPACING,
          xs: YOUR_CUSTOM_SPACING,
          s: YOUR_CUSTOM_SPACING,
          m: YOUR_CUSTOM_SPACING,
          l: YOUR_CUSTOM_SPACING,
          xl: YOUR_CUSTOM_SPACING,
          xxl: YOUR_CUSTOM_SPACING,
          xxxl: YOUR_CUSTOM_SPACING,
        },
        breakpoints: {
          smallPhone: YOUR_CUSTOM_BREAKPOINT,
          phone: YOUR_CUSTOM_BREAKPOINT,
          smallTablet: YOUR_CUSTOM_BREAKPOINT,
          tablet: YOUR_CUSTOM_BREAKPOINT,
          desktop: YOUR_CUSTOM_BREAKPOINT,
        },
        zIndices: {
          bottom: YOUR_CUSTOM_Z_INDEX,
          middle: YOUR_CUSTOM_Z_INDEX,
          top: YOUR_CUSTOM_Z_INDEX,
        },
        borderRadii: {
          s: YOUR_CUSTOM_RADIUS,
          m: YOUR_CUSTOM_RADIUS,
          l: YOUR_CUSTOM_RADIUS,
          round: YOUR_CUSTOM_RADIUS,
        },
        textVariants: {
          textXS: YOUR_CUSTOM_TEXT_VARIANT,
          textXSBold: YOUR_CUSTOM_TEXT_VARIANT,
          textS: YOUR_CUSTOM_TEXT_VARIANT,
          textSBold: YOUR_CUSTOM_TEXT_VARIANT,
          textM: YOUR_CUSTOM_TEXT_VARIANT,
          textMBold: YOUR_CUSTOM_TEXT_VARIANT,
          textL: YOUR_CUSTOM_TEXT_VARIANT,
          textLBold: YOUR_CUSTOM_TEXT_VARIANT,
          textXL: YOUR_CUSTOM_TEXT_VARIANT,
          textXLBold: YOUR_CUSTOM_TEXT_VARIANT,
          defaults: YOUR_CUSTOM_TEXT_VARIANT,
        },
      });
      
      const customDarkTheme = createTheme({
        ...customLightTheme,
        colors: {
          ...customLightTheme.colors,
          background: YOUR_CUSTOM_COLOR,
          text: YOUR_CUSTOM_COLOR,
        },
      });

    Both extended and from-scratch themes can add more custom properties or override existing properties as needed.

    For more information on how to create a theme, you may refer to the Restyle documentation.

  2. Override the default theme's type by declaring the global type ReactNativeTemplateTheme in global.d.ts.

    declare global {
      type ReactNativeTemplateTheme = typeof customLightTheme;
    }

Wrapping Your Application with Providers

Wrap your application with ReactNativeTemplateProviders (which includes GestureProvider, InsetsProvider and ThemeProvider).

import {
  ReactNativeTemplateProviders,
  useIsDarkColorScheme,
} from '@jamadd/react-native-template-ui';

const isDarkColorScheme = useIsDarkColorScheme();

<ReactNativeTemplateProviders
  theme={isDarkColorScheme ? customDarkTheme : customLightTheme}
>
  {/* Your app code */}
</ReactNativeTemplateProviders>;

Using Components

Now you can use the components provided by React Native Template UI in your application.

import { ThemedButton } from '@jamadd/react-native-template-ui';

<ThemedButton
  onPress={() => {
    console.log('Button pressed');
  }}
  text={'Press Me'}
/>;

Available Components

Buttons

  • AnimatedThemedPressable
  • ThemedButton
  • ThemedIconButton
  • ThemedIconTextButton
  • ThemedPressable

List

  • List

Icons and Texts

  • ThemedIcon
  • ThemedIconText
  • ThemedText

Loading Indicator

  • ThemedLoading

Overlays

  • ActionSheet
  • Alert
  • ThemedLoadingModal
  • ThemedModal
  • ThemedToast

Providers

  • GestureProvider
  • InsetsProvider
  • ThemeProvider

Separator

  • ThemedSeparator

Switch

  • ThemedSwitch

Views

  • AnimatedThemedView
  • ThemedScreenWrap
  • ThemedScrollView
  • ThemedView

Demo Applications

TODO

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT