# rezg-react-native-progress-stepper

> A simple and fully customizable React Native component to create stepper ui.

Latest version **0.1.13** (published 2023-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install rezg-react-native-progress-stepper
pnpm add rezg-react-native-progress-stepper
yarn add rezg-react-native-progress-stepper
bun add rezg-react-native-progress-stepper
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.13 |
| Published | 2023-08-01 |
| First published | 2023-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 0 |
| Unpacked size | 47.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dilmi Dilshara |
| Maintainers | dilmi |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/rezg-react-native-progress-stepper
- Repository: http://gitlab.rezgcorp.com/rezgmarketplacecommon/rezg-react-native-progress-steps
- Homepage: http://gitlab.rezgcorp.com/rezgmarketplacecommon/rezg-react-native-progress-steps#readme
- Issues: http://gitlab.rezgcorp.com/rezgmarketplacecommon/rezg-react-native-progress-steps/issues
- npm.io page: https://npm.io/package/rezg-react-native-progress-stepper

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.13 (latest) — 2023-08-01
- 0.1.12 — 2023-07-28
- 0.1.11 — 2023-07-28
- 0.1.10 — 2023-07-28
- 0.1.9 — 2023-07-26
- 0.1.8 — 2023-07-23
- 0.1.7 — 2023-07-22
- 0.1.6 — 2023-07-19
- 0.1.5 — 2023-07-19
- 0.1.4 — 2023-07-17
- 0.1.3 — 2023-07-17
- 0.1.2 — 2023-07-17
- 0.1.1 — 2023-07-17
- 0.1.0 — 2023-07-17

## README

# rezg-react-native-progress-stepper

A simple and fully customizable React Native component to create stepper ui.

## Installation

```sh
npm install rezg-react-native-progress-stepper
```

## Usage

```js
import Stepper from "rezg-react-native-progress-stepper";

// ...
import React, { useState } from "react";
import { Alert, StyleSheet, Text, View } from "react-native";
import Stepper from "rezg-react-native-progress-stepper";

const MyComponent = (props: {
  title: string;
  progressBarVisibility?: boolean;
}) => {
  return (
    <View>
      <Text>{props.title}</Text>
    </View>
  );
};

const content = [
  <MyComponent title="Component 1" />,
  <MyComponent title="Component 2" />,
  <MyComponent title="Component 3" />,
  <MyComponent title="Component 4" progressBarVisibility={true} />,
];

const App = () => {
  const [active, setActive] = useState(0);

  return (
    <View
      style={{
        marginVertical: 80,
        marginHorizontal: 20,
      }}
    >
      <Stepper
        active={active}
        content={content}
        onBack={() => setActive((p) => p - 1)}
        onFinish={() => Alert.alert("Finish")}
        onNext={() => setActive((p) => p + 1)}
        formContentStyle={styles.formContentStyle}
        buttonStyle={styles.buttonStyle}
        //? if you want previous button as a arrow, use below two attributes and upload arrow img from folder
        previousButtonArrowStyle={styles.previousButtonArrowStyle}
        previousButtonArrowImg={require("../assets/arrow-circle.png")}
        //? if you want previous button as a text, uncomment below attribute and do not use above arrow attributes
        // previousButtonTextStyle={styles.previousButtonTextStyle}
        //?
        innerStepStyle={styles.innerStepStyle}
        outerStepStyle={styles.outerStepStyle}
        stepNumber={true}
      />
    </View>
  );
};
const styles = StyleSheet.create({
  formContentStyle: {
    top: 20,
    borderRadius: 30,
    height: "85%",
  },
  buttonStyle: {
    backgroundColor: "#173907",
    borderWidth: 0,
    color: "#FFFFFF",
    width: "100%",
    top: -10,
    alignItems: "center",
  },
  previousButtonArrowStyle: {
    position: "absolute",
    top: -60,
    left: -15,
    width: 50,
    height: 50,
    transition: "all .2s",
  },
  previousButtonTextStyle: {
    color: "#173907",
    fontWeight: "bold",
    position: "absolute",
    top: 50,
    left: 10,
    fontSize: 25,
  },
  innerStepStyle: {
    backgroundColor: "#173907",
    width: 23,
    height: 23,
    borderRadius: 30,
  },
  outerStepStyle: {
    borderColor: "#173907",
    borderStyle: "dashed",
    width: 30,
    height: 30,
    borderRadius: 30,
  },
});
export default App;
import React, { useState } from "react";
import { Alert, StyleSheet, Text, View } from "react-native";
import Stepper from "rezg-react-native-progress-stepper";

const MyComponent = (props: {
  title: string;
  progressBarVisibility?: boolean;
}) => {
  return (
    <View>
      <Text>{props.title}</Text>
    </View>
  );
};

const content = [
  <MyComponent title="Component 1" />,
  <MyComponent title="Component 2" />,
  <MyComponent title="Component 3" />,
  <MyComponent title="Component 4" progressBarVisibility={true} />,
];

const App = () => {
  const [active, setActive] = useState(0);

  return (
    <View
      style={{
        marginVertical: 80,
        marginHorizontal: 20,
      }}
    >
      <Stepper
        active={active}
        content={content}
        onBack={() => setActive((p) => p - 1)}
        onFinish={() => Alert.alert("Finish")}
        onNext={() => setActive((p) => p + 1)}
        formContentStyle={styles.formContentStyle}
        buttonStyle={styles.buttonStyle}
        //? if you want previous button as a arrow, use below two attributes and upload arrow img from folder
        previousButtonArrowStyle={styles.previousButtonArrowStyle}
        previousButtonArrowImg={require("../assets/arrow-circle.png")}
        //? if you want previous button as a text, uncomment below attribute and do not use above arrow attributes
        // previousButtonTextStyle={styles.previousButtonTextStyle}
        //?
        innerStepStyle={styles.innerStepStyle}
        outerStepStyle={styles.outerStepStyle}
        stepNumber={true}
      />
    </View>
  );
};
const styles = StyleSheet.create({
  formContentStyle: {
    top: 20,
    borderRadius: 30,
    height: "85%",
  },
  buttonStyle: {
    backgroundColor: "#173907",
    borderWidth: 0,
    color: "#FFFFFF",
    width: "100%",
    top: -10,
    alignItems: "center",
  },
  previousButtonArrowStyle: {
    position: "absolute",
    top: -60,
    left: -15,
    width: 50,
    height: 50,
    transition: "all .2s",
  },
  previousButtonTextStyle: {
    color: "#173907",
    fontWeight: "bold",
    position: "absolute",
    top: 50,
    left: 10,
    fontSize: 25,
  },
  innerStepStyle: {
    backgroundColor: "#173907",
    width: 23,
    height: 23,
    borderRadius: 30,
  },
  outerStepStyle: {
    borderColor: "#173907",
    borderStyle: "dashed",
    width: 30,
    height: 30,
    borderRadius: 30,
  },
});
export default App;



```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
>>>>>>> chore: initial commit

---
_Source: https://npm.io/package/rezg-react-native-progress-stepper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
