Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
simple-react-lightbox-18support
Advanced tools
Simple React Lightbox - React 18 Support. Forked from - https://github.com/hueyyeng/simple-react-lightbox
Modified React lightbox based on Michele Cocuccio's Simple React Lightbox. The original README.md can be found here: README.old.md.
As the original GitHub repository no longer exists/accessible, I like the overall features (versus other React lighbox) and made some minor tweaking to suit my requirements hence the forking (although I originally forked it from a forked repo of the original repository).
limitToBounds
settingsThe following steps should suffice to get it up and running in your React app.
Currently this is only tested with React 17. Likely to work with no issue for React 16 but not guaranteed with React 18. Feel free to open a pull request if you made it compatible with React 18!
Lastly, I tested this with Node 16. Also requires yarn!
.gitignore
.package.json
dependencies (using step 1 example path). "dependencies": {
...,
"simple-react-lightbox": "./packages/simple-react-lightbox",
},
yarn build
.Refer to README.old.md on the usage. I'm unsure how it works for non-CreateReactApp (CRA) project but if you're using CRA, you need to run yarn build
whenever you make changes to simple-react-lightbox for CRA to automatically reload with the new changes.
I'm planning to release this forked package on npm. If I have the time, I'll convert it into TypeScript.
FAQs
Simple React Lightbox - React 18 Support. Forked from - https://github.com/hueyyeng/simple-react-lightbox
We found that simple-react-lightbox-18support demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.