Skip to content

jimengio/image-viewer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Image Viewer Component

npm

for zooming/rotating images.

original: meson-display

Not yet:

  • animations
  • dragging

Usage

import { ImageViewer } from "@jimengio/image-viewer";

<ImageViewer
  visible={visible}
  imageUrl={"http://cache.house.sina.com.cn/citylifehouse/citylife/de/26/20090508_7339__.jpg"}
  onClose={() => {
    setVisible(false);
  }}
  hasLeftOne={false}
  hasRightOne={false}
  closeOnBackdrop={false}
/>;

Workflow

https://github.com/jimengio/ts-workflow

License

MIT