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

v1.1.2

Published

Headless React Native SDK for Rocapine Onboarding Studio - Data fetching, state management, and hooks

Readme

@rocapine/react-native-onboarding

A CMS-driven onboarding system for React Native mobile apps.

Build beautiful, customizable onboarding flows that update instantly without app releases.


✨ Features

  • 🎨 Pre-built Components - Ready-to-use screens (ratings, pickers, carousels, media content, and more)
  • 🔄 CMS-Driven - Update onboarding flows remotely without app releases
  • 📱 React Native - Works with Expo and bare React Native projects
  • 🎯 Type-Safe - Full TypeScript support with runtime validation
  • 💾 Offline Support - Built-in caching with AsyncStorage
  • 🎭 Themeable - Customizable colors, typography, and styling
  • 🔧 Extensible - Three levels of customization from theme tokens to complete renderer overrides

🚀 Quick Start

Installation

npm install @rocapine/react-native-onboarding
npx expo install expo-router

Setup

import {
  OnboardingProvider,
  OnboardingStudioClient,
  ProgressBar,
} from "@rocapine/react-native-onboarding";

const client = new OnboardingStudioClient("your-project-id", {
  appVersion: "1.0.0",
});

export default function RootLayout() {
  return (
    <OnboardingProvider
      client={client}
      locale="en"
      customAudienceParams={{ onboardingId: "your-onboarding-id" }}
    >
      <ProgressBar />
      <YourApp />
    </OnboardingProvider>
  );
}

Use in Your Screens

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

export default function OnboardingScreen() {
  const { step, isLastStep } = useOnboardingQuestions({ stepNumber: 1 });

  const handleContinue = () => {
    if (isLastStep) {
      router.push("/home");
    } else {
      router.push(`/onboarding/${stepNumber + 1}`);
    }
  };

  return <OnboardingPage step={step} onContinue={handleContinue} />;
}

That's it! 🎉


📚 Documentation

For SDK Users

Complete documentation for using the SDK in your app:

Customization

Learn how to customize your onboarding experience:

Support

For Contributors

Want to contribute to the SDK?


🎭 Customization Levels

Level 1: Theming

Customize colors, typography, and semantic styles:

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

Level 2: Custom Components

Replace specific UI components:

<OnboardingProvider
  customComponents={{
    QuestionAnswerButton: CustomButton,
    QuestionAnswersList: AnimatedList,
  }}
/>

Level 3: Custom Renderers

Complete control over entire screens:

export default function OnboardingScreen() {
  const { step } = useOnboardingQuestions({ stepNumber });

  if (step.id === "custom-screen") {
    return <CustomRenderer step={step} onContinue={handleContinue} />;
  }

  return <OnboardingPage step={step} onContinue={handleContinue} />;
}

🎨 Available Page Types

  • Question - Interactive questions with single or multiple choice answers
  • MediaContent - Display images or videos with title and description
  • Carousel - Multi-slide horizontal pagination with page indicators
  • Picker - Type-specific input pickers for structured data
  • Loader - Sequential progress animation with optional carousel
  • Ratings - App store rating prompts with social proof
  • Commitment - User commitment and agreement screens

Learn more about page types →


📦 Optional Dependencies

Install these only if you're using the specific screen types:

| Screen Type | Package | Install Command | | -------------------------- | ----------------------------- | ---------------------------------------------- | | Picker | @react-native-picker/picker | npx expo install @react-native-picker/picker | | Ratings | expo-store-review | npx expo install expo-store-review | | Commitment (signature) | @shopify/react-native-skia | npx expo install @shopify/react-native-skia |


💡 Example Project

Check out the example/ directory for a complete working example:

cd example/
npm install
npm start

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Publishing:

  • Bump version and commit "chore: bump version"
  • Publish
    npm publish --access public

📧 Support


📄 License

MIT © Rocapine