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

expo-ui-components

v1.2.2

Published

UI components for React Native projects

Downloads

771

Readme

expo-ui-components

This library provides reusable and customizable UI components for React Native projects. It is designed to streamline the development process and ensure consistency across applications.


Installation

Use the package manager npm to install the library.

npm i expo-ui-components

Current Components

1. SplashScreenView

The SplashScreenView component provides a customizable splash screen for React Native applications with animations, gradients, and a skip button.

Props

  • logo (any, optional): Image source for the logo.
  • backgroundColor (string, optional): Background color of the splash screen (default: #000).
  • gradientColors (string[], optional): Array of gradient colors for the background (default: ["#000", "#333"]).
  • text (string, optional): Text to display (default: "Welcome").
  • textColor (string, optional): Color of the text (default: #fff).
  • textFontSize (number, optional): Font size of the text (default: 24).
  • duration (number, optional): Duration of the splash screen in milliseconds (default: 3000).
  • onFinish (function, optional): Callback function to execute when the splash screen finishes.
  • animationType ("fade" | "slide", optional): Type of animation (default: "fade").
  • showSkip (boolean, optional): Whether to show a skip button (default: true).

Example Usage

import React from "react";
import SplashScreenView from "expo-ui-components";

const App = () => {
  const handleFinish = () => {
    console.log("Splash Screen Finished");
  };

  return (
    <SplashScreenView
      logo={require("./assets/logo.png")}
      backgroundColor="#123456"
      gradientColors={["#123456", "#abcdef"]}
      text="Welcome to My App"
      textColor="#ffffff"
      textFontSize={28}
      duration={4000}
      onFinish={handleFinish}
      animationType="slide"
      showSkip={true}
    />
  );
};

export default App;

2. TextView

The TextView component is a simple and customizable component for displaying text.

Props

  • text (string, required): The content to display.
  • style (TextStyle, optional): Custom styles for the text.
  • onPress (function, optional): Function to execute when the text is pressed.

Example Usage

import { TextView } from "expo-ui-components";

<TextView
  text="Hello, World!"
  style={{ fontSize: 18, color: "blue" }}
  onPress={() => alert("Text pressed!")}
/>;

3. ButtonView

The ButtonView component is a versatile button with customizable styles and states.

Props

  • title (string, required): The text to display on the button.
  • onPress (function, required): Function to execute when the button is pressed.
  • buttonStyle (ViewStyle, optional): Custom styles for the button container.
  • textStyle (TextStyle, optional): Custom styles for the button text.
  • disabled (boolean, optional): Disables the button if set to true.

Example Usage

import { ButtonView } from "expo-ui-components";

<ButtonView
  title="Click Me"
  buttonStyle={{ backgroundColor: "green", padding: 10 }}
  textStyle={{ color: "white", fontSize: 16 }}
  onPress={() => alert("Button pressed!")}
/>;

4. CardView

The CardView component is a reusable container with customizable styles.

Props

  • children (ReactNode, required): Content inside the card.
  • onPress (function, optional): Callback for touch interaction (enabled only if isClickable is true).
  • cardStyle (ViewStyle, optional): Custom styles for the card container.
  • isClickable (boolean, optional): Enables touch interactions (default: false).
  • activeOpacity (number, optional): Opacity when the card is pressed (default: 0.7).

Example Usage

import { CardView } from "expo-ui-components";

<CardView
  cardStyle={{ backgroundColor: "#fff" }}
  isClickable
  onPress={() => alert("Card Pressed!")}
/>;

5. HeaderView

The HeaderView component is a customizable header for React Native applications.

Props

  • title (string, required): The text displayed as the title of the header.
  • onBackPress (function, required): Callback for back button press.
  • isMenu (boolean, optional): Whether to display a menu icon.
  • onMenuPress (function, optional): Callback for menu button press.
  • isSearch (boolean, optional): Whether to display a search icon.
  • onSearchPress (function, optional): Callback for search button press.
  • backgroundColor (string, optional): Header background color.
  • titleStyle (TextStyle, optional): Custom styles for the title text.
  • isElevated (boolean, optional): Adds elevation/shadow to the header.

Example Usage

import { HeaderView } from "expo-ui-components";

<HeaderView
  title="Home"
  onBackPress={() => alert("Back Pressed!")}
  isMenu
  onMenuPress={() => alert("Menu Pressed!")}
  backgroundColor="#4CAF50"
/>;

Upcoming Components

  • InputField: A styled input component for text entry.
  • ImageView: A customizable image component with placeholders and loading indicators.

Usage

Import and use the available components in your React Native project:

import {
  SplashScreenView,
  TextView,
  ButtonView,
  CardView,
  HeaderView,
} from "expo-ui-components";

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


Let me know if additional sections need to be added!