Comments (3)
Hi! You can start it like this)
const galleryRef = useRef();
useEffect(() => {
galleryRef.current.toggleFullScreen();
}, []);
I was also looking for such a property, but I only found this solution
from react-image-gallery.
Hey, I also found this workaround and am using it for now, although I'm not convinced it is a good approach to start a component with a useEffect.
from react-image-gallery.
Completely normal to start a component with useEffect
!
from react-image-gallery.
Related Issues (20)
- Astro Project in Vercel doesnt work HOT 3
- Cant see original images but see thumbnails with same link HOT 1
- Setting gallery height without impact on fullscreen mode HOT 2
- Can i use this lib with ajax?
- Request new feature - Scrollable image view HOT 1
- Sliding/changing images doesn't work with latest React client/server components and NextJS HOT 4
- can you show an example of using renderItem? HOT 1
- Replace image dynamically
- Next page animation doesn't work HOT 2
- add circular border over forward and backward slider HOT 3
- ResizeObserver loop error when resizing changes from thumbnails to bullets
- Error when importing to a custom block in WordPress block editor HOT 1
- initial load breaking layout, only controls rendered, then after delay items show up causing layout shifts HOT 2
- Support props to config useSwipeable
- Super expression must either be null or a function HOT 1
- Rendering error with Vite-SSG HOT 1
- Bug mobile fullscreen HOT 1
- Create ESM bundle for ESM related projects (Astro, Svelte, Vite, and newer version of Next.js) HOT 1
- [FEATURE REQUEST]: Add Option to Enable Swipe on Desktop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-image-gallery.