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

@rocapine/react-native-onboarding-ui

v1.22.0

Published

UI components and renderers for Rocapine Onboarding Studio - Built on top of the headless SDK

Readme

@rocapine/react-native-onboarding-ui

UI layer for the Rocapine Onboarding Studio SDK.

Pre-built renderers, components, and a theme system on top of @rocapine/react-native-onboarding.


Installation

npm install @rocapine/react-native-onboarding-ui @rocapine/react-native-onboarding

Usage

Render any CMS-driven step with a single component:

import { OnboardingPage } from "@rocapine/react-native-onboarding-ui";

export default function OnboardingScreen() {
  const { step } = useOnboardingQuestions({ stepNumber: 1 });
  return <OnboardingPage step={step} onContinue={handleContinue} />;
}

🎨 Page Types

| Type | Description | | ---------------------------------------- | ------------------------------------------------------ | | Question | Single / multi-select answer screens | | MediaContent | Image or video with title and description | | Carousel | Horizontal paginated slides | | Picker | Structured data pickers (weight, height, age, gender…) | | Loader | Animated progress bars with optional carousel | | Ratings | App store rating prompts with social proof | | Commitment | Agreement / signature screens | | ComposableScreen (under development) | Declarative layout system — see below |


🧱 ComposableScreen (under development)

This page type is still under active development. The API may change before it is considered stable.

ComposableScreen lets you build arbitrary onboarding screens entirely from CMS data, without writing a custom renderer. You compose a tree of layout and text elements that is rendered directly to native views.

Element types

YStack — vertical flex container (flexDirection: "column")

XStack — horizontal flex container (flexDirection: "row")

Text — text node

Supported props

Stack elements (YStack / XStack)

| Prop | Type | Notes | | ------------------- | ----------------------------------------------------------------------------- | -------------------------------------- | | gap | number | Space between children | | padding | number | | | paddingHorizontal | number | | | paddingVertical | number | | | margin | number | | | marginHorizontal | number | | | marginVertical | number | | | flex | number | | | flexShrink | number | Defaults to 1 inside an XStack | | flexWrap | "wrap" \| "nowrap" | | | alignItems | "flex-start" \| "center" \| "flex-end" \| "stretch" | | | justifyContent | "flex-start" \| "center" \| "flex-end" \| "space-between" \| "space-around" | | | width | number | | | height | number | | | minWidth | number | | | maxWidth | number | | | minHeight | number | | | maxHeight | number | | | backgroundColor | string | | | borderWidth | number | | | borderRadius | number | | | borderColor | string | | | overflow | "hidden" \| "visible" \| "scroll" | Use "hidden" to clip rounded corners | | opacity | number | |

Text elements

| Prop | Type | Notes | | ------------------- | ------------------------------- | --------------------------------------- | | content | string | Required | | fontSize | number | | | fontWeight | string | | | color | string | Defaults to theme.colors.text.primary | | textAlign | "left" \| "center" \| "right" | | | letterSpacing | number | | | lineHeight | number | | | backgroundColor | string | | | padding | number | | | paddingHorizontal | number | | | paddingVertical | number | | | margin | number | | | marginHorizontal | number | | | marginVertical | number | | | borderWidth | number | | | borderRadius | number | | | borderColor | string | | | opacity | number | |

Example payload

{
  "type": "ComposableScreen",
  "payload": {
    "elements": [
      {
        "id": "card",
        "type": "YStack",
        "props": {
          "padding": 24,
          "gap": 12,
          "borderWidth": 1,
          "borderRadius": 16,
          "borderColor": "#E0E0E0",
          "overflow": "hidden"
        },
        "children": [
          {
            "id": "title",
            "type": "Text",
            "props": {
              "content": "Welcome aboard",
              "fontSize": 24,
              "fontWeight": "700"
            }
          },
          {
            "id": "subtitle",
            "type": "Text",
            "props": {
              "content": "Let's get you set up.",
              "fontSize": 16
            }
          }
        ]
      }
    ]
  }
}

🎭 Theming

Pass a theme prop (or lightTheme / darkTheme) to OnboardingProvider:

<OnboardingProvider
  theme={{
    colors: { primary: "#FF5733" },
    typography: { fontFamily: { title: "CustomFont-Bold" } },
  }}
/>;

See @rocapine/react-native-onboarding for the full token reference.


📦 Optional Dependencies

| Feature | Package | | ---------------------- | ----------------------------- | | Picker screens | @react-native-picker/picker | | Ratings screen | expo-store-review | | Commitment (signature) | @shopify/react-native-skia |


📄 License

MIT © Rocapine