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

signal-ui-react-shared

v1.0.0

Published

React Native component library implementing Telkomsel Signal UI design system using Gluestack UI v2 and Nativewind v4

Readme

Signal UI React Shared

A React Native component library implementing the Telkomsel Signal UI design system. Built with Gluestack UI v1 for accessible component primitives and Nativewind v4 for Tailwind CSS styling.

Features

  • 🎨 18 Production-Ready Components - Buttons, forms, modals, and more
  • 🎯 Telkomsel Signal UI Design System - Official brand colors, typography, and spacing
  • ♿ Accessibility First - WCAG 2.1 AA compliant with proper screen reader support
  • 📱 Cross-Platform - Works on iOS and Android
  • 🔤 Custom Fonts - Includes Poppins and TelkomselBatikSans fonts
  • 🎭 150+ Icons - Full Telkomsel Icon Family included
  • 🌳 Tree-Shakeable - Only bundle what you use
  • 📘 TypeScript - Full type definitions for excellent IDE support
  • 🧱 Gluestack UI - Built on Gluestack for accessible, customizable primitives

Architecture

This library uses a hybrid approach:

| Component Type | Built With | Notes | |----------------|------------|-------| | Form Inputs (TextField, TextArea, Checkbox, Radio, Switch) | Gluestack UI @gluestack-ui/themed | Leverages Gluestack's accessible form primitives with react-aria | | Overlays (Modal, BottomSheet) | Gluestack UI Actionsheet/Modal | Uses Gluestack's portal and backdrop handling | | Toast/Snackbar | React Native Reanimated | Custom animation with Gluestack-inspired API | | Basic Components (Button, Text, Icon, etc.) | React Native primitives | Styled with custom theme system |

Installation

npm install signal-ui-react-shared

Peer Dependencies

Make sure you have these peer dependencies installed:

npm install react react-native nativewind@^4.0.0 react-native-reanimated react-native-gesture-handler @gluestack-ui/themed

For Expo projects:

npx expo install react-native-reanimated react-native-gesture-handler @gluestack-ui/themed @gluestack-style/react

Quick Start

1. Setup SignalUIProvider

Wrap your app with the SignalUIProvider:

import { SignalUIProvider } from 'signal-ui-react-shared';

export default function App() {
  return (
    <SignalUIProvider>
      <YourApp />
    </SignalUIProvider>
  );
}

2. Configure Nativewind Preset

Add the Signal UI preset to your tailwind.config.js:

// tailwind.config.js
const signalUIPreset = require('signal-ui-react-shared/nativewind-preset').default;

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './App.{js,jsx,ts,tsx}',
    './src/**/*.{js,jsx,ts,tsx}',
    './node_modules/signal-ui-react-shared/**/*.{js,jsx,ts,tsx}',
  ],
  presets: [signalUIPreset],
  theme: {
    extend: {},
  },
  plugins: [],
};

3. Load Fonts

Expo Projects

import { useCallback, useEffect, useState } from 'react';
import { loadFonts, createFontMap, FONT_NAMES } from 'signal-ui-react-shared/fonts';
import * as SplashScreen from 'expo-splash-screen';

// Prevent auto-hiding splash screen
SplashScreen.preventAutoHideAsync();

export default function App() {
  const [fontsLoaded, setFontsLoaded] = useState(false);

  useEffect(() => {
    async function loadResources() {
      const fontMap = createFontMap({
        [FONT_NAMES.POPPINS_REGULAR]: require('./assets/fonts/Poppins-Regular.ttf'),
        [FONT_NAMES.POPPINS_SEMIBOLD]: require('./assets/fonts/Poppins-SemiBold.ttf'),
        [FONT_NAMES.POPPINS_BOLD]: require('./assets/fonts/Poppins-Bold.ttf'),
        [FONT_NAMES.TELKOMSEL_BATIK_SANS_REGULAR]: require('./assets/fonts/TelkomselBatikSans-Regular.otf'),
        [FONT_NAMES.TELKOMSEL_BATIK_SANS_BOLD]: require('./assets/fonts/TelkomselBatikSans-Bold.otf'),
        [FONT_NAMES.TELKOMSEL_ICON_FAMILY]: require('./assets/fonts/Telkomsel-Icon-Family.ttf'),
      });

      const result = await loadFonts(fontMap);
      setFontsLoaded(result.fontsLoaded);
    }

    loadResources();
  }, []);

  const onLayoutRootView = useCallback(async () => {
    if (fontsLoaded) {
      await SplashScreen.hideAsync();
    }
  }, [fontsLoaded]);

  if (!fontsLoaded) {
    return null;
  }

  return (
    <SignalUIProvider initialFontsLoaded={fontsLoaded}>
      <View onLayout={onLayoutRootView}>
        <YourApp />
      </View>
    </SignalUIProvider>
  );
}

