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

@zestic/react-native-zustand-wizard

v0.1.4

Published

A React Native wizard component powered by Zustand

Downloads

7

Readme

React Native Zustand Wizard

A modern React Native wizard component powered by Zustand for building complex, multi-step flows with lightweight, efficient state management.

codecov

Features

  • 🎯 Type-safe wizard implementation with full TypeScript support
  • Zustand-based state management for optimal performance
  • 🔄 Flexible step configuration and navigation
  • 🎨 Customizable UI components and styling
  • 📊 Step context for managing step-specific state and actions
  • 🧭 Navigation context for custom navigation and indicators
  • Accessibility support built-in
  • 🧪 Comprehensive test coverage
  • 🚀 Lightweight bundle with minimal dependencies
  • 🔧 DevTools support for easy debugging

Installation

npm install @zestic/react-native-zustand-wizard
# or
yarn add @zestic/react-native-zustand-wizard

Basic Usage

Setting Up a Wizard

import { Wizard } from '@zestic/react-native-zustand-wizard';
import { Step } from '@zestic/react-native-zustand-wizard/types';

const steps: Step[] = [
  {
    id: 'step1',
    component: Step1Component,
    order: 1,
    canMoveNext: true,
    nextLabel: 'Continue',
    previousLabel: 'Go Back',
  },
  {
    id: 'step2',
    component: Step2Component,
    order: 2,
  },
];

const MyWizard = () => (
  <Wizard
    steps={steps}
    nextLabel="Next"
    previousLabel="Back"
    finishLabel="Done"
  />
);

Creating Steps with Step Context

import { useStepContext } from '@zestic/react-native-zustand-wizard/utils/wizardUtils';

const Step1Component = () => {
  const { updateField, getStepData, canMoveNext } = useStepContext('step1');
  const data = getStepData();

  // Enable/disable next button based on form validation
  React.useEffect(() => {
    const isValid = /* your validation logic */;
    canMoveNext(isValid);
  }, [data, canMoveNext]);

  return (
    <View>
      <TextInput
        value={data?.name || ''}
        onChangeText={(text) => updateField('name', text)}
      />
    </View>
  );
};

Custom Navigation and Indicators

import { WizardNavigation } from '@zestic/react-native-zustand-wizard/components/navigation';
import { useNavigationContext } from '@zestic/react-native-zustand-wizard/utils/wizardUtils';

// Custom Navigation Component
const CustomNavigation = () => {
  const {
    currentStepPosition,
    totalSteps,
    isNextDisabled,
    isPreviousHidden,
    nextLabel,
    previousLabel,
    onNext,
    onPrevious,
  } = useNavigationContext();

  return (
    <View>
      <StepIndicator
        currentStep={currentStepPosition}
        totalSteps={totalSteps}
      />
      <View>
        {!isPreviousHidden && (
          <Button title={previousLabel} onPress={onPrevious} />
        )}
        <Button title={nextLabel} onPress={onNext} disabled={isNextDisabled} />
      </View>
    </View>
  );
};

// Using Custom Navigation
const MyWizard = () => (
  <Wizard steps={steps} renderNavigation={(store) => <CustomNavigation />} />
);

Custom Step Indicator

import { StepIndicator } from '@zestic/react-native-zustand-wizard/components/navigation';
import { useNavigationContext } from '@zestic/react-native-zustand-wizard/utils/wizardUtils';

const CustomStepIndicator = () => {
  const { currentStepPosition, totalSteps } = useNavigationContext();

  return (
    <View>
      {Array.from({ length: totalSteps }, (_, i) => i + 1).map((step) => (
        <View
          key={step}
          style={[
            styles.step,
            step === currentStepPosition && styles.activeStep,
            step < currentStepPosition && styles.completedStep,
          ]}
        />
      ))}
    </View>
  );
};

Development

Setting Up Development Build

You'll need to set up a development build for Storybook development:

# Install dependencies
yarn install

# Start Storybook
yarn storybook

# For web version
yarn storybook:web

# For iOS (requires development build)
yarn storybook:ios

# For Android (requires development build)
yarn storybook:android

Running Tests

yarn test

Linting and Formatting

# Run ESLint
yarn lint

# Format code with Prettier
yarn format

# Check formatting without making changes
yarn format:check

Building

yarn build