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

@factoredui/react-native

v0.5.2

Published

React Native component registry for FactoredUI SDUI — 20 themed primitives

Readme

@factoredui/react-native

React Native component registry and capture adapter for FactoredUI SDUI.

Part of the FactoredUI monorepo.

Install

npm install @factoredui/core @factoredui/react @factoredui/react-native @supabase/supabase-js

Setup

import { createClient } from '@supabase/supabase-js'
import { Provider } from '@factoredui/react'
import { createRnAdapter, createComponentRegistry } from '@factoredui/react-native'

const supabase = createClient(url, anonKey, {
  db: { schema: 'factoredui' }
})

const adapter = createRnAdapter()

function App() {
  return (
    <Provider supabase={supabase} adapter={adapter} platform="ios">
      <YourApp />
    </Provider>
  )
}

Component Registry

Create a themed registry of 20 SDUI primitives for the renderer:

import { createComponentRegistry } from '@factoredui/react-native'

const components = createComponentRegistry({
  primary: '#007AFF',
  background: '#FFFFFF',
  text: '#000000',
  border: '#E5E5E5',
  error: '#FF3B30',
  success: '#34C759',
})

Included Primitives

Layout: Box, ScrollView, Grid Content: Text, Image, Icon, Divider, Spacer Input: Button, TextInput, Toggle, Slider, Select Feedback: Chip, Card, Modal, Tabs List: List

All primitives accept theme tokens and render as standard React Native components.

Rendering SDUI Specs

import { renderSpec } from '@factoredui/react'
import { loadSpec, createSpecStorage, devSignatureVerifier } from '@factoredui/core'
import { createComponentRegistry } from '@factoredui/react-native'

const components = createComponentRegistry(theme)
const spec = await loadSpec(supabase, 'home-hero', storage, devSignatureVerifier)

function HeroSection() {
  return <>{renderSpec(spec.tree, components, actionRegistry, dataSources)}</>
}

Capture Adapter

createRnAdapter() implements the CaptureAdapter interface for React Native:

  • Session ID stored via AsyncStorage
  • Session metadata from Platform, Dimensions, PixelRatio
  • Offline queue persistence via AsyncStorage
  • App state change handler for unload events

Path Context

Use the same Flow/Page/Component/Element providers from @factoredui/react — they work identically on React Native (without DOM data attributes).

import { Flow, Page, Component } from '@factoredui/react'

<Flow name="onboarding">
  <Page name="profile">
    <Component name="avatar-picker">
      {/* RN components here */}
    </Component>
  </Page>
</Flow>

Peer Dependencies

  • @factoredui/core ^0.2.0
  • @factoredui/react ^0.2.0
  • react ^18.0.0 || ^19.0.0
  • react-native >=0.73.0

License

MIT