reactrondev / react-native-web-swiper

Swiper-Slider for React-Native and React-Native-Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swiper getting crashed

SupriyaGo opened this issue · comments

When I am adding more than 6 components inside the swiper in my app, it's getting slower and the app getting crashed. Please help.

@SupriyaGo looks like a memory overflow. I don’t think that the cause of the crash is the swiper exactly. What kind of content in the swiper? if these are images, have you optimized them?
try to display all your content inside a ScrollView. It will still crash

I have images and videos as content. yes I have optimized them by size. Where to write ScrollView?

<Swiper>
  <ScrollView>
     <Component1/>
     <Component2/>
     <Component3/>
     <Component4/>
  <ScrollView/>
<Swiper/>

like this?

@SupriyaGo Nope. ScrollView instead Swiper. Will it crash?

If I use ScrollView instead of a swiper, it will work like a normal scrollable page. I want a swipeable interface.

He is asking if using ScrollView also crashes your app. It is so that we can understand whether the crash is from the package or just because your components are too complex.

Hi! I'm closing this issue since there is no update in the last 90 days! Feel free to create a new issue if needed.