Bare React Native Projects

  1. Copy font files from node_modules/signal-ui-react-shared/assets/fonts/ to your project's assets folder.

  2. Link the fonts in your project:

For iOS, add to ios/YourApp/Info.plist:

<key>UIAppFonts</key>
<array>
  <string>Poppins-Regular.ttf</string>
  <string>Poppins-SemiBold.ttf</string>
  <string>Poppins-Bold.ttf</string>
  <string>TelkomselBatikSans-Regular.otf</string>
  <string>TelkomselBatikSans-Bold.otf</string>
  <string>Telkomsel-Icon-Family.ttf</string>
</array>

For Android, copy fonts to android/app/src/main/assets/fonts/.

  1. Run npx react-native-asset to link fonts automatically.

4. Start Using Components

import { Button, Text, TextField } from 'signal-ui-react-shared';

function MyComponent() {
  return (
    <View>
      <Text variant="h1">Welcome!</Text>
      <TextField
        name="Email"
        placeholder="Enter your email"
        required
      />
      <Button variant="primary" color="primary" onPress={() => {}}>
        Submit
      </Button>
    </View>
  );
}

Components

Signal UI React Shared includes 18 ready-to-use components:

| Component | Description | Built With | |-----------|-------------|------------| | Button | Customizable button with primary, secondary, tertiary variants | RN Primitives | | Text | Typography component with heading (h1-h6) and body variants | RN Primitives | | TextField | Single-line text input with validation states | Gluestack Input | | TextArea | Multi-line text input with auto-expand | Gluestack Textarea | | Checkbox | Boolean selection with customizable icons | Gluestack Checkbox | | CheckboxGroup | Manage multiple checkbox selections | Gluestack Checkbox | | Radio | Single selection from multiple options | Gluestack Radio | | Switch | Toggle switch with animated thumb | Gluestack Switch | | Tab | Tabbed navigation interface | RN Primitives | | Chips | Selectable tags/filters with icons | RN Primitives | | Badges | Notification counts or status indicators | RN Primitives | | Icon | 150+ icons from Telkomsel Icon Family | RN Text | | Modal | Overlay dialogs with Header, Content, Footer | Gluestack Modal | | BottomSheet | Sliding panel from screen bottom | Gluestack Actionsheet | | Callout | Alert banners (info, warning, valid, error) | RN Primitives | | Snackbar | Brief messages with auto-dismiss | RN Reanimated | | OTP | One-time password input (4-8 digits) | RN Primitives | | Breadcrumb | Navigation hierarchy display | RN Primitives |

Usage Examples

Button

import { Button } from 'signal-ui-react-shared';

// Primary button
<Button variant="primary" color="primary" onPress={handlePress}>
  Click Me
</Button>

// Secondary (outlined) button
<Button variant="secondary" color="secondary" size="large" onPress={handlePress}>
  Learn More
</Button>

// Full-width disabled button
<Button variant="tertiary" full disabled>
  Processing...
</Button>

Text

import { Text } from 'signal-ui-react-shared';

<Text variant="h1">Main Heading</Text>
<Text variant="h3" color="primary-5">Subheading</Text>
<Text variant="body1">Regular paragraph text</Text>
<Text variant="label" fontWeight="semibold">Form Label</Text>
<Text variant="body2" strikethrough>Strikethrough text</Text>

TextField & TextArea

import { TextField, TextArea } from 'signal-ui-react-shared';

<TextField
  name="Username"
  placeholder="Enter username"
  required
  supportText="This will be your display name"
/>

<TextField
  name="Password"
  placeholder="Enter password"
  errorText="Password must be at least 8 characters"
/>

