# rnezswiper

> a simple swiper

Latest version **1.0.1** (published 2019-08-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install rnezswiper
pnpm add rnezswiper
yarn add rnezswiper
bun add rnezswiper
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-08-22 |
| First published | 2019-08-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hjhgzem@163.com |
| Maintainers | hujiahua |
| Keywords | swiper, RN, RN-Swiper |

## Links

- npm: https://www.npmjs.com/package/rnezswiper
- Repository: https://github.com/CQKM/RN-Swiper
- Homepage: https://github.com/CQKM/RN-Swiper#readme
- Issues: https://github.com/CQKM/RN-Swiper/issues
- npm.io page: https://npm.io/package/rnezswiper

## 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

- 1.0.1 (latest) — 2019-08-22

## README

# RN-Swiper

#### ScreenShot
![image](https://github.com/CQKM/RN-Swiper/blob/master/screenshot.gif)

or
project/screenshot.gif


#### Usage

`yarn add rnezswiper` or `npm install rnezswiper`

`import RNSwiper from 'rnezswiper'`

```javascript
let data = 'HelloWord'.toUpperCase().split('')
const { width, height } = Dimensions.get("window")

<View style={styles.container}>
    <View style={{ height: 200 }}> // wrapStyle
        <RNSwiper
        loop
        autoPlay
        initIndex={0}
        onChangeIndex={(index) => {  }}
        slideStyle={styles.slideStyle}
        renderPagination={(index) => { // customize pagination
            return (
            <View style={[{ position: 'absolute', bottom: 0, height: 30, width, left: 0,zIndex: 1 }]}>
                <Text style={{ color: '#fff',textAlign: 'center' }}>{`${index + 1}/${data.length}`}</Text>
            </View>
            )
        }}
        >
        {
            data.map(item => <Text key={item} style={styles.font}>{item}</Text>)
        }
        </RNSwiper>
    </View>
    <Text>other content</Text>
</View>

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  font: {
    color: '#fff',
    fontSize: 30
  },
  slideStyle: { height: 200, width, backgroundColor: '#7e57c2' },
});

```
#### Properties

Prop | Default | Type | Description
-|-|-|-
slideStyle | {} | ViewStyle | none
loop | true | boolean | Set to `false` to disable continuous loop mode.
autoPlay | true | boolean | Set to `true` enable auto play mode.
autoPlayTimeOut | 3000 | number | auto paly delay
initIndex | 0 | number | Index number of initial slide
onIndexChanged | (index) => null | function | Called with the new index when the user swiped
renderPagination | (index) => null | JSX | customize pagination
animation | (value, toValue) => Animated  | function | customize animated

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