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

@plexui/react-native

v0.128.0

Published

Plex UI components for React Native and Expo, with the names and props of @plexui/ui: the iOS 27 look with Liquid Glass on iOS, the Plex Android look (Material 3 Expressive) on Android, on the shared @plexui/styles tokens

Readme

@plexui/react-native

Plex UI for React Native and Expo: the component names and props of @plexui/ui, drawn as iOS on an iPhone and as Android on Android, from the same design tokens as the web (@plexui/styles).

  • iOS: the iOS 27 look, measured on the native controls: the system's sizes, Liquid Glass bars, buttons, tab bar and menus (native glass through expo-glass-effect on iOS 26 and later, a blur elsewhere).
  • Android: the Plex Android look, with Material 3 Expressive where it has no pattern of its own.
  • Web: every component runs in a browser through react-native-web and draws iOS; the examples in the docs are live.
  • Chat: messages in runs with reactions, receipts and the unread band, a composer that floats over the keyboard (a phone browser's too) with a button down to the end and its unread count, a conversation list with stories, an emoji keyboard and picker.

Install

npx expo install @plexui/react-native react-native-svg react-native-safe-area-context
# optional: native glass on iOS 26 and later, a blur elsewhere
npx expo install expo-glass-effect expo-blur
# optional: on a phone the lifted lens of the tab bar and the segmented control shows what is under it
npx expo install @react-native-masked-view/masked-view

The docs, with a live example of every component: https://plexui.com/react-native/components

Use

import { Inter_400Regular } from "@expo-google-fonts/inter/400Regular"
import { Inter_500Medium } from "@expo-google-fonts/inter/500Medium"
import { Inter_600SemiBold } from "@expo-google-fonts/inter/600SemiBold"
import { Inter_700Bold } from "@expo-google-fonts/inter/700Bold"
import { Button, IconButton, Text, ThemeProvider, Toaster, interFonts } from "@plexui/react-native"
import { Plus, Search } from "@plexui/react-native/icons"
import { useFonts } from "expo-font"
import { SafeAreaProvider } from "react-native-safe-area-context"

export default function App() {
  const [loaded] = useFonts({ Inter_400Regular, Inter_500Medium, Inter_600SemiBold, Inter_700Bold })
  if (!loaded) return null
  return (
    <SafeAreaProvider>
      <ThemeProvider fonts={interFonts}>
        <Text variant="title2">Hello</Text>
        <Button onPress={() => {}}>
          <Plus />
          New
        </Button>
        <IconButton icon={<Search />} accessibilityLabel="Search" />
        <Toaster />
      </ThemeProvider>
    </SafeAreaProvider>
  )
}

ThemeProvider props:

  • scheme: "system" (default), "light" or "dark".
  • platform: "ios" or "android". Defaults to the device; a browser draws iOS.
  • selectionColor: the on color of every Switch, Checkbox and RadioGroup that sets none of its own. "primary" (default) is the Plex primary, the ink, as on the web; "accent" is each platform's own: on iOS a switch turns the system green and a checkbox or a checkmark the accent, the iOS tint; on Android all of them take the accent.
  • brand: a product's colors, tokens, fonts and radii over Plex UI:
<ThemeProvider
  brand={{
    colors: { accent: "#7c3aed" },
    tokens: { "--color-background-primary-solid": "var(--color-accent)" },
    radius: { lg: 12 },
  }}
>

A nested ThemeProvider keeps its parent's brand and lays its own over it; brand={null} draws its subtree in Plex UI's own colors and radii (a stand-in for a system prompt, which is in the system's colors, never the app's).

useTheme() gives any token resolved for the current scheme: theme.color("--color-text"), theme.length("--button-size-md"), and Material 3 roles on theme.material.

Icons

Import Lucide icons from @plexui/react-native/icons/lucide, or use a deep import such as @plexui/react-native/icons/lucide/Sun. The existing filled-outline drawing remains the default. Set weight="thin" for a thin contour, or strokeWidth to use the original Lucide stroke geometry, matching the catalog with Outlined off:

import { Sun, Sparkle } from "@plexui/react-native/icons/lucide"

<Sun strokeWidth={1} />
<Sparkle strokeWidth={1} absoluteStrokeWidth />

strokeWidth is in the 24-unit Lucide viewBox, so its visible thickness normally scales with size. absoluteStrokeWidth keeps it in display points instead, using the explicit size or the surrounding control's icon size. With neither strokeWidth nor an explicit weight, absoluteStrokeWidth uses Lucide's default of 2. A supplied width wins over the surrounding control's weight. A width of 0 hides the strokes; negative and non-finite widths are ignored. Filled parts of a source icon keep their fill.

Use semantic weight="thin", "regular" or "semibold" for the original Lucide strokes at 1, 2 or 2.5 units. An explicit strokeWidth takes priority. With neither stroke nor weight props, existing filled outlines stay unchanged.

For a large, thin sheet mark, pass <Sun weight="thin" /> as hero.mediaIcon. The thin stroke scales with the sheet's public media-icon size (1 unit at 24, 3 points at 72). The sheet supplies that size and white color, so the mark needs no copied dimensions or paths. The same props work on iOS, Android and the web through react-native-svg; no DOM icon package is required.

Components

One name on every platform, as in @plexui/ui, in the groups of the docs' sidebar. Each has a page with its API and live examples at https://plexui.com/react-native/components.

  • Actions: Button, IconButton, NavigationButton (back, close, confirm); ActionTiles, a profile's actions as a contact card's; BottomActions, the bottom action of a setup screen; ContextMenu on a touch and hold; Menu, iOS's glass menu or Material's; SignInButton (Apple, Google); TextLink.
  • Text input: Input and TextField, Textarea, FloatingLabelInput, InputGroup, TagInput, Field and FieldError (a form cell of an iOS list), OTPInput, PhoneInput; SystemKeyboard, the system keyboard drawn in a browser.
  • Selection: Switch, Checkbox, RadioGroup, Chip, SegmentedControl, Select, DatePicker (compact, inline, wheels; Material's dialogs), Slider, Stepper; EmojiKeyboard in the keyboard's place and EmojiPicker in a sheet.
  • Navigation: Toolbar (iOS's navigation bar and bottom toolbar; Material's top app bar), TabBar (the glass tab bar; Material's navigation bar) and TabView over its screens, PageControl, Pager, ElasticScrollView (UIScrollView's drag and rubber band in a browser), ScrollEdge.
  • Overlays: Dialog (iOS's alert; Material's dialog), ActionSheet, BottomSheet, Popover, Tip (TipKit), toast() with Toaster, Tooltip and CopyTooltip.
  • Feedback: Alert, EmptyMessage, LoadingIndicator, CircularProgress and LoadingDots, Progress, ProgressScale (Health's ranges), ProgressSteps, Reveal, ShimmerText, Skeleton.
  • Content: Text and Heading, Avatar and AvatarGroup, Badge, Card, List with ListItem (iOS's inset grouped list; Material's), Carousel, Message with Message.Time, .System, .Unread, .Reaction and Composer, ConversationList with AvatarStrip, IntroHeader, MediaMark, RollingNumber, SectionHeading, Separator, Spoiler; icons from @plexui/react-native/icons (also /icons/lucide, /icons/tabler with Tabler's filled icons as …Filled, /icons/hugeicons).
const [tab, setTab] = useState("home")
const minimize = useTabBarMinimize()

<ScrollView onScroll={minimize.onScroll} scrollEventThrottle={16}>…</ScrollView>
<TabBar value={tab} onValueChange={setTab} minimized={minimize.minimized} onMinimizedChange={minimize.onMinimizedChange}>
  <TabBar.Item value="home" label="Home" icon={<Home />} />
  <TabBar.Item value="chats" label="Chats" icon={<Chats />} badge={3} />
</TabBar>
<Dialog
  open={open}
  onOpenChange={setOpen}
  title="Delete this photo?"
  description="It will be removed from all your devices."
  actions={[{ label: "Cancel", variant: "cancel" }, { label: "Delete", variant: "destructive", onPress: remove }]}
/>

toast.success("Payment sent", { description: "$24.00 to Jane", action: { label: "Undo", onClick: undo } })
<List header="General" footer="Notifications show on the lock screen.">
  <ListItem label="Notifications" leading={<Bell />} leadingColor="#ff3b30" value="On" onPress={openNotifications} />
  <ListItem label="Dark mode" trailing={<Switch checked={dark} onCheckedChange={setDark} accessibilityLabel="Dark mode" />} />
</List>

A chat: the sender's picture beside the last message of a run, the name on the first, the band where the unread messages start, and the composer under them.

<ScrollView>
  <Message author="Anna" avatar={<Avatar name="Anna" />} group="first" time="09:40">Who's up for the lake on Saturday?</Message>
  <Message avatar={<Avatar name="Anna" />} group="last" time="09:40">I can bring the boat</Message>
  <Message direction="outgoing" receipt="read" time="09:41">Count me in</Message>
  <Message.Unread />
  <Message author="Leo" avatar={<Avatar name="Leo" />} time="09:44">Leaving at 8 from the station</Message>
</ScrollView>
<Composer value={draft} onChangeText={setDraft} onSend={send} onVoice={record} />

Peers

react, react-native, react-native-svg, react-native-safe-area-context. Optional: expo-glass-effect (native Liquid Glass on iOS 26 and later), expo-blur (blur under the glass on earlier iOS) and @react-native-masked-view/masked-view (what is under the tab bar's and the segmented control's lifted lens).

Develop

npm run build:icons          # generate the icon modules (gitignored)
npm run typecheck
npm run lint
npm test                     # typecheck, lint and the Playwright tests of the example's web build

The example app (example/) shows every component in every state, with iOS / Android, light / dark and a brand theme. npm run web --prefix example opens it in a browser; npm run ios / npm run android on a simulator.

A link opens any state of the example, which lets a script take screenshots of a device without a finger: in a browser the fragment (#platform=android&scheme=dark&screen=lists&scroll=1200), on a device the query of a deep link through Expo Go (xcrun simctl openurl booted "exp://127.0.0.1:8081/--/?platform=ios&screen=lists&scroll=1200", or adb shell am start -a android.intent.action.VIEW -d "exp://10.0.2.2:8081/--/?platform=android&screen=lists"). scroll is how far down the screen to open; on the Overlays screen open shows an overlay (dialog, dialog-three, dialog-field, sheet, actions, menu, toast, toast-success, toast-action, toast-close). The browser's address keeps both until a control of the gallery changes.

npm run typecheck and npm test regenerate the icon modules; a running Metro can lose track of them while they are rewritten (an icon "could not be found"): restart it.