New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-slim-gallery

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-slim-gallery

A pure js **gallery** component for React Native.

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 06 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc