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

react-gallery-picker

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gallery-picker

React Gallery Images Picker

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Code version

See the Example Image Picker

React gallery picker is a React Js component for building image galleries and select images

Features of react-gallery-picker

  • Table View
  • Image Selection

Getting started

npm install react-gallery-picker

Example

Need more? See sample/src/index.js


import Gallery from "react-gallery-picker";

const IMAGE1 = "/assets/images/1.jpg"
const IMAGE2 = "/assets/images/2.jpg"
const IMAGE3 = "/assets/images/3.jpg"

const IMAGE_LIST = [{ url: IMAGE1, name: "imagen 1" },{ url: IMAGE2, name: "imagen 2" } ,{ url: IMAGE3, name: "imagen 3" } ];


export default () => {
    const getImages = images => {
        // Do something with the selected images)
        console.log(images);
    }

    return <Gallery imagesRecived={IMAGE_LIST} returnImages={getImages} />
}

Props

  • imagesRecived: (required) Array of objects, see example above,
    • Available Properties
      • original - image src url
      • base64 - image base64
  • returnImages: (required) Function that returns an array of objects with the Boolean property selected

Build the example locally

git clone https://github.com/Daym3l/react-gallery-picker.git
cd react-gallery-picker
npm install
npm start

Then open localhost:3001 in a browser.

License

MIT

Keywords

FAQs

Package last updated on 02 Feb 2021

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