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 🙏

© 2025 – Pkg Stats / Ryan Hefner

digi-rn-wizard

v0.0.1

Published

React Native Wizard Component

Downloads

73

Readme

Digi-RN-Wizard

Create multi-step wizards in React Native applications to guide users through setup or other complex tasks in a simple manner.

Installation

  1. Install:

    • Using npm: npm install digi-rn-wizard --save
    • Using Yarn: yarn add digi-rn-wizard
  2. Import it in your JS:

import {Wizard, Step} from 'digi-rn-wizard';

Basic Usage

import {Wizard, Step, Breadcrumb} from 'digi-rn-wizard';

<Wizard>
  <Breadcrumb />
  <Step title="Start">
    <Text>Each step can contain any content you wish to render.</Text>
  </Step>
  <Step title="Middle">
    <View>
      <Text>It can contain text, controls or other custom components.</Text>
      <TextInput
        onChangeText={onChangeText}
        value={text}
      />
    </View>
  </Step>
  <Step title="Complete">
    <Text>The number of steps is dynamic, but must be contained in a Step component.</Text>
  </Step>
</Wizard>

Advanced Usage

See the example app to understand how to implement more advanced features.

Available Properties

Wizard

| Prop | Type | Default | Description | |-----|-----------|----------------|-------------| | ref | void | optional | Reference to use function including next(), prev(), and goto() | | style | object | optional | Style object for the main container | | currentStep | func | optional | Callback containing the index and title of the current step as well as number of total steps| | isFirstStep | func | optional | Callback containing boolean value is current step is first step | | isLastStep | func | optional | Callback containing boolean value if current step is last step | | transition | string | fade | Type of transition between steps | | duration | number | 300 | Time for transition to complete |

Step

| Prop | Type | Default | Description | |-----|-----------|----------------|-------------| | title | string | optional | Title of the step, returned by currentStep |

Breadcrumb

| Prop | Type | Default | Description | |-----|-----------|----------------|-------------| | orientation | string | horizontal | Set the orientation of the breadcrumb bar, horizontal or vertical | | quickNav | bool | true | Allow navigation to step by tapping on breadcrumb | | onColor | string | #FFFFFF| Color of breadcrumb when selected | | offColor | string | #000000 | Color of breadcrumbs when not selected |

The position of the breadcrumb component will determine it's rendering position. Make it the first child under Wizard to render it before the step or make it the last child under Wizard to render it after the step. Combined with the orientation prop you can position and scale the breadcrumb bar on any side of the Wizard's steps.

Reference Functions

DigiWizard provides the following reference functions so you can create custom controls for the wizard to better match the UI of your application. Create a reference to the Wizard using the useRef hook:

import React, {useRef} from 'react'
const wizard = useRef(null)

<Wizard ref={wizard} />

next()

wizard.current.next() This function will advance the wizard to the next step, if available. If additional steps are not available the call will be ignored.

prev()

wizard.current.prev() This function will revert the wizard to the previous step, if available. If additional steps are not available the call will be ignored.

goto(step)

wizard.current.goto(step) This function will change the wizard to the provided step, if available. If the provided step is outside the bounds of the available steps the call will be ignored. step is a 0 based index.