<TextArea
  name="Bio"
  placeholder="Tell us about yourself"
  numberOfLines={4}
  maxLength={500}
/>

Checkbox & Radio

import { Checkbox, CheckboxGroup, Radio } from 'signal-ui-react-shared';

// Single checkbox
<Checkbox
  item={{ label: 'I agree to terms', value: 'agree', checked: false }}
  onChange={(item) => console.log(item)}
  activeThumbIcon="ico_checkbox"
/>

// Checkbox group
<CheckboxGroup
  items={[
    { label: 'Option A', value: 'a', checked: false },
    { label: 'Option B', value: 'b', checked: true },
  ]}
  layout="vertical"
  onChange={(items) => console.log(items)}
/>

// Radio buttons
<Radio
  items={[
    { label: 'Small', value: 'sm', checked: true },
    { label: 'Medium', value: 'md', checked: false },
    { label: 'Large', value: 'lg', checked: false },
  ]}
  onChange={(item) => console.log(item)}
/>

Modal

import { Modal, Button } from 'signal-ui-react-shared';

<Modal isOpen={isOpen} onClose={() => setIsOpen(false)} size="medium" dismissable>
  <Modal.Header showCloseButton>
    <Text variant="h4">Confirm Action</Text>
  </Modal.Header>
  <Modal.Content>
    <Text variant="body1">Are you sure you want to proceed?</Text>
  </Modal.Content>
  <Modal.Footer position="right">
    <Button variant="secondary" onPress={() => setIsOpen(false)}>
      Cancel
    </Button>
    <Button variant="primary" onPress={handleConfirm}>
      Confirm
    </Button>
  </Modal.Footer>
</Modal>

BottomSheet

import { BottomSheet, Button } from 'signal-ui-react-shared';
import { useRef } from 'react';

function MyComponent() {
  const bottomSheetRef = useRef(null);

  return (
    <BottomSheet
      ref={bottomSheetRef}
      isVisible={isVisible}
      onClose={() => setIsVisible(false)}
      maxHeight="80%"
      dismissable
    >
      <BottomSheet.Header showCloseButton>
        <Text variant="h4">Options</Text>
      </BottomSheet.Header>
      <BottomSheet.Content>
        <Text variant="body1">Select an option below</Text>
      </BottomSheet.Content>
      <BottomSheet.Footer position="center" full>
        <Button variant="primary" full onPress={handleSelect}>
          Select
        </Button>
      </BottomSheet.Footer>
    </BottomSheet>
  );
}

Icon

import { Icon, IconName } from 'signal-ui-react-shared';

<Icon name={IconName.Add} size="medium" color="primary-5" />
<Icon name={IconName.Check} size="large" color="valid-5" />
<Icon name={IconName.Close} size="small" color="error-5" />

Callout & Snackbar

import { Callout, Snackbar } from 'signal-ui-react-shared';

<Callout
  variant="info"
  title="Did you know?"
  message="You can customize this component!"
  actionLabel="Learn More"
  onClickAction={handleAction}
  onClose={handleDismiss}
/>

<Snackbar
  variant="primary"
  position="bottom-center"
  textContent="Item saved successfully"
  textButton="Undo"
  onClick={handleUndo}
  sticky={false}
/>

OTP

import { OTP } from 'signal-ui-react-shared';

<OTP
  otpLength={6}
  onChange={(otp) => console.log(otp)}
  variant="primary"
  placeholder="•"
  isPassword
/>

Design System

Colors

Signal UI uses 7 color categories, each with 10 levels (0-9):

| Category | Base Color (Level 5) | Usage | |----------|---------------------|-------| | primary | #ff0025 | Telkomsel Red - Primary actions | | secondary | #001a41 | Telkomsel Navy - Secondary actions | | valid | #00a651 | Green - Success states | | info | #0066cc | Blue - Information | | warning | #ff9500 | Orange - Warning states | | error | #dc3545 | Red - Error states | | neutral | #6c757d | Gray - Neutral elements |

Use colors in components:

<Button color="primary" />  // Uses primary-5
<Text color="secondary-7">Dark navy text</Text>
<Icon color="valid-5" />  // Success green

Typography

