Swiper Grid not working as expected when integrated with React. #5404
Unanswered
AryamanKarde
asked this question in
Q&A
Replies: 1 comment 4 replies
-
That definitely works https://codesandbox.io/s/swiper-slides-grid-react-forked-nnwzm?file=/src/App.jsx |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
So I was trying to implement grid by passing these parameters, but it seems like the grid option is not being picked up the library but, when I run it in isolation then it runs properly.
So I want to know what all possible reasons there could be where Grid won't apply.
Parameters passed are listed below.
spaceBetween: 0, allowTouchMove: true, slidesPerView: 2.4266666666666667, slidesPerGroup: 2, grid: { rows: 2 },
I also tried a workaround where I manually passed values to snapGrid property to make this work but it does work on an emulator but not physical device.
Can anybody please help me out ? @nolimits4web
Beta Was this translation helpful? Give feedback.
All reactions