You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A demo that uses the latest version of this library can be found on my personal website: [https://taukeke.com/gallery](https://taukeke.com/gallery)
5
+
> A demo that uses the latest version of this library can be found on my personal website: [https://taukeke.com/gallery](https://taukeke.com/gallery)
6
6
7
7
Modified React lightbox based on Michele Cocuccio's Simple React Lightbox. The original README.md can be found here: [README.old.md](README.old.md).
8
8
9
-
As the original GitHub repository no longer exists/accessible, I made some minor tweaking to suit my requirements hence the
10
-
forking (although I originally forked it from a forked repo of the original repository).
9
+
Since the original GitHub repository is no longer accessible, I had to make some custom modifications to align with my specific
10
+
needs. As a result, I ended up forking the project from a repository that was itself a fork of the original repository.
11
11
12
-
Also the code has been converted to **TypeScript** (using TypeScript 5.0).
12
+
The code has also been converted to TypeScript, using TypeScript 5.0.
13
13
14
14
## Changes Since v3.6.9 by Michele Cocuccio
15
15
@@ -22,14 +22,18 @@ Also the code has been converted to **TypeScript** (using TypeScript 5.0).
22
22
23
23
## Quickstart
24
24
25
-
The following steps should suffice to get it up and running in your React app.
25
+
To get started with this library in your React app, follow these steps:
26
26
27
-
Currently this is only tested with React 17. Likely to work with no issue for React 16 but not guaranteed
28
-
with React 18. Feel free to open a pull request if you made it compatible with React 18!
27
+
1. Make sure you have **React** installed. Although the library has been tested with React 17 and
28
+
is expected to work with React 16, compatibility with React 18 is not guaranteed. If you have made
29
+
it compatible with React 18, please feel free to open a pull request.
30
+
2. Ensure you have **Node.js 16** installed.
31
+
3. Use **Yarn** as your package manager, as it is required for this library.
29
32
30
-
Lastly, I tested this with **Node 16**. Also requires **yarn**!
33
+
### Installing as Local Package
31
34
32
-
1. Clone this repository with `git clone yourpreferredmethod.git @hueyyeng/simple-react-lightbox` using either SSH or HTTPS. The resulting folder should look like this (e.g. yourreactapp/packages/@hueyyeng/simple-react-lightbox).
35
+
1. Clone this repository with `git clone yourpreferredmethod.git @hueyyeng/simple-react-lightbox` using
36
+
either SSH or HTTPS. The resulting folder should look like this (e.g. yourreactapp/packages/@hueyyeng/simple-react-lightbox).
33
37
2. Optionally, exclude it using React app `.gitignore`.
34
38
3. Add this to your React app `package.json` dependencies (using step 1 example path).
35
39
@@ -49,7 +53,7 @@ to automatically reload with the new changes.
49
53
50
54
## Usage
51
55
52
-
> Make sure at least **Node 16** and **yarn** installed.
56
+
> Make sure at least **Node.js 16** and **Yarn** installed.
53
57
54
58
### Development
55
59
@@ -65,4 +69,6 @@ to automatically reload with the new changes.
65
69
66
70
## Known Issues
67
71
68
-
1, Several forked of this project modified the React version range to include React 16. As this library uses React Context introduced in React 16.3, try to target that version as the absolute minimum version.
72
+
1. Several forks of this project have adjusted the React version range to include React 16. However,
73
+
since this library relies on React Context, which was introduced in React 16.3, it is recommended
74
+
to set React 16.3 as the minimum required version.
0 commit comments