# react-native-galery-carousel

> carousel for react native

Latest version **1.1.2** (published 2017-05-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-galery-carousel
pnpm add react-native-galery-carousel
yarn add react-native-galery-carousel
bun add react-native-galery-carousel
```

## 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.1.2 |
| Published | 2017-05-28 |
| First published | 2017-04-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | capdilla |
| Maintainers | capdilla |
| Keywords | galery, carousel, react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-galery-carousel
- Repository: https://github.com/capdilla/react-native-galery-carousel
- Homepage: https://github.com/capdilla/react-native-galery-carousel#readme
- Issues: https://github.com/capdilla/react-native-galery-carousel/issues
- npm.io page: https://npm.io/package/react-native-galery-carousel

## 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.1.2 (latest) — 2017-05-28
- 1.1.1 — 2017-05-28
- 1.1.0 — 2017-04-25
- 1.0.2 — 2017-04-05
- 1.0.1 — 2017-04-05
- 1.0.0 — 2017-04-05

## README

# react-native-galery-carousel
Galery carousel for react native



## Demo

![react-native-galery-carousel](https://media.giphy.com/media/3oKIPuWr6Mp7bOtYVG/giphy.gif)
![react-native-galery-carousel](https://media.giphy.com/media/3oKIPj1guAZsLVqQfK/giphy.gif)


## Usage

```
$ npm install --save react-native-galery-carousel
```

```javascript
const imagesDemo = [
    {
        path: '/UYiroysl.jpg'
    },
    {  
        path: '/UPrs1EWl.jpg'
    },
    {    
        path: '/MABUbpDl.jpg'
    },
    {    
        path: '/KZsmUi2l.jpg'
    },
    {    
        path: '/2nCt3Sbl.jpg'
    },
    {    
        path: '/lceHsT6l.jpg'
    }
];
import GaleryCarousel from 'react-native-galery-carousel';

    render () {
      <View>
        <GaleryCarousel
          dataImage={imagesDemo}
          joinFirst={'http://i.imgur.com'}
          defaultImageIndex={2}
          onLongPress={(key,element)=>{console.log(key,element)}}
          mainImageComponents={
            <View style={{flex:1,backgroundColor:"transparent"}}>
              <Text style={{color:"#fff"}}>Hello</Text>
            </View>
          }
        />
      </View>
    }
```

## Props

Prop | Description | Type | Default
------ | ------ | ------ | ------
**dataImage** | the array of the image to show in the carousel | array | `[]`
**getImageFrom** | the key of the array where you wanna get the image | string | `"path"`
**joinFirst** | if you wanna join a link before **example** https://my-host-name.com/ `path` | string | `""`
**joinLast** | if you wanna join string after **example** `path`/key="1255665" | string | `""`
**defaultImageIndex** | index of the first image to show | Number | `1`
**mainImageComponents** | if you wanna render a component in the Main image | Component | `<View/>`
**mainHeight** | size of the galery carousel | Number | `280`
**onLongPress** | each item of the carousel | function | `function`


## TODO
- [x] Implement 'onLongPress' in the scrollView images

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