1.1.5 • Published 4 years ago

react-native-slim-gallery v1.1.5

Weekly downloads
67
License
MIT
Repository
github
Last release
4 years ago

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

NameTypeDefaultRequiredDescription
imagesarrayyesIs the array of images you want to render
renderComponentfunctionprops => <ImageBackground {...props} />noIt is the function that renders the image component, you can pass something custom as long as it works as the component <Image />
initialnumber0noSets the initial position of the gallery
backgroundColorstring#000noGallery background color
onPageSelectedfunctionnoDispatched when the selected page changes
1.1.5

4 years ago

1.1.4

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago