react-native-slim-gallery
A pure js **gallery** component for React Native.
Last updated 8 months ago by felipebohnertpaetzold .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install react-native-slim-gallery 
SYNC missed versions from official npm registry.

react-native-slim-gallery

A pure js gallery component for React Native.

Install?

Using npm npm install react-native-slim-gallery

or yarn (we <3 yarn)

yarn add react-native-slim-gallery

Live demo here

Simple use?

import * as React from 'react'
import Gallery from 'react-native-slim-gallery'

const images = [
    {key: 'image-01', source: {uri: 'https://abduzeedo.com/sites/default/files/originals/0/05_7.jpg'}},
    {key: 'image-02', source: {uri: 'https://i0.wp.com/animalli.com/wp-content/uploads/2016/11/animals-horse-animal-beautiful-beauty-nature-pictures-for-christmas.jpg?resize=806%2C504'}},
    {key: 'image-03', source: {uri: 'https://jjrothmd.s3.amazonaws.com/CMS/739/smiling-camel-looking-in-lens-on-shutterstock-800x430__details.jpg'}}
]

export default class App extends React.Component {
  render = () => <Gallery images={images} />
}

Component props

Name Type Default Required Description
images array yes Is the array of images you want to render
renderComponent function props => <ImageBackground {...props} /> no It is the function that renders the image component, you can pass something custom as long as it works as the component <Image />
initial number 0 no Sets the initial position of the gallery
backgroundColor string #000 no Gallery background color
onPageSelected function no Dispatched when the selected page changes

Current Tags

  • 1.1.4                                ...           latest (8 months ago)

17 Versions

  • 1.1.4                                ...           8 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 3
Last Day 1
Last Week 1
Last Month 10
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |