guonanci / react-images-viewer

A react library that view photos list easily, and a simple, responsive viewer component for displaying an array of images.
https://guonanci.github.io/react-images-viewer/
MIT License
162 stars 38 forks source link

Patch to `declare module 'react-images-viewer';` #62

Open paraslamsong opened 11 months ago

paraslamsong commented 11 months ago

Hi! ๐Ÿ‘‹

Firstly, thanks for your work on this project! ๐Ÿ™‚

Today I used patch-package to patch react-images-viewer@1.7.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-images-viewer/.DS_Store b/node_modules/react-images-viewer/.DS_Store
new file mode 100644
index 0000000..a307fbe
Binary files /dev/null and b/node_modules/react-images-viewer/.DS_Store differ
diff --git a/node_modules/react-images-viewer/lib/.DS_Store b/node_modules/react-images-viewer/lib/.DS_Store
new file mode 100644
index 0000000..dd3de23
Binary files /dev/null and b/node_modules/react-images-viewer/lib/.DS_Store differ
diff --git a/node_modules/react-images-viewer/lib/ImgsViewer.d.ts b/node_modules/react-images-viewer/lib/ImgsViewer.d.ts
new file mode 100644
index 0000000..baa82e4
--- /dev/null
+++ b/node_modules/react-images-viewer/lib/ImgsViewer.d.ts
@@ -0,0 +1 @@
+declare module 'react-images-viewer'
\ No newline at end of file
diff --git a/node_modules/react-images-viewer/src/.DS_Store b/node_modules/react-images-viewer/src/.DS_Store
new file mode 100644
index 0000000..f3b3f43
Binary files /dev/null and b/node_modules/react-images-viewer/src/.DS_Store differ
diff --git a/node_modules/react-images-viewer/src/ImgsViewer.d.ts b/node_modules/react-images-viewer/src/ImgsViewer.d.ts
new file mode 100644
index 0000000..baa82e4
--- /dev/null
+++ b/node_modules/react-images-viewer/src/ImgsViewer.d.ts
@@ -0,0 +1 @@
+declare module 'react-images-viewer'
\ No newline at end of file

This issue body was partially generated by patch-package.

tkhall03 commented 9 months ago

Hello, would it be possible for you to share the patch you made with me?