| Variant | Font Family | Size | |---------|-------------|------| | h1 | TelkomselBatikSans-Bold | 32px | | h2 | TelkomselBatikSans-Bold | 28px | | h3 | TelkomselBatikSans-Bold | 24px | | h4 | TelkomselBatikSans-Bold | 20px | | h5 | TelkomselBatikSans-Bold | 18px | | h6 | TelkomselBatikSans-Bold | 16px | | title | Poppins | 18px | | body1 | Poppins | 16px | | body2 | Poppins | 14px | | label | Poppins | 12px |

Sizes

Components support three sizes:

| Size | Height | Padding | |------|--------|---------| | small | 32px | 8px | | medium | 40px | 12px | | large | 48px | 16px |

Accessibility

All components include built-in accessibility support:

  • Semantic roles: Buttons have role button, checkboxes have role checkbox, etc.
  • State announcements: Disabled, checked, and selected states are announced
  • Touch targets: Minimum 44x44 points for all interactive elements
  • Screen reader labels: Proper accessibilityLabel props
  • Focus management: Modal and BottomSheet implement focus trapping
  • React Aria integration: Form components (TextField, Checkbox, Radio, Switch) use react-aria via Gluestack for robust accessibility

Gluestack UI Integration

Form Components

Form components use Gluestack UI primitives for accessibility:

// TextField uses Gluestack Input, InputField, InputSlot, InputIcon
<TextField
  name="Email"
  placeholder="Enter email"
  leftIcon={<Icon name={IconName.Mail} />}
  rightIcon={<Icon name={IconName.Check} />}
  onRightIconPress={handleClear}
/>

// TextArea uses Gluestack Textarea, TextareaInput
<TextArea
  name="Description"
  placeholder="Enter description"
  numberOfLines={4}
/>

// Checkbox uses Gluestack Checkbox, CheckboxIndicator, CheckboxIcon, CheckboxLabel
<Checkbox
  item={{ label: 'Accept terms', value: 'terms', checked: false }}
  onChange={handleChange}
/>

// Radio uses Gluestack RadioGroup, Radio, RadioIndicator, RadioIcon, RadioLabel
<Radio
  items={options}
  onChange={handleSelect}
/>

// Switch uses Gluestack Switch component
<Switch
  item={{ label: 'Dark mode', value: 'dark', checked: false }}
  onChange={handleToggle}
/>

Overlay Components

Modal and BottomSheet use Gluestack overlay primitives:

// Modal uses Gluestack Modal, ModalBackdrop, ModalContent
<Modal isOpen={isOpen} onClose={handleClose}>
  <Modal.Header>Title</Modal.Header>
  <Modal.Content>Content here</Modal.Content>
  <Modal.Footer>
    <Button onPress={handleClose}>Close</Button>
  </Modal.Footer>
</Modal>

// BottomSheet uses Gluestack Actionsheet, ActionsheetBackdrop, ActionsheetContent
<BottomSheet isVisible={isVisible} onClose={handleClose}>
  <BottomSheet.Header>Options</BottomSheet.Header>
  <BottomSheet.Content>
    {/* Your content */}
  </BottomSheet.Content>
</BottomSheet>

Styling Approach

Gluestack components are styled using:

  1. Inline styles for Signal UI theme tokens (colors, spacing, border-radius)
  2. Nativewind classes for layout utilities via className prop (web) or processed styles (native)
  3. Custom style props for overrides
<TextField
  name="Search"
  style={{ marginBottom: 16 }}           // Container style
  inputStyle={{ fontSize: 16 }}          // Input field style
  className="mt-4"                        // Nativewind class (web)
/>

Theme Customization

Override default theme values:

<SignalUIProvider
  overrides={{
    colors: {
      'primary-5': '#ff3355', // Custom primary color
    },
    typography: {
      fontFamilies: {
        heading: 'CustomFont-Bold',
      },
    },
  }}
>
  <YourApp />
</SignalUIProvider>

Platform Support

  • iOS: 13.0+
  • Android: API 21 (Lollipop) and above
  • React Native: 0.72+
  • Expo SDK: 49+

TypeScript

All components are fully typed. Import types as needed:

import type { 
  ButtonProps, 
  TextProps, 
  CheckboxItem,
  IconName,
  Color 
} from 'signal-ui-react-shared';

License

MIT

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting a pull request.