React Images Viewer
A simple, responsive imgsViewer component for ReactJS to display an array of images.
Examples
Getting Started
1. Install using yarn:
yarn add react-images-viewer
… or npm:
npm install react-images-viewer --save
2. Example usage with JSX:
<ImgsViewer
imgs={[
{ src: '../images/photo-1.jpg' },
{ src: '../images/photo-2.jpg' }
]}
isOpen={this.state.isOpen}
onClickPrev={this.gotoPrevImg}
onClickNext={this.gotoNextImg}
onClose={this.closeImgsViewer}
/>
License
React Images Viewer is free to use for personal and commercial projects under the MIT license.
Attribution is not required, but greatly appreciated. It does not have to be user-facing and can remain within the code.
Help
Have a question?
Follow the quick start guide on GitHub to get up and running quickly. Please do not use Github Issues to report personal support requests.
Found a bug?
If you find a bug, please read the Contribution Guildelines before you report the issue.