Skip to content

Commit ba46bcc

Browse files
committed
chore: rename to react-image-previewer
1 parent db73acf commit ba46bcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+151
-212
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "MinJieLiu/react-photo-view" }],
3+
"changelog": ["@changesets/changelog-github", { "repo": "big-camel/react-image-previewer" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# react-photo-view
1+
> ## This warehouse is forked from https://github.com/MinJieLiu/react-photo-view
2+
Since the update of [react-photo-view](https://github.com/MinJieLiu/react-photo-view) is no longer timely, this repository was created.
3+
> You can see this pr https://github.com/MinJieLiu/react-photo-view/pull/140 for the updated content of this warehouse
4+
5+
# react-image-previewer
26

37
**English** | [中文](./README.zh-CN.md)
48

@@ -13,32 +17,32 @@
1317

1418
## Quick start
1519

16-
- [Getting Started](https://react-photo-view.vercel.app)
17-
- [Basic usage](https://react-photo-view.vercel.app/docs/getting-started)
18-
- [API](https://react-photo-view.vercel.app/docs/api)
19-
- [Change log](https://react-photo-view.vercel.app/docs/change-log)
20+
- [Getting Started](https://react-image-previewer.vercel.app)
21+
- [Basic usage](https://react-image-previewer.vercel.app/docs/getting-started)
22+
- [API](https://react-image-previewer.vercel.app/docs/api)
23+
- [Change log](https://react-image-previewer.vercel.app/docs/change-log)
2024

2125
## features
2226

2327
- Support touch gestures, drag and pan physical effect sliding, two-finger specified position to zoom in and out
2428
- All aspects of animation connection, open and close the rebound touch edge, let the natural interaction effect
2529
- The image is adaptive, with a suitable initial rendering size, and adapts according to the adjustment
2630
- Support for custom previews like `<video>` or any `HTML` element
27-
- Keyboard navigation, perfect for desktop
31+
- Keyboard navigation, drag mode **supports free dragging in the view, zooming according to the size of the picture**, perfectly adapted to the desktop
2832
- Support custom node expansion, easy to achieve full-screen preview, rotation control, picture introduction and more functions
2933
- Based on `typescript`, `7KB Gzipped`, supports server-side rendering
3034
- Simple and easy to use `API`, zero cost to get started
3135

3236
## Install
3337

3438
```bash
35-
yarn add react-photo-view
39+
yarn add react-image-previewer
3640
```
3741

3842
## Basic usage:
3943

4044
```js
41-
import { PhotoProvider, PhotoView } from 'react-photo-view';
45+
import { PhotoProvider, PhotoView } from 'react-image-previewer';
4246

4347
function App() {
4448
return (
@@ -55,10 +59,10 @@ function App() {
5559

5660
Apache-2.0 © [MinJieLiu](https://github.com/MinJieLiu)
5761

58-
[npm-image]: https://img.shields.io/npm/v/react-photo-view.svg?style=flat-square
59-
[npm-url]: https://npmjs.org/package/react-photo-view
60-
[downloads-image]: http://img.shields.io/npm/dm/react-photo-view.svg?style=flat-square
61-
[downloads-url]: https://npmjs.org/package/react-photo-view
62-
[min-size-image]: https://badgen.net/bundlephobia/min/react-photo-view?label=minified
63-
[gzip-size-image]: https://badgen.net/bundlephobia/minzip/react-photo-view?label=gzip
64-
[bundlephobia-url]: https://bundlephobia.com/result?p=react-photo-view
62+
[npm-image]: https://img.shields.io/npm/v/react-image-previewer.svg?style=flat-square
63+
[npm-url]: https://npmjs.org/package/react-image-previewer
64+
[downloads-image]: http://img.shields.io/npm/dm/react-image-previewer.svg?style=flat-square
65+
[downloads-url]: https://npmjs.org/package/react-image-previewer
66+
[min-size-image]: https://badgen.net/bundlephobia/min/react-image-previewer?label=minified
67+
[gzip-size-image]: https://badgen.net/bundlephobia/minzip/react-image-previewer?label=gzip
68+
[bundlephobia-url]: https://bundlephobia.com/result?p=react-image-previewer

README.zh-CN.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# react-photo-view
1+
> ## 此仓库 fork 自 https://github.com/MinJieLiu/react-photo-view
2+
> 由于 [react-photo-view](https://github.com/MinJieLiu/react-photo-view) 的更新不再及时,所以创建此仓库。
3+
> 此仓库更新的内容可以看这个 pr https://github.com/MinJieLiu/react-photo-view/pull/140
4+
5+
# react-image-previewer
26

37
**中文** | [English](./README.md)
48

@@ -13,32 +17,32 @@
1317

1418
## 快速开始
1519

16-
- [文档入口](https://react-photo-view.vercel.app)
17-
- [基本示例](https://react-photo-view.vercel.app/docs/getting-started)
18-
- [API](https://react-photo-view.vercel.app/docs/api)
19-
- [更新日志](https://react-photo-view.vercel.app/docs/change-log)
20+
- [文档入口](https://react-image-previewer.vercel.app)
21+
- [基本示例](https://react-image-previewer.vercel.app/docs/getting-started)
22+
- [API](https://react-image-previewer.vercel.app/docs/api)
23+
- [更新日志](https://react-image-previewer.vercel.app/docs/change-log)
2024

2125
## 特性
2226

2327
- 支持触摸手势,**拖动/平移/物理效果滑动,双指指定位置放大/缩小**
2428
- 全方面动画衔接,**打开/关闭/回弹/触边**,顺其自然的交互效果
2529
- 图像自适应,以一个合适的最初呈现大小,并根据调整自适应
2630
- 支持自定义如 `<video />` 或任意 `HTML` 元素的预览
27-
- 键盘导航,完美适配桌面端
31+
- 键盘导航,drag模式**支持视图内自由拖拽,按图片大小缩放**完美适配桌面端
2832
- 支持自定义节点扩展,轻松实现**全屏预览、旋转控制、图片介绍**以及更多功能
2933
- 基于 `typescript``7KB Gzipped`,支持服务端渲染
3034
- 简单易用的 `API`,上手零成本
3135

3236
## 安装
3337

3438
```bash
35-
yarn add react-photo-view
39+
yarn add react-image-previewer
3640
```
3741

3842
## 基本使用:
3943

4044
```js
41-
import { PhotoProvider, PhotoView } from 'react-photo-view';
45+
import { PhotoProvider, PhotoView } from 'react-image-previewer';
4246

4347
function App() {
4448
return (
@@ -55,10 +59,10 @@ function App() {
5559

5660
Apache-2.0 © [MinJieLiu](https://github.com/MinJieLiu)
5761

58-
[npm-image]: https://img.shields.io/npm/v/react-photo-view.svg?style=flat-square
59-
[npm-url]: https://npmjs.org/package/react-photo-view
60-
[downloads-image]: http://img.shields.io/npm/dm/react-photo-view.svg?style=flat-square
61-
[downloads-url]: https://npmjs.org/package/react-photo-view
62-
[min-size-image]: https://badgen.net/bundlephobia/min/react-photo-view?label=minified
63-
[gzip-size-image]: https://badgen.net/bundlephobia/minzip/react-photo-view?label=gzip
64-
[bundlephobia-url]: https://bundlephobia.com/result?p=react-photo-view
62+
[npm-image]: https://img.shields.io/npm/v/react-image-previewer.svg?style=flat-square
63+
[npm-url]: https://npmjs.org/package/react-image-previewer
64+
[downloads-image]: http://img.shields.io/npm/dm/react-image-previewer.svg?style=flat-square
65+
[downloads-url]: https://npmjs.org/package/react-image-previewer
66+
[min-size-image]: https://badgen.net/bundlephobia/min/react-image-previewer?label=minified
67+
[gzip-size-image]: https://badgen.net/bundlephobia/minzip/react-image-previewer?label=gzip
68+
[bundlephobia-url]: https://bundlephobia.com/result?p=react-image-previewer

apps/example/components/doc-backdrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoProvider, PhotoView } from 'react-photo-view'
2+
import { PhotoProvider, PhotoView } from 'react-image-previewer'
33
import { ImageList, Image } from './doc-components'
44
import photo2 from '../images/2.jpg'
55

apps/example/components/doc-basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoProvider, PhotoView } from 'react-photo-view'
2+
import { PhotoProvider, PhotoView } from 'react-image-previewer'
33
import { ImageList } from './doc-components'
44
import photo2 from '../images/2.jpg'
55
import photo3 from '../images/3.jpg'

apps/example/components/doc-broken.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoProvider, PhotoView } from 'react-photo-view'
2+
import { PhotoProvider, PhotoView } from 'react-image-previewer'
33
import { Button, ImageList } from './doc-components'
44
import { EosIconsBubbleLoading } from '../icons/EosIconsBubbleLoading'
55
import defaultPhoto from '../images/default-photo.svg'

apps/example/components/doc-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoProvider, PhotoView } from 'react-photo-view'
2+
import { PhotoProvider, PhotoView } from 'react-image-previewer'
33
import { Button, ImageList } from './doc-components'
44
import photo4 from '../images/4.jpg'
55

apps/example/components/doc-close.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoProvider, PhotoView } from 'react-photo-view'
2+
import { PhotoProvider, PhotoView } from 'react-image-previewer'
33
import { ImageList, Image } from './doc-components'
44
import photo4 from '../images/4.jpg'
55

apps/example/components/doc-controlled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoSlider } from 'react-photo-view'
2+
import { PhotoSlider } from 'react-image-previewer'
33
import { Button, ImageList, Overlay, photoImages } from './doc-components'
44

55
export default function DocDemo() {

apps/example/components/doc-cover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { PhotoProvider, PhotoView } from 'react-photo-view'
2+
import { PhotoProvider, PhotoView } from 'react-image-previewer'
33
import { ImageList } from './doc-components'
44
import photo6 from '../images/6.jpg'
55

0 commit comments

Comments
 (0)