# react-native-walkthrough-swiper

> A walkthrough swiper component for React-Native. Can be used in onboarding/walkthrough screens. Uses Reanimated API to create smooth animations.

Latest version **0.1.6** (published 2023-10-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-walkthrough-swiper
pnpm add react-native-walkthrough-swiper
yarn add react-native-walkthrough-swiper
bun add react-native-walkthrough-swiper
```

## 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.6 |
| Published | 2023-10-27 |
| First published | 2023-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 0 |
| Unpacked size | 135.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Naheed Shamim |
| Maintainers | naheed.shamim |
| Keywords | react-native, ios, android, walkthrough, onboarding, swiper, reanimated, intro-screen |

## Links

- npm: https://www.npmjs.com/package/react-native-walkthrough-swiper
- Repository: https://github.com/naheed-shamim/react-native-walkthrough-swiper
- Homepage: https://github.com/naheed-shamim/react-native-walkthrough-swiper#readme
- Issues: https://github.com/naheed-shamim/react-native-walkthrough-swiper/issues
- npm.io page: https://npm.io/package/react-native-walkthrough-swiper

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 0.1.6 (latest) — 2023-10-27
- 0.1.4 — 2023-10-26
- 0.1.3 — 2023-10-26
- 0.1.2 — 2023-10-26

## README

[![npm version](https://www.npmjs.com/package/react-native-walkthrough-swiper.svg)](http://badge.fury.io/js/react-native-walkthrough-swiper)

# react-native-walkthrough-swiper

  

A Intro Swiper component for React-Native. Uses Reanimated API to create smooth animations.



## Demo

![Demo](https://github.com/naheed-shamim/react-native-walkthrough-swiper/blob/main/example/assets/demo.gif?raw=true)

## Installation


```sh
npm  install  react-native-walkthrough-swiper
or
yarn add react-native-walkthrough-swiper
```



> **React Native Reanimated** is essential for this and must be installed. Follow the installation steps here:  [react-native-reanimated](https://www.npmjs.com/package/react-native-reanimated)


## Usage

  

```js

import { WalkthroughSwiper } from  'react-native-walkthrough-swiper';

// ...
<View style={{flex:1}}>
  <WalkthroughSwiper
      data={sliderData}
      skipText={'Skip'}
      skipTextStyle={{ color:  '#ccc' }}
      nextButton={<Text  style={{ color:  '#ccc' }}>{'Next'}</Text>}
      centerComponent={
      <Text  style={{ fontSize:  40, color:  'white' }}>{'Your App'}</Text>
      }
      titleStyle={{ color:  'white' }}
      subTitleStyle={{ color:  'white' }}
      activeSlideColor={'#fff'}
      inActiveSlideColor={'#b2b2b2'}
      onSkipBtnPress={() => {
      // Navigate to the next screen
      }}
  />
</View>

const data = [
{
    title: 'Slide 1',
    subTitle: 'Uses Reanimated API',
    age: 29,
    bgImage: 'some image URI',
  },
  ...
  ]
  
  ```
### Properties

| Prop                     | Description                                                     | Types             |
| ------------------------ | --------------------------------------------------------------- | ----------------- |
| **`data`**               | Slide actual data, Should be in format. Check the format above. | `Array`           |
| **`skipText`**           | String value of the `skipText`.                                 | `string`          |
| **`skipTextStyle`**      | Style for `skipText`.                                           | `TextStyle`       |
| **`nextButton`**         | Next Button. Can be text/image or any component.                | `React.Component` |
| **`centerComponent`**    | The center component, can be any React component                | `React.Component` |
| **`titleStyle`**         | Styles for the title.                                           | `TextStyle`       |
| **`subTitleStyle`**      | Styles for the sub-title.                                       | `TextStyle`       |
| **`activeSlideColor`**   | Active Slide color (circle dot at bottom).                      | `string`          |
| **`inActiveSlideColor`** | Inactive slide color.                                           | `string`          |
| **`onSkipBtnPress`**     | Event to trigger on press of Skip Button.                       | `GestureResponderEvent`           |

### License
MIT
